Make backlog parameter optional in listen method (#2553)

This commit is contained in:
PRAJWAL M
2018-10-25 21:44:39 +05:30
committed by Sebastian Rittau
parent b33738e042
commit c0d181605e

View File

@@ -539,7 +539,10 @@ class socket:
def gettimeout(self) -> float: ...
def ioctl(self, control: object,
option: Tuple[int, int, int]) -> None: ...
def listen(self, backlog: int) -> None: ...
if sys.version_info < (3, 5):
def listen(self, backlog: int) -> None: ...
else:
def listen(self, backlog: int = ...) -> None: ...
# TODO the return value may be BinaryIO or TextIO, depending on mode
def makefile(self, mode: str = ..., buffering: int = ...,
encoding: str = ..., errors: str = ...,