Skip to content

Commit

Permalink
lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Евгений Блинов authored and Евгений Блинов committed Mar 1, 2025
1 parent cd181a8 commit a46af8e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cantok/types.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import sys
from collections.abc import Iterable
from collections.abc import Iterable as IterableFromCollections
from typing import Iterable as IterableFromTyping

if sys.version_info >= (3, 10):
from typing import TypeAlias # pragma: no cover
Expand All @@ -8,6 +9,6 @@


if sys.version_info >= (3, 9):
IterableWithTokens: TypeAlias = Iterable['AbstractToken'] # type: ignore[name-defined, unused-ignore] # pragma: no cover
IterableWithTokens: TypeAlias = IterableFromCollections['AbstractToken'] # type: ignore[name-defined, unused-ignore] # pragma: no cover
else:
IterableWithTokens = Iterable['AbstractToken'] # type: ignore[name-defined] # pragma: no cover
IterableWithTokens = IterableFromTyping['AbstractToken'] # type: ignore[name-defined] # pragma: no cover

0 comments on commit a46af8e

Please sign in to comment.