]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
DBAPIConnection can be None for checkin event
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 8 Jan 2024 14:15:17 +0000 (09:15 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 8 Jan 2024 14:15:17 +0000 (09:15 -0500)
commit071d3e2d2b11a96fc5a143530357244177259189
tree589af06a127975b799af7a021ccd6509c8aafb9d
parent4871a2f72f5f0e514fe81a8caa17a14f9fc51300
DBAPIConnection can be None for checkin event

Fixed the type signature for the :meth:`.PoolEvents.checkin` event to
indicate that the given :class:`.DBAPIConnection` argument may be ``None``
in the case where the connection has been invalidated.

Change-Id: I4c6f0cf999f2ffb730909e2688eb3b0794ecf2ab
doc/build/changelog/unreleased_20/checkin_conn_none.rst [new file with mode: 0644]
lib/sqlalchemy/pool/events.py