mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-08 20:43:25 +08:00
Improve warnings stubs (#3501)
* merge 2and3 for _warnings * move warn and warn_explicit into _warnings
This commit is contained in:
committed by
Sebastian Rittau
parent
b585c96e5d
commit
d215f502c6
@@ -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: ...
|
||||
Reference in New Issue
Block a user