Skip to content

Commit 0e38db5

Browse files
committed
Run pyupgrade
1 parent 6c51867 commit 0e38db5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

flake8_pyi/checker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
import logging
55
import re
66
from dataclasses import dataclass
7-
from typing import ClassVar, Iterator
7+
from typing import ClassVar
8+
from collections.abc import Iterator
89

910
from flake8.options.manager import OptionManager
1011

flake8_pyi/visitor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from functools import cached_property, partial
1313
from itertools import chain, groupby, zip_longest
1414
from keyword import iskeyword
15-
from typing import TYPE_CHECKING, Literal, NamedTuple, Protocol
15+
from typing import TYPE_CHECKING, Literal, NamedTuple, Protocol, TypeAlias, TypeGuard
1616

1717
from . import checker, errors
1818
from .errors import Error
@@ -21,7 +21,7 @@
2121
# We don't have typing_extensions as a runtime dependency,
2222
# but all our annotations are stringized due to __future__ annotations,
2323
# and mypy thinks typing_extensions is part of the stdlib.
24-
from typing_extensions import TypeAlias, TypeGuard, TypeIs
24+
from typing_extensions import TypeIs
2525

2626
if sys.version_info >= (3, 12):
2727
_TypeAliasNodeType: TypeAlias = ast.TypeAlias | ast.AnnAssign

0 commit comments

Comments
 (0)