Skip to content

Commit f3b23b1

Browse files
authored
Expand is_named_instance
1 parent b98c82a commit f3b23b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mypy/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4040,8 +4040,8 @@ def visit_type_alias_type(self, t: TypeAliasType, /) -> list[mypy.nodes.TypeAlia
40404040
return res
40414041

40424042

4043-
def is_named_instance(t: Type, fullnames: str | tuple[str, ...]) -> TypeGuard[Instance]:
4044-
if not isinstance(fullnames, tuple):
4043+
def is_named_instance(t: Type, fullnames: str | Sequence[str, ...]) -> TypeGuard[Instance]:
4044+
if isinstance(fullnames, str):
40454045
fullnames = (fullnames,)
40464046

40474047
t = get_proper_type(t)

0 commit comments

Comments
 (0)