Big diff: use lower-case list and dict (#5888)

This commit is contained in:
Akuli
2021-08-08 19:26:35 +03:00
committed by GitHub
parent 11f54c3407
commit ce11072dbe
325 changed files with 2196 additions and 2334 deletions

View File

@@ -1,5 +1,5 @@
from datetime import datetime
from typing import Any, Callable, Iterable, List, Sequence, Set, Text, Tuple, Union
from typing import Any, Callable, Iterable, Sequence, Set, Text, Tuple, Union
from cryptography.hazmat.primitives.asymmetric.dsa import DSAPrivateKey, DSAPublicKey
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKey, RSAPublicKey
@@ -45,7 +45,7 @@ class X509Name:
emailAddress: Text
def __init__(self, name: X509Name) -> None: ...
def der(self) -> bytes: ...
def get_components(self) -> List[Tuple[bytes, bytes]]: ...
def get_components(self) -> list[Tuple[bytes, bytes]]: ...
def hash(self) -> int: ...
class X509:
@@ -83,7 +83,7 @@ class X509Req:
def add_extensions(self, extensions: Iterable[X509Extension]) -> None: ...
@classmethod
def from_cryptography(cls, crypto_req: CertificateSigningRequest) -> X509Req: ...
def get_extensions(self) -> List[X509Extension]: ...
def get_extensions(self) -> list[X509Extension]: ...
def get_pubkey(self) -> PKey: ...
def get_subject(self) -> X509Name: ...
def get_version(self) -> int: ...
@@ -103,7 +103,7 @@ class X509Extension:
class Revoked:
def __init__(self) -> None: ...
def all_reasons(self) -> List[bytes]: ...
def all_reasons(self) -> list[bytes]: ...
def get_reason(self) -> bytes | None: ...
def get_rev_date(self) -> bytes: ...
def get_serial(self) -> bytes: ...
@@ -135,7 +135,7 @@ class X509Store:
class X509StoreContext:
def __init__(self, store: X509Store, certificate: X509, chain: Sequence[X509] | None = ...) -> None: ...
def get_verified_chain(self) -> List[X509]: ...
def get_verified_chain(self) -> list[X509]: ...
def set_store(self, store: X509Store) -> None: ...
def verify_certificate(self) -> None: ...