Skip to content

Commit 9cc584a

Browse files
committed
Use threading.RLock for logging.Handler.lock
CPython's logging.Handler has used an RLock (not a Lock) since Python 2.5, and RLock is not a subclass of Lock, so the stub type was inaccurate. Fixes #13382
1 parent c6d1070 commit 9cc584a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stdlib/logging/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ NOTSET: Final = 0
245245
class Handler(Filterer):
246246
level: int # undocumented
247247
formatter: Formatter | None # undocumented
248-
lock: threading.Lock | None # undocumented
248+
lock: threading.RLock | None # undocumented
249249
name: str | None # undocumented
250250
def __init__(self, level: _Level = 0) -> None: ...
251251
def get_name(self) -> str: ... # undocumented

0 commit comments

Comments
 (0)