From 15f737d2a8e9ed3307822e2a8c068b89f92a9812 Mon Sep 17 00:00:00 2001 From: hashstat Date: Wed, 4 Oct 2017 08:37:08 -0700 Subject: [PATCH] Corrects return type of warnings.formatwarning(). (#1640) --- stdlib/2and3/warnings.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2and3/warnings.pyi b/stdlib/2and3/warnings.pyi index 6e8507bfa..67d2b813d 100644 --- a/stdlib/2and3/warnings.pyi +++ b/stdlib/2and3/warnings.pyi @@ -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: ...