Skip to content

Commit 8ec0215

Browse files
committed
Use consistent location for NotFoundError
Throughout this module we're using ``astroid.NotFoundError`` as an alias for ``astroid.exceptions.NotFoundError``, it seems best to be consistent.
1 parent 433f850 commit 8ec0215

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pylint/checkers/typecheck.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ def _determine_callable(
632632
try:
633633
# Use the last definition of __new__.
634634
new = callable_obj.local_attr("__new__")[-1]
635-
except astroid.exceptions.NotFoundError:
635+
except astroid.NotFoundError:
636636
new = None
637637

638638
from_object = new and new.parent.scope().name == "object"
@@ -642,7 +642,7 @@ def _determine_callable(
642642
try:
643643
# Use the last definition of __init__.
644644
callable_obj = callable_obj.local_attr("__init__")[-1]
645-
except astroid.exceptions.NotFoundError as e:
645+
except astroid.NotFoundError as e:
646646
raise ValueError from e
647647
else:
648648
callable_obj = new

0 commit comments

Comments
 (0)