mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
add _levelNames to logging/__init__.py (#1404)
* add _levelNames to logging/__init__.py * add Python 3's _levelToName and _nameToLevel
This commit is contained in:
committed by
Jelle Zijlstra
parent
fed4e03e53
commit
6849262df6
@@ -22,6 +22,11 @@ _Level = Union[int, Text]
|
||||
|
||||
raiseExceptions: bool
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
_levelToName = ... # type: Dict[int, str]
|
||||
_nameToLevel = ... # type: Dict[str, int]
|
||||
else:
|
||||
_levelNames = ... # type: dict
|
||||
|
||||
class Logger:
|
||||
name = ... # type: str
|
||||
|
||||
Reference in New Issue
Block a user