Skip to content

Commit

Permalink
Typeshed cherry-pick: Replace some literal types in logging with int (#…
Browse files Browse the repository at this point in the history
…7354) (#12239)

Fixes some regressions.

Context: python/typeshed#7258
  • Loading branch information
JukkaL authored Feb 22, 2022
1 parent 784b67e commit bb1fda3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mypy/typeshed/stdlib/logging/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb1fda3

Please sign in to comment.