mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-25 04:16:44 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
from typing import Any, Dict, List, Tuple, Type, overload
|
||||
from typing import Any, Tuple, Type, overload
|
||||
|
||||
_defaultaction: str
|
||||
_onceregistry: Dict[Any, Any]
|
||||
filters: List[Tuple[Any, ...]]
|
||||
_onceregistry: dict[Any, Any]
|
||||
filters: list[Tuple[Any, ...]]
|
||||
|
||||
@overload
|
||||
def warn(message: str, category: Type[Warning] | None = ..., stacklevel: int = ..., source: Any | None = ...) -> None: ...
|
||||
@@ -15,8 +15,8 @@ def warn_explicit(
|
||||
filename: str,
|
||||
lineno: int,
|
||||
module: str | None = ...,
|
||||
registry: Dict[str | Tuple[str, Type[Warning], int], int] | None = ...,
|
||||
module_globals: Dict[str, Any] | None = ...,
|
||||
registry: dict[str | Tuple[str, Type[Warning], int], int] | None = ...,
|
||||
module_globals: dict[str, Any] | None = ...,
|
||||
source: Any | None = ...,
|
||||
) -> None: ...
|
||||
@overload
|
||||
@@ -26,7 +26,7 @@ def warn_explicit(
|
||||
filename: str,
|
||||
lineno: int,
|
||||
module: str | None = ...,
|
||||
registry: Dict[str | Tuple[str, Type[Warning], int], int] | None = ...,
|
||||
module_globals: Dict[str, Any] | None = ...,
|
||||
registry: dict[str | Tuple[str, Type[Warning], int], int] | None = ...,
|
||||
module_globals: dict[str, Any] | None = ...,
|
||||
source: Any | None = ...,
|
||||
) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user