Skip to content

Add forgotten self for stdlib/2 #645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stdlib/2/__builtin__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ class file(BinaryIO):
@overload
def __init__(self, file: unicode, mode: str = 'r', buffering: int = ...) -> None: ...
@overload
def __init__(file: int, mode: str = 'r', buffering: int = ...) -> None: ...
def __init__(self, file: int, mode: str = 'r', buffering: int = ...) -> None: ...
def __iter__(self) -> Iterator[str]: ...
def read(self, n: int = ...) -> str: ...
def __enter__(self) -> BinaryIO: ...
Expand Down
2 changes: 1 addition & 1 deletion stdlib/2/_struct.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Struct(object):
format = ... # type: str

def __init__(self, fmt: str) -> None: ...
def pack_into(buffer: bytearray, offset: int, obj: Any) -> None: ...
def pack_into(self, buffer: bytearray, offset: int, obj: Any) -> None: ...
def pack(self, *args) -> str: ...
def unpack(self, s:str) -> Tuple[Any]: ...
def unpack_from(self, buffer: bytearray, offset:int = ...) -> Tuple[Any]: ...
Expand Down
2 changes: 1 addition & 1 deletion stdlib/2/_symtable.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ class symtable(object):
type = ... # type: int
varnames = ... # type: List[str]

def __init__(src: str, filename: str, startstr: str) -> None: ...
def __init__(self, src: str, filename: str, startstr: str) -> None: ...


2 changes: 1 addition & 1 deletion stdlib/2/imp.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ def release_lock() -> None: ...

class NullImporter:
def __init__(self, path_string: str) -> None: ...
def find_module(fullname: str, path: str = ...) -> None: ...
def find_module(self, fullname: str, path: str = ...) -> None: ...
6 changes: 3 additions & 3 deletions stdlib/2/select.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class epoll(object):
def fileno(self) -> int: ...
def register(self, fd: int, eventmask: int = ...) -> None: ...
def modify(self, fd: int, eventmask: int) -> None: ...
def unregister(fd: int) -> None: ...
def poll(timeout: float = ..., maxevents: int = ...) -> Any: ...
def unregister(self, fd: int) -> None: ...
def poll(self, timeout: float = ..., maxevents: int = ...) -> Any: ...
@classmethod
def fromfd(self, fd: int) -> epoll: ...
def fromfd(cls, fd: int) -> epoll: ...
2 changes: 1 addition & 1 deletion stdlib/2/shlex.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class shlex:
def sourcehook(self, filename: str) -> None: ...
def push_source(self, stream: IO[Any], filename: str = ...) -> None: ...
def pop_source(self) -> IO[Any]: ...
def error_leader(file: str = ..., line: int = ...) -> str: ...
def error_leader(self, file: str = ..., line: int = ...) -> str: ...

commenters = ... # type: str
wordchars = ... # type: str
Expand Down
4 changes: 2 additions & 2 deletions stdlib/2/ssl.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ class SSLContext:
binary_form: bool = ...) -> Union[List[_PeerCertRetDictType], List[bytes]]: ...
def set_default_verify_paths(self) -> None: ...
def set_ciphers(self, ciphers: str) -> None: ...
def set_alpn_protocols(protocols: List[str]) -> None: ...
def set_npn_protocols(protocols: List[str]) -> None: ...
def set_alpn_protocols(self, protocols: List[str]) -> None: ...
def set_npn_protocols(self, protocols: List[str]) -> None: ...
def set_servername_callback(self,
server_name_callback: Optional[_SrvnmeCbType]) -> None: ...
def load_dh_params(self, dhfile: str) -> None: ...
Expand Down
4 changes: 2 additions & 2 deletions stdlib/2/tempfile.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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]):
__doc__ = ... # type: str
Expand All @@ -42,7 +42,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

Expand Down