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

@@ -1,9 +1,11 @@
from types import ModuleType, TracebackType
from typing import Any, TextIO, Type, overload
from typing import Any, Sequence, TextIO, Type, overload
from typing_extensions import Literal
from _warnings import warn as warn, warn_explicit as warn_explicit
filters: Sequence[tuple[str, str | None, Type[Warning], str | None, int]] # undocumented, do not mutate
def showwarning(
message: Warning | str, category: Type[Warning], filename: str, lineno: int, file: TextIO | None = ..., line: str | None = ...
) -> None: ...