Add filters to stdlib/warnings.pyi (#5889)

This commit is contained in:
Hasan Ramezani
2021-08-08 22:48:47 +04:30
committed by GitHub
parent 24780a3e03
commit 8b9d771b67
2 changed files with 4 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ from typing import Any, Tuple, Type, overload
_defaultaction: str
_onceregistry: dict[Any, Any]
filters: list[Tuple[Any, ...]]
filters: list[tuple[str, str | None, Type[Warning], str | None, int]]
@overload
def warn(message: str, category: Type[Warning] | None = ..., stacklevel: int = ..., source: Any | None = ...) -> None: ...