mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Tighten return type of OpenSSL Connection.get_protocol_name() (#5972)
The method always returns a str. See implementation at:
30e82d4ba5/src/OpenSSL/SSL.py (L2420-L2430)
If version were ever None, it would raise an exception on the .decode()
line.
This commit is contained in:
@@ -131,7 +131,7 @@ class Connection(object):
|
||||
def get_peer_cert_chain(self) -> list[X509]: ...
|
||||
def get_alpn_proto_negotiated(self) -> bytes: ...
|
||||
def get_cipher_name(self) -> str | None: ...
|
||||
def get_protocol_version_name(self) -> str | None: ...
|
||||
def get_protocol_version_name(self) -> str: ...
|
||||
def get_shutdown(self) -> int: ...
|
||||
def get_app_data(self) -> Any: ...
|
||||
def set_app_data(self, data: Any) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user