Use PEP 570 syntax in third party stubs (#11554)

This commit is contained in:
Shantanu
2024-03-10 06:11:43 -07:00
committed by GitHub
parent f94bbfbcc4
commit 88fa182253
97 changed files with 625 additions and 632 deletions

View File

@@ -169,7 +169,7 @@ class Connection:
) -> Incomplete: ... # TODO: type, see RFC-5705
def get_app_data(self) -> Any: ...
def set_app_data(self, data: Any) -> None: ...
def sock_shutdown(self, __how: int) -> None: ... # alias to `_socket.socket.shutdown`
def sock_shutdown(self, how: int, /) -> None: ... # alias to `_socket.socket.shutdown`
def want_read(self) -> bool: ...
def want_write(self) -> bool: ...
def get_session(self) -> Session | None: ...