mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 04:52:23 +08:00
fix self type for stdlib/2 (#645)
This commit is contained in:
committed by
Guido van Rossum
parent
252a772b67
commit
59f86e1b6a
@@ -27,7 +27,7 @@ class _RandomNameSequence:
|
||||
def __iter__(self) -> "_RandomNameSequence": ...
|
||||
def next(self) -> str: ...
|
||||
# from os.path:
|
||||
def normcase(path: AnyStr) -> AnyStr: ...
|
||||
def normcase(self, path: AnyStr) -> AnyStr: ...
|
||||
|
||||
class _TemporaryFileWrapper(IO[str]):
|
||||
close_called = ... # type: bool
|
||||
@@ -40,7 +40,7 @@ class _TemporaryFileWrapper(IO[str]):
|
||||
def __exit__(self, exc, value, tb) -> bool: ...
|
||||
def __getattr__(self, name: unicode) -> Any: ...
|
||||
def close(self) -> None: ...
|
||||
def unlink(path: unicode) -> None: ...
|
||||
def unlink(self, path: unicode) -> None: ...
|
||||
|
||||
# TODO text files
|
||||
|
||||
|
||||
Reference in New Issue
Block a user