Add name attribute to logging.Handler (#2459)

* Add name attribute to logging.Handler
* Replace some older type comments with variable annotations around the addition line.
This commit is contained in:
Matt Robinson
2018-09-17 10:36:49 -07:00
committed by Sebastian Rittau
parent daae0c7980
commit c1eb946324

View File

@@ -125,20 +125,21 @@ class Logger(Filterer):
def hasHandlers(self) -> bool: ...
CRITICAL = ... # type: int
FATAL = ... # type: int
ERROR = ... # type: int
WARNING = ... # type: int
WARN = ... # type: int
INFO = ... # type: int
DEBUG = ... # type: int
NOTSET = ... # type: int
CRITICAL: int
FATAL: int
ERROR: int
WARNING: int
WARN: int
INFO: int
DEBUG: int
NOTSET: int
class Handler(Filterer):
level = ... # type: int
formatter = ... # type: Optional[Formatter]
lock = ... # type: Optional[threading.Lock]
level: int # undocumented
formatter: Optional[Formatter] # undocumented
lock: Optional[threading.Lock] # undocumented
name: Optional[str] # undocumented
def __init__(self, level: _Level = ...) -> None: ...
def createLock(self) -> None: ...
def acquire(self) -> None: ...