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 03be6c8 commit 0e8b022Copy full SHA for 0e8b022
1 file changed
Lib/_pyrepl/fancycompleter.py
@@ -18,7 +18,8 @@ def safe_getattr(obj: object, name: str) -> object:
18
if isinstance(getattr(type(obj), name, None), property):
19
return None
20
if (isinstance(obj, types.ModuleType)
21
- and isinstance(obj.__dict__.get(name), types.LazyImportType)
+ # TODO: Should be resolved once mypy upgrades typeshed
22
+ and isinstance(obj.__dict__.get(name), types.LazyImportType) # type: ignore[attr-defined]
23
):
24
return obj.__dict__.get(name)
25
return getattr(obj, name, None)
0 commit comments