File tree 2 files changed +3
-1
lines changed
test-data/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 ] = ...
@@ -20,6 +21,7 @@ class Point:
20
21
def name (self ) -> str : ...
21
22
22
23
class LengthUnit :
24
+ __members__ : ClassVar [dict ] = ... # read-only
23
25
__entries : ClassVar [dict ] = ...
24
26
inch : ClassVar [Point .LengthUnit ] = ...
25
27
mm : ClassVar [Point .LengthUnit ] = ...
You can’t perform that action at this time.
0 commit comments