From c1eb9463244575f53b6a4c7d21688eb86894f0d9 Mon Sep 17 00:00:00 2001 From: Matt Robinson Date: Mon, 17 Sep 2018 10:36:49 -0700 Subject: [PATCH] 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. --- stdlib/2and3/logging/__init__.pyi | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/stdlib/2and3/logging/__init__.pyi b/stdlib/2and3/logging/__init__.pyi index 0bb402217..1eabe34ec 100644 --- a/stdlib/2and3/logging/__init__.pyi +++ b/stdlib/2and3/logging/__init__.pyi @@ -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: ...