Commit Graph
9 Commits
Author SHA1 Message Date
Alex Grönholm 3a8d121890 Fix type of the "host" parameter in asyncio getaddrinfo() (#7517) 2022-03-20 13:17:55 +00:00
Alex Grönholm 143d57690e Corrected (Base)ExceptionGroup names and types (#6895)
The second argument to `ExceptionGroup` is positional-only. The `exceptions` property always returns a tuple, no matter what the type of the original `__exceptions` argument is.
2022-01-11 15:02:08 -08:00
Alex Grönholm ad89dee03b Fixed return type of getaddrinfo() everywhere (#4304) 2020-07-10 10:46:28 +02:00
Alex Grönholm f9d469ac2b Fixed parameter and return types of getnameinfo() everywhere (#4305) 2020-07-03 15:46:02 +02:00
Alex Grönholm 7b5e9dca48 Added explicit SSLSocket.accept() definition (#3564) 2020-01-05 16:14:42 +01:00
Alex Grönholm f5a1925e76 Corrected type for "data" in two methods (#3562)
The documentation states:

* datagram_received: "data is a bytes object containing the incoming data."
* pipe_data_received: "data is a non-empty bytes object containing the received data."
2019-12-29 16:03:53 +01:00
Alex Grönholm 83f9d833fb Fixed missing methods, wrong names and types (#3560)
Changes:

* Added the missing methods `selected_alpn_protocol()` and `version()` to `SSLObject`
* Fixed the naming of the `shared_ciphers()` method in `SSLSocket` and `SSLObject` (was missing the last "s")
* Fixed return type of `cipher()` (it's documented to return `None` if no connection has been established)
* Fixed second argument in cipher and shared_ciphers

The TLS version is a string, like "TLSv1.2".

* Added explicit overloads for getpeercert()

Its return type can be determined statically based on the `binary_form` argument.
2019-12-29 16:02:18 +01:00
Alex Grönholm 023afbc098 Fixed the signature of six.raise_from() (#1563)
* Made the from_value argument optional in raise_from()

* Fixed six.raise_from() from_value and return type for both py2 and py3
2017-08-26 14:43:43 -07:00
Alex Grönholm 37fc02ea7e Made Logger methods accept BaseExceptions for exc_info (#1376)
Loggers accept any exceptions as the exc_info argument, not only Exception subclasses.
2017-05-31 20:00:56 -07:00