Replace Any with Incomplete in many places (#9558)

This commit is contained in:
Alex Waygood
2023-01-18 08:48:16 +00:00
committed by GitHub
parent ddfaca3200
commit 4fea314594
460 changed files with 3779 additions and 2909 deletions

View File

@@ -1,3 +1,4 @@
from _typeshed import Incomplete
from typing import Any
from .base import Key
@@ -52,8 +53,8 @@ class CryptographyAESKey(Key):
MODES: Any
def __init__(self, key, algorithm) -> None: ...
def to_dict(self): ...
def encrypt(self, plain_text, aad: Any | None = ...): ...
def decrypt(self, cipher_text, iv: Any | None = ..., aad: Any | None = ..., tag: Any | None = ...): ...
def encrypt(self, plain_text, aad: Incomplete | None = ...): ...
def decrypt(self, cipher_text, iv: Incomplete | None = ..., aad: Incomplete | None = ..., tag: Incomplete | None = ...): ...
def wrap_key(self, key_data): ...
def unwrap_key(self, wrapped_key): ...