Skip to content

Commit 0e8b022

Browse files
committed
.
1 parent 03be6c8 commit 0e8b022

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/_pyrepl/fancycompleter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def safe_getattr(obj: object, name: str) -> object:
1818
if isinstance(getattr(type(obj), name, None), property):
1919
return None
2020
if (isinstance(obj, types.ModuleType)
21-
and isinstance(obj.__dict__.get(name), types.LazyImportType)
21+
# TODO: Should be resolved once mypy upgrades typeshed
22+
and isinstance(obj.__dict__.get(name), types.LazyImportType) # type: ignore[attr-defined]
2223
):
2324
return obj.__dict__.get(name)
2425
return getattr(obj, name, None)

0 commit comments

Comments
 (0)