]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
ensure connection is not None
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Oct 2021 19:58:37 +0000 (15:58 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Oct 2021 20:01:40 +0000 (16:01 -0400)
commit27f4133c5de1b721489e9af733038d3dc7394e79
tree0cf6f3dd02ccaab5ce89eade34b35fb33592ae19
parent888fa838c824e9127eeb3d748c19df5da419748c
ensure connection is not None

the inspect() API changed in
https://github.com/sqlalchemy/sqlalchemy2-stubs/commit/68f8417888456588714fcced1c6799f3eb00ff2d
to be more accurate which correctly appears to necessitate a
type check in Alembic AutogenContext.inspector() to ensure
"self.connection" isn't None

Change-Id: Icb3c73be62dc14d9a8f88e0723c3651b6628739a
alembic/autogenerate/api.py