Use lowercase type everywhere (#6853)

This commit is contained in:
Alex Waygood
2022-01-08 15:09:29 +00:00
committed by GitHub
parent f8501d33c7
commit a40d79a4e6
172 changed files with 728 additions and 761 deletions

View File

@@ -2,7 +2,7 @@ import datetime
from abc import ABCMeta, abstractmethod
from enum import Enum
from ipaddress import IPv4Address, IPv4Network, IPv6Address, IPv6Network
from typing import Any, ClassVar, Generator, Generic, Iterable, Sequence, Text, Type, TypeVar
from typing import Any, ClassVar, Generator, Generic, Iterable, Sequence, Text, TypeVar
from cryptography.hazmat.backends.interfaces import X509Backend
from cryptography.hazmat.primitives.asymmetric.dsa import DSAPrivateKey, DSAPublicKey
@@ -293,7 +293,7 @@ class Extensions(object):
def __init__(self, general_names: list[Extension[Any]]) -> None: ...
def __iter__(self) -> Generator[Extension[Any], None, None]: ...
def get_extension_for_oid(self, oid: ObjectIdentifier) -> Extension[Any]: ...
def get_extension_for_class(self, extclass: Type[_T]) -> Extension[_T]: ...
def get_extension_for_class(self, extclass: type[_T]) -> Extension[_T]: ...
class DuplicateExtension(Exception):
oid: ObjectIdentifier
@@ -306,12 +306,12 @@ class ExtensionNotFound(Exception):
class IssuerAlternativeName(ExtensionType):
def __init__(self, general_names: list[GeneralName]) -> None: ...
def __iter__(self) -> Generator[GeneralName, None, None]: ...
def get_values_for_type(self, type: Type[GeneralName]) -> list[Any]: ...
def get_values_for_type(self, type: type[GeneralName]) -> list[Any]: ...
class SubjectAlternativeName(ExtensionType):
def __init__(self, general_names: list[GeneralName]) -> None: ...
def __iter__(self) -> Generator[GeneralName, None, None]: ...
def get_values_for_type(self, type: Type[GeneralName]) -> list[Any]: ...
def get_values_for_type(self, type: type[GeneralName]) -> list[Any]: ...
class AuthorityKeyIdentifier(ExtensionType):
@property