]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
indicate private use of URL.__new__ privately only
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 1 Oct 2021 17:18:41 +0000 (13:18 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 1 Oct 2021 17:25:16 +0000 (13:25 -0400)
commit7f7c0f4ee1c4218fb72dccb7c5176042902c803a
tree3c097a3fdddd9228c9cc72a488f3420c418d385d
parentab6605aee23ed2c70c38bd5b9f50a6395ac3f2e1
indicate private use of URL.__new__ privately only

Fixed issue where the deprecation warning for the :class:`.URL` constructor
which indicates that the :meth:`.URL.create` method should be used would
not emit if a full positional argument list of seven arguments were passed;
additionally, validation of URL arguments will now occur if the constructor
is called in this way, which was being skipped previously.

Fixes: #7130
Change-Id: I8c8491d8aa7774afaf67c22b4f8e9859f780f2d9
doc/build/changelog/unreleased_14/7130.rst [new file with mode: 0644]
lib/sqlalchemy/engine/url.py
test/engine/test_parseconnect.py