mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
clean python 3 specific stuff from stdlib/@python2 stubs (#5451)
This commit is contained in:
@@ -7,10 +7,7 @@ class _ReadableBinary(Protocol):
|
||||
def read(self, size: int) -> bytes: ...
|
||||
def seek(self, offset: int) -> Any: ...
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
_File = Union[Text, os.PathLike[Text], _ReadableBinary]
|
||||
else:
|
||||
_File = Union[Text, _ReadableBinary]
|
||||
_File = Union[Text, _ReadableBinary]
|
||||
|
||||
@overload
|
||||
def what(file: _File, h: None = ...) -> Optional[str]: ...
|
||||
|
||||
Reference in New Issue
Block a user