Delete stubs for cryptography (#9459)

Typeshed's stubs for `paramiko` and `pyOpenSSL` now depend on the `cryptography` package, which now provides inline types at runtime
This commit is contained in:
Alex Waygood
2023-01-10 22:16:11 +00:00
committed by GitHub
parent 622a96b1de
commit e2d67bf703
55 changed files with 7 additions and 2039 deletions

View File

@@ -1,3 +1,4 @@
from _typeshed import Incomplete
from collections.abc import Callable
from hashlib import _Hash
from logging import Logger
@@ -25,7 +26,7 @@ class Packetizer:
def set_log(self, log: Logger) -> None: ...
def set_outbound_cipher(
self,
block_engine: Cipher,
block_engine: Cipher[Incomplete],
block_size: int,
mac_engine: _Hash,
mac_size: int,
@@ -34,7 +35,7 @@ class Packetizer:
etm: bool = ...,
) -> None: ...
def set_inbound_cipher(
self, block_engine: Cipher, block_size: int, mac_engine: _Hash, mac_size: int, mac_key: bytes, etm: bool = ...
self, block_engine: Cipher[Incomplete], block_size: int, mac_engine: _Hash, mac_size: int, mac_key: bytes, etm: bool = ...
) -> None: ...
def set_outbound_compressor(self, compressor: ZlibCompressor) -> None: ...
def set_inbound_compressor(self, compressor: ZlibDecompressor) -> None: ...