File tree 2 files changed +3
-1
lines changed
test-data/pybind11_mypy_demo/stubgen/pybind11_mypy_demo
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ def infer_prop_type(docstr: Optional[str]) -> Optional[str]:
288
288
return None
289
289
290
290
# Ignore special properties/attributes.
291
- if name . startswith ( '__' ) and name . endswith ( '__' ):
291
+ if is_skipped_attribute ( name ):
292
292
return
293
293
294
294
inferred = infer_prop_type (getattr (obj , '__doc__' , None ))
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ PI: float
5
5
6
6
class Point :
7
7
class AngleUnit :
8
+ __members__ : ClassVar [dict ] = ... # read-only
8
9
__entries : ClassVar [dict ] = ...
9
10
degree : ClassVar [Point .AngleUnit ] = ...
10
11
radian : ClassVar [Point .AngleUnit ] = ...
@@ -22,6 +23,7 @@ class Point:
22
23
def value (self ) -> int : ...
23
24
24
25
class LengthUnit :
26
+ __members__ : ClassVar [dict ] = ... # read-only
25
27
__entries : ClassVar [dict ] = ...
26
28
inch : ClassVar [Point .LengthUnit ] = ...
27
29
mm : ClassVar [Point .LengthUnit ] = ...
You can’t perform that action at this time.
0 commit comments