From 2adf05eec713fc8b6eb74f2391fda2914cc0efb1 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Mon, 21 Sep 2015 15:06:51 -0700 Subject: [PATCH] Add _warnings.pyi --- builtins/2.7/_warnings.pyi | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 builtins/2.7/_warnings.pyi 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: ...