Change logging.lastResort
#11770
Labels
help wanted
An actionable problem of low to medium complexity where a PR would be very welcome
stubs: false positive
Type checkers report false errors
logging.lastResort
#11770
The last resort handler in logging should be a generic
Handler
rather than a stream handler.In the Python logging documentation, it refers to the
lastResort
handler as a handler in one sentence and aStreamHandler
in another. It is set to aStreamHandler
by default, but setting it to another type ofHandler
works without issue in practice.The text was updated successfully, but these errors were encountered: