diff --git a/builtins/2.7/_warnings.pyi b/builtins/2.7/_warnings.pyi new file mode 100644 index 000000000..99b864407 --- /dev/null +++ b/builtins/2.7/_warnings.pyi @@ -0,0 +1,11 @@ +from typing import Any + +default_action = ... # type: str +filters = ... # type: List[tuple] +once_registry = ... # type: dict + +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: ...