]> 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 21:18:44 +0000 (17:18 -0400)
commit3de954bc027ebf655e7ed26c83cfb3fd4b7b5edf
tree207b479aee69c640acb4143567fe882084ec1d0c
parent165c3a65dcb1ba3f42ecf2b5da7c298bdc259f9b
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
doc/build/changelog/unreleased_13/6135.rst [new file with mode: 0644]
lib/sqlalchemy/sql/schema.py
test/sql/test_metadata.py