Use lowercase tuple where possible (#6170)

This commit is contained in:
Akuli
2021-10-15 00:18:19 +00:00
committed by GitHub
parent 5f386b0575
commit 994b69ef8f
242 changed files with 1212 additions and 1224 deletions

View File

@@ -1,4 +1,4 @@
from typing import Any, Tuple, Type, overload
from typing import Any, Type, overload
_defaultaction: str
_onceregistry: dict[Any, Any]
@@ -15,7 +15,7 @@ def warn_explicit(
filename: str,
lineno: int,
module: str | None = ...,
registry: dict[str | Tuple[str, Type[Warning], int], int] | None = ...,
registry: dict[str | tuple[str, Type[Warning], int], int] | None = ...,
module_globals: dict[str, Any] | None = ...,
source: Any | None = ...,
) -> None: ...
@@ -26,7 +26,7 @@ def warn_explicit(
filename: str,
lineno: int,
module: str | None = ...,
registry: dict[str | Tuple[str, Type[Warning], int], int] | None = ...,
registry: dict[str | tuple[str, Type[Warning], int], int] | None = ...,
module_globals: dict[str, Any] | None = ...,
source: Any | None = ...,
) -> None: ...