You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since python/cpython@74723e1 (in CPython 3.13 and later), a variety of calls of Handler.acquire() and Handler.release() got converted into with Handler.lock.
As a result, unless you're overriding Handler.handle, Handler.lockcannot be None, which it could be previously.
Note that logging.NullHandlerdoes actually set lock to None in the stdlib, but it does override Handler.handle.
I’m unsure about the policy for typeshed is about instance variables whose valid values depend on whether a particular method is overridden.
The text was updated successfully, but these errors were encountered:
Since python/cpython@74723e1 (in CPython 3.13 and later), a variety of calls of
Handler.acquire()
andHandler.release()
got converted intowith Handler.lock
.As a result, unless you're overriding
Handler.handle
,Handler.lock
cannot be None, which it could be previously.Note that
logging.NullHandler
does actually setlock
to None in the stdlib, but it does overrideHandler.handle
.I’m unsure about the policy for typeshed is about instance variables whose valid values depend on whether a particular method is overridden.
The text was updated successfully, but these errors were encountered: