fix self type for stdlib/2 (#645)

This commit is contained in:
Elazar Gershuni
2016-10-30 23:51:52 +02:00
committed by Guido van Rossum
parent 252a772b67
commit 59f86e1b6a
8 changed files with 12 additions and 12 deletions

View File

@@ -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