]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Table arguments name and metadata are positional only
authorFederico Caselli <cfederico87@gmail.com>
Mon, 5 Apr 2021 19:57:24 +0000 (21:57 +0200)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 6 Apr 2021 22:04:45 +0000 (18:04 -0400)
commit6a485acaa914933158ca4d28fb305d64c901b728
tree17f9efe0bf5c0dc55bdb01143fcff46da0e07eed
parent976604ccd66ecd0bd59a5b1fd35fdfc3bf08560b
Table arguments name and metadata are positional only

The :class:`_sql.Table` object now raises an informative error message if
it is instantiated without passing at least the :paramref:`_sql.Table.name`
and :paramref:`_sql.Table.metadata` arguments positionally. Previously, if
these were passed as keyword arguments, the object would silently fail to
initialize correctly.

Fixes: #6135
Change-Id: I54d0c89fd549fc504289a87ea0bb37369f982b06
(cherry picked from commit 3de954bc027ebf655e7ed26c83cfb3fd4b7b5edf)
doc/build/changelog/unreleased_13/6135.rst [new file with mode: 0644]
lib/sqlalchemy/sql/schema.py
test/sql/test_metadata.py