Skip to content

Commit 8ca8668

Browse files
committed
Typeshed cherry-pick: Replace some literal types in logging with int (#7354)
1 parent a8b6d6f commit 8ca8668

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

mypy/typeshed/stdlib/logging/__init__.pyi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,14 @@ class Logger(Filterer):
244244
def hasHandlers(self) -> bool: ...
245245
def callHandlers(self, record: LogRecord) -> None: ... # undocumented
246246

247-
CRITICAL: Literal[50]
248-
FATAL: Literal[50]
249-
ERROR: Literal[40]
250-
WARNING: Literal[30]
251-
WARN: Literal[30]
252-
INFO: Literal[20]
253-
DEBUG: Literal[10]
254-
NOTSET: Literal[0]
247+
CRITICAL: int
248+
FATAL: int
249+
ERROR: int
250+
WARNING: int
251+
WARN: int
252+
INFO: int
253+
DEBUG: int
254+
NOTSET: int
255255

256256
class Handler(Filterer):
257257
level: int # undocumented

0 commit comments

Comments
 (0)