From 8ca86684bbc6dd5cefbcc2f241cda683b98aaf80 Mon Sep 17 00:00:00 2001 From: Jukka Lehtosalo Date: Tue, 22 Feb 2022 16:29:34 +0000 Subject: [PATCH] Typeshed cherry-pick: Replace some literal types in logging with int (#7354) --- mypy/typeshed/stdlib/logging/__init__.pyi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mypy/typeshed/stdlib/logging/__init__.pyi b/mypy/typeshed/stdlib/logging/__init__.pyi index d0d50041a0cf..442e79a9c6f3 100644 --- a/mypy/typeshed/stdlib/logging/__init__.pyi +++ b/mypy/typeshed/stdlib/logging/__init__.pyi @@ -244,14 +244,14 @@ class Logger(Filterer): def hasHandlers(self) -> bool: ... def callHandlers(self, record: LogRecord) -> None: ... # undocumented -CRITICAL: Literal[50] -FATAL: Literal[50] -ERROR: Literal[40] -WARNING: Literal[30] -WARN: Literal[30] -INFO: Literal[20] -DEBUG: Literal[10] -NOTSET: Literal[0] +CRITICAL: int +FATAL: int +ERROR: int +WARNING: int +WARN: int +INFO: int +DEBUG: int +NOTSET: int class Handler(Filterer): level: int # undocumented