Skip to content

Commit f5373c5

Browse files
committed
Fix typing
1 parent 3bb225f commit f5373c5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mypy/semanal.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
from __future__ import annotations
5252

5353
from contextlib import contextmanager
54-
from typing import Any, Callable, Iterable, Iterator, List, TypeVar, cast
54+
from typing import Any, Callable, Collection, Iterable, Iterator, List, TypeVar, cast
5555
from typing_extensions import Final, TypeAlias as _TypeAlias
5656

5757
from mypy import errorcodes as codes, message_registry
@@ -6115,7 +6115,9 @@ def add_plugin_dependency(self, trigger: str, target: str | None = None) -> None
61156115
target = self.scope.current_target()
61166116
self.cur_mod_node.plugin_deps.setdefault(trigger, set()).add(target)
61176117

6118-
def add_type_alias_deps(self, aliases_used: Iterable[str], target: str | None = None) -> None:
6118+
def add_type_alias_deps(
6119+
self, aliases_used: Collection[str], target: str | None = None
6120+
) -> None:
61196121
"""Add full names of type aliases on which the current node depends.
61206122
61216123
This is used by fine-grained incremental mode to re-check the corresponding nodes.

0 commit comments

Comments
 (0)