We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b3355c commit f8562cbCopy full SHA for f8562cb
astroid/brain/brain_typing.py
@@ -118,7 +118,9 @@ def looks_like_typing_typevar_or_newtype(node) -> bool:
118
return False
119
120
121
-def infer_typing_typevar_or_newtype(node, context_itton=None):
+def infer_typing_typevar_or_newtype(
122
+ node: Call, context_itton: context.InferenceContext | None = None
123
+) -> Iterator[ClassDef]:
124
"""Infer a typing.TypeVar(...) or typing.NewType(...) call."""
125
try:
126
func = next(node.func.infer(context=context_itton))
0 commit comments