mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Remove many redundant inheritances from Generic[] (#10933)
This commit is contained in:
@@ -2,7 +2,7 @@ import sys
|
||||
from _typeshed import AnyStr_co, StrOrBytesPath
|
||||
from collections.abc import Callable, Iterable, Iterator
|
||||
from types import TracebackType
|
||||
from typing import IO, Any, AnyStr, Generic, Protocol, overload
|
||||
from typing import IO, Any, AnyStr, Protocol, overload
|
||||
from typing_extensions import Literal, Self, TypeAlias
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
@@ -158,7 +158,7 @@ def fileno() -> int: ...
|
||||
def isfirstline() -> bool: ...
|
||||
def isstdin() -> bool: ...
|
||||
|
||||
class FileInput(Iterator[AnyStr], Generic[AnyStr]):
|
||||
class FileInput(Iterator[AnyStr]):
|
||||
if sys.version_info >= (3, 10):
|
||||
# encoding and errors are added
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user