Corrects return type of warnings.formatwarning(). (#1640)

This commit is contained in:
hashstat
2017-10-04 08:37:08 -07:00
committed by Jelle Zijlstra
parent f1a01b3017
commit 15f737d2a8

View File

@@ -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: ...