diff --git a/builtins/3/_warnings.pyi b/builtins/3/_warnings.pyi index 9f517538b..acf046031 100644 --- a/builtins/3/_warnings.pyi +++ b/builtins/3/_warnings.pyi @@ -1,12 +1,11 @@ -"""Stub file for the '_warnings' module.""" -# This is an autogenerated file. It serves as a starting point -# for a more precise manual annotation of this module. -# Feel free to edit the source below, but remove this header when you do. +from typing import Any -from typing import Any, List, Tuple, Dict, Generic +_defaultaction = ... # type: str +_onceregistry = ... # type: dict +filters = ... # type: List[tuple] -def _filters_mutated() -> None: ... - -def warn(message, *args, **kwargs) -> None: ... - -def warn_explicit(message, category, filename: str, lineno: int, *args, **kwargs) -> None: ... +def warn(message: Warning, category:type = ..., stacklevel:int = ...) -> None: ... +def warn_explicit(message: Warning, category:type, + filename: str, lineno: int, + module:Any = ..., registry:dict = ..., + module_globals:dict = ...) -> None: ...