diff options
author | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2023-04-22 15:46:21 +0200 |
---|---|---|
committer | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2023-04-22 20:53:54 +0200 |
commit | b00ef37c551181ba8b8dcf67ff4ebf7a6100b939 (patch) | |
tree | efa405576bfba5c99f07fb9d42ba5b5100c657b1 /astroid/exceptions.py | |
parent | b670d91328e70a51833eaa109f62c5fe6acc3089 (diff) | |
download | astroid-git-b00ef37c551181ba8b8dcf67ff4ebf7a6100b939.tar.gz |
Expand typing on some exceptions
Diffstat (limited to 'astroid/exceptions.py')
-rw-r--r-- | astroid/exceptions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/astroid/exceptions.py b/astroid/exceptions.py index e4ac7907..05d1b22a 100644 --- a/astroid/exceptions.py +++ b/astroid/exceptions.py @@ -241,13 +241,13 @@ class InferenceError(ResolveError): # pylint: disable=too-many-instance-attribu node: InferenceResult | None = None, context: InferenceContext | None = None, target: InferenceResult | None = None, - targets: nodes.Tuple | None = None, + targets: InferenceResult | None = None, attribute: str | None = None, unknown: InferenceResult | None = None, assign_path: list[int] | None = None, caller: nodes.Call | None = None, stmts: Sequence[InferenceResult] | None = None, - frame: nodes.LocalsDictNodeNG | None = None, + frame: InferenceResult | None = None, call_site: arguments.CallSite | None = None, func: nodes.FunctionDef | None = None, arg: str | None = None, @@ -315,7 +315,7 @@ class AttributeInferenceError(ResolveError): self, message: str = "{attribute!r} not found on {target!r}.", attribute: str = "", - target: nodes.NodeNG | bases.Instance | None = None, + target: nodes.NodeNG | bases.BaseInstance | None = None, context: InferenceContext | None = None, mros: list[nodes.ClassDef] | None = None, super_: nodes.ClassDef | None = None, |