Improve warnings stubs (#3501)

* merge 2and3 for _warnings

* move warn and warn_explicit into _warnings
This commit is contained in:
Jelle Zijlstra
2019-12-03 05:33:37 -08:00
committed by Sebastian Rittau
parent b585c96e5d
commit d215f502c6
4 changed files with 48 additions and 62 deletions

View File

@@ -1,11 +0,0 @@
from typing import Any, Dict, List, Optional, Tuple, Type
_defaultaction: str
_onceregistry: Dict[Any, Any]
filters: List[Tuple[Any, ...]]
def warn(message: Warning, category: Optional[Type[Warning]] = ..., stacklevel: int = ...) -> None: ...
def warn_explicit(message: Warning, category: Optional[Type[Warning]],
filename: str, lineno: int,
module: Any = ..., registry: Dict[Any, Any] = ...,
module_globals: Dict[Any, Any] = ...) -> None: ...