Remove redundant inheritances from Iterator (#12814)

This commit is contained in:
Stephen Morton
2024-10-15 11:17:34 -07:00
committed by GitHub
parent f08d769f7c
commit 1fb6ebf62b
3 changed files with 7 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
import sys
from _typeshed import AnyStr_co, StrOrBytesPath
from collections.abc import Callable, Iterable, Iterator
from collections.abc import Callable, Iterable
from types import TracebackType
from typing import IO, Any, AnyStr, Literal, Protocol, overload
from typing import IO, Any, AnyStr, Generic, Literal, Protocol, overload
from typing_extensions import Self, TypeAlias
if sys.version_info >= (3, 9):
@@ -107,7 +107,7 @@ def fileno() -> int: ...
def isfirstline() -> bool: ...
def isstdin() -> bool: ...
class FileInput(Iterator[AnyStr]):
class FileInput(Generic[AnyStr]):
if sys.version_info >= (3, 10):
# encoding and errors are added
@overload