We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb9a8b2 commit 535fc74Copy full SHA for 535fc74
mypy/stubgenc.py
@@ -367,14 +367,20 @@ def method_name_sort_key(name: str) -> Tuple[int, str]:
367
return 1, name
368
369
370
+def is_pybind_skipped_attribute(attr: str) -> bool:
371
+ return attr.startswith("__pybind11_module_local_")
372
+
373
374
def is_skipped_attribute(attr: str) -> bool:
- return attr in ('__getattribute__',
- '__str__',
- '__repr__',
- '__doc__',
375
- '__dict__',
376
- '__module__',
377
- '__weakref__') # For pickling
+ return (attr in ('__getattribute__',
+ '__str__',
+ '__repr__',
378
+ '__doc__',
379
+ '__dict__',
380
+ '__module__',
381
+ '__weakref__') # For pickling
382
+ or is_pybind_skipped_attribute(attr)
383
+ )
384
385
386
def infer_method_sig(name: str) -> List[ArgSig]:
0 commit comments