stdlib: More pos-only parameters to Protocols (#10987)

This commit is contained in:
Jelle Zijlstra
2023-11-06 14:45:12 -08:00
committed by GitHub
parent 5030b7419b
commit 3229b36644
7 changed files with 12 additions and 9 deletions

View File

@@ -227,7 +227,8 @@ class ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
class _HTTPConnectionProtocol(Protocol):
def __call__(
self,
host: str,
__host: str,
*,
port: int | None = ...,
timeout: float = ...,
source_address: tuple[str, int] | None = ...,