mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-28 22:56:55 +08:00
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:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user