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