summaryrefslogtreecommitdiff
path: root/astroid/typing.py
diff options
context:
space:
mode:
Diffstat (limited to 'astroid/typing.py')
-rw-r--r--astroid/typing.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/astroid/typing.py b/astroid/typing.py
index 0b6ec8e3..f42832e4 100644
--- a/astroid/typing.py
+++ b/astroid/typing.py
@@ -43,6 +43,9 @@ class AstroidManagerBrain(TypedDict):
InferenceResult = Union["nodes.NodeNG", "util.UninferableBase", "bases.Proxy"]
SuccessfulInferenceResult = Union["nodes.NodeNG", "bases.Proxy"]
+_SuccessfulInferenceResultT = TypeVar(
+ "_SuccessfulInferenceResultT", bound=SuccessfulInferenceResult
+)
ConstFactoryResult = Union[
"nodes.List",
@@ -55,7 +58,7 @@ ConstFactoryResult = Union[
InferBinaryOp = Callable[
[
- Union[_NodesT, "bases.Instance"],
+ _SuccessfulInferenceResultT,
Union["nodes.AugAssign", "nodes.BinOp"],
str,
InferenceResult,