mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-25 21:31:09 +08:00
Corrects return type of warnings.formatwarning(). (#1640)
This commit is contained in:
@@ -13,7 +13,7 @@ def showwarning(message: str, category: Type[Warning], filename: str,
|
||||
lineno: int, file: Optional[TextIO] = ...,
|
||||
line: Optional[str] = ...) -> None: ...
|
||||
def formatwarning(message: str, category: Type[Warning], filename: str,
|
||||
lineno: int, line: Optional[str] = ...) -> None: ...
|
||||
lineno: int, line: Optional[str] = ...) -> str: ...
|
||||
def filterwarnings(action: str, message: str = ...,
|
||||
category: Type[Warning] = ..., module: str = ...,
|
||||
lineno: int = ..., append: bool = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user