Remove remaining bare Incompletes (#11768)

Enable Y065
This commit is contained in:
Sebastian Rittau
2024-04-16 15:26:14 +02:00
committed by GitHub
parent 7c8e82fe48
commit 7d56cd9a6c
33 changed files with 110 additions and 100 deletions

View File

@@ -1,7 +1,7 @@
version = "24.0.*"
upstream_repository = "https://github.com/pyca/pyopenssl"
# Requires a version of cryptography with a `py.typed` file
requires = ["cryptography>=35.0.0"]
requires = ["cryptography>=35.0.0", "types-cffi"]
partial_stub = true
[tool.stubtest]

View File

@@ -4,6 +4,7 @@ from _typeshed import Incomplete, ReadableBuffer
from collections.abc import Callable, MutableSequence, Sequence
from typing import Any, TypeVar
import _cffi_backend as cffi
from OpenSSL.crypto import X509, PKey, X509Name
OPENSSL_VERSION_NUMBER: int
@@ -164,9 +165,7 @@ class Connection:
def server_random(self) -> bytes | None: ...
def client_random(self) -> bytes | None: ...
def master_key(self) -> bytes | None: ...
def export_keying_material(
self, label: Incomplete, olen: Incomplete, context: Incomplete = None
) -> Incomplete: ... # TODO: type, see RFC-5705
def export_keying_material(self, label: bytes, olen: int, context: bytes | None = None) -> cffi.buffer: ...
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`