Fix a few issues with parameter defaults (#9572)

This commit is contained in:
Alex Waygood
2023-01-20 17:47:59 +00:00
committed by GitHub
parent 7e40d70cad
commit d98d1674e7
10 changed files with 37 additions and 30 deletions

View File

@@ -779,7 +779,12 @@ else:
if sys.version_info >= (3, 8):
def has_dualstack_ipv6() -> bool: ...
def create_server(
address: _Address, *, family: int = 2, backlog: int | None = None, reuse_port: bool = False, dualstack_ipv6: bool = False
address: _Address,
*,
family: int = ...,
backlog: int | None = None,
reuse_port: bool = False,
dualstack_ipv6: bool = False,
) -> socket: ...
# the 5th tuple item is an address