mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use lowercase type everywhere (#6853)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user