mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Make backlog parameter optional in listen method (#2553)
This commit is contained in:
committed by
Sebastian Rittau
parent
b33738e042
commit
c0d181605e
@@ -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 = ...,
|
||||
|
||||
Reference in New Issue
Block a user