Remove redundant inheritances from Iterator (#12814)

This commit is contained in:
Stephen Morton authored and GitHub committed 2024-10-15 19:17:34 +01:00
1 parent f08d769f7c
commit 1fb6ebf62b
3 files changed
+7 -7

No files matched your search

+3 -3
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