]> 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:45 +0000 (09:15 -0500)
commit80f772a6c0d75dc316b4141d83f502f64a9852bd
tree3b4229f67bafd525595b49c07ea19ce95a4569a8
parent68a249649313c2f5e78862b7843637a94da02eb0
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
(cherry picked from commit 071d3e2d2b11a96fc5a143530357244177259189)
doc/build/changelog/unreleased_20/checkin_conn_none.rst [new file with mode: 0644]
lib/sqlalchemy/pool/events.py