Skip to content

Commit cf77a9f

Browse files
Update for_helpers.py
1 parent 3460d10 commit cf77a9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypyc/irbuild/for_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from __future__ import annotations
99

10-
from typing import Any, Callable, ClassVar, Type
10+
from typing import Any, Callable, ClassVar
1111

1212
from mypy.nodes import (
1313
ARG_POS,
@@ -1192,7 +1192,7 @@ def gen_condition(self) -> None:
11921192
# ForIterable
11931193
gens = self.gens
11941194

1195-
def check_type(obj: Any, typ: Type[Any]) -> bool:
1195+
def check_type(obj: Any, typ: type[Any]) -> bool:
11961196
# ForEnumerate gen_condition is as fast as it's underlying generator's
11971197
return (
11981198
isinstance(obj, typ) or isinstance(obj, ForEnumerate) and isinstance(obj.gen, typ)

0 commit comments

Comments
 (0)