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

@@ -1,4 +1,4 @@
from typing import Any, Type
from typing import Any
from typing_extensions import Literal
from .abstract.attrDef import AttrDef as AttrDef
@@ -98,7 +98,7 @@ HASHED_SALTED_SHA384: Literal["SALTED_SHA384"]
HASHED_SALTED_SHA512: Literal["SALTED_SHA512"]
HASHED_SALTED_MD5: Literal["SALTED_MD5"]
NUMERIC_TYPES: tuple[Type[Any], ...]
INTEGER_TYPES: tuple[Type[Any], ...]
STRING_TYPES: tuple[Type[Any], ...]
SEQUENCE_TYPES: tuple[Type[Any], ...]
NUMERIC_TYPES: tuple[type[Any], ...]
INTEGER_TYPES: tuple[type[Any], ...]
STRING_TYPES: tuple[type[Any], ...]
SEQUENCE_TYPES: tuple[type[Any], ...]

View File

@@ -1,6 +1,6 @@
from _typeshed import Self
from types import TracebackType
from typing import Any, Type
from typing import Any
from typing_extensions import Literal
from .server import Server
@@ -101,7 +101,7 @@ class Connection:
def usage(self): ...
def __enter__(self: Self) -> Self: ...
def __exit__(
self, exc_type: Type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
) -> Literal[False] | None: ...
def bind(self, read_server_info: bool = ..., controls: Any | None = ...): ...
def rebind(

View File

@@ -1,5 +1,5 @@
import socket
from typing import Any, Type, TypeVar
from typing import Any, TypeVar
_T = TypeVar("_T")
@@ -7,7 +7,7 @@ class LDAPException(Exception): ...
class LDAPOperationResult(LDAPException):
def __new__(
cls: Type[_T],
cls: type[_T],
result: Any | None = ...,
description: Any | None = ...,
dn: Any | None = ...,