Skip to content

Commit 8ada8e2

Browse files
authored
Fix typo in get_proper_types() (#7959)
This fixes the typo in the argument name and deals with the "fallout".
1 parent f856e15 commit 8ada8e2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mypy/types.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1915,12 +1915,13 @@ def get_proper_type(typ: Optional[Type]) -> Optional[ProperType]:
19151915

19161916

19171917
@overload
1918-
def get_proper_types(it: Iterable[Type]) -> List[ProperType]: ...
1918+
def get_proper_types(it: Iterable[Type]) -> List[ProperType]: ... # type: ignore[misc]
19191919
@overload
1920-
def get_proper_types(typ: Iterable[Optional[Type]]) -> List[Optional[ProperType]]: ...
1920+
def get_proper_types(it: Iterable[Optional[Type]]) -> List[Optional[ProperType]]: ...
19211921

19221922

1923-
def get_proper_types(it: Iterable[Optional[Type]]) -> List[Optional[ProperType]]: # type: ignore
1923+
def get_proper_types(it: Iterable[Optional[Type]]
1924+
) -> Union[List[ProperType], List[Optional[ProperType]]]:
19241925
return [get_proper_type(t) for t in it]
19251926

19261927

0 commit comments

Comments
 (0)