We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 433f850 commit 8ec0215Copy full SHA for 8ec0215
pylint/checkers/typecheck.py
@@ -632,7 +632,7 @@ def _determine_callable(
632
try:
633
# Use the last definition of __new__.
634
new = callable_obj.local_attr("__new__")[-1]
635
- except astroid.exceptions.NotFoundError:
+ except astroid.NotFoundError:
636
new = None
637
638
from_object = new and new.parent.scope().name == "object"
@@ -642,7 +642,7 @@ def _determine_callable(
642
643
# Use the last definition of __init__.
644
callable_obj = callable_obj.local_attr("__init__")[-1]
645
- except astroid.exceptions.NotFoundError as e:
+ except astroid.NotFoundError as e:
646
raise ValueError from e
647
else:
648
callable_obj = new
0 commit comments