mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-31 16:56:20 +08:00
clean python 3 specific stuff from stdlib/@python2 stubs (#5451)
This commit is contained in:
1 parent
f94d838814
commit
5ec4f06263
121 files changed
+1024
-4801
No files matched your search
@@ -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