Replace Incomplete | None = None in third party stubs (#14063)

This commit is contained in:
Sebastian Rittau
2025-05-15 21:37:43 +02:00
committed by GitHub
parent acc51542c9
commit 126768408a
488 changed files with 2259 additions and 4044 deletions
@@ -1,4 +1,3 @@
from _typeshed import Incomplete
from typing import Any, ClassVar
from .base import Key
@@ -54,10 +53,8 @@ class CryptographyAESKey(Key):
IV_BYTE_LENGTH_MODE_MAP: ClassVar[dict[str, int]]
def __init__(self, key, algorithm) -> None: ...
def to_dict(self): ...
def encrypt(self, plain_text, aad: Incomplete | None = None): ...
def decrypt(
self, cipher_text, iv: Incomplete | None = None, aad: Incomplete | None = None, tag: Incomplete | None = None
): ...
def encrypt(self, plain_text, aad=None): ...
def decrypt(self, cipher_text, iv=None, aad=None, tag=None): ...
def wrap_key(self, key_data): ...
def unwrap_key(self, wrapped_key): ...