Skip to content

Commit f8562cb

Browse files
committed
Add type annotations to function definition.
1 parent 1b3355c commit f8562cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

astroid/brain/brain_typing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ def looks_like_typing_typevar_or_newtype(node) -> bool:
118118
return False
119119

120120

121-
def infer_typing_typevar_or_newtype(node, context_itton=None):
121+
def infer_typing_typevar_or_newtype(
122+
node: Call, context_itton: context.InferenceContext | None = None
123+
) -> Iterator[ClassDef]:
122124
"""Infer a typing.TypeVar(...) or typing.NewType(...) call."""
123125
try:
124126
func = next(node.func.infer(context=context_itton))

0 commit comments

Comments
 (0)