diff --git a/mypy/stubgenc.py b/mypy/stubgenc.py index 29b2636d39cc..7e3ef49c6e9a 100755 --- a/mypy/stubgenc.py +++ b/mypy/stubgenc.py @@ -466,6 +466,9 @@ def is_skipped_attribute(self, attr: str) -> bool: "__module__", "__weakref__", "__annotations__", + "__firstlineno__", + "__static_attributes__", + "__annotate__", ) or attr in self.IGNORED_DUNDERS or is_pybind_skipped_attribute(attr) # For pickling