]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
repair type qualify in _ServerDefaultType; other pyright tweaks
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 16 Oct 2022 22:30:44 +0000 (18:30 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 16 Oct 2022 22:34:25 +0000 (18:34 -0400)
commitf2056ca03f187abd0840093bb5409a449d0e18f6
treea092987f01ec49ea69d47be75b5b3edb609c763a
parent7fd8898b10669c8e6b08c5d66c92bdc975aaa353
repair type qualify in _ServerDefaultType; other pyright tweaks

as we haven't done full pylance / pyright strict typing internally,
some of the things pyright reports on specifically will leak
out into user code, such as this mapped_column() issue.
So we will have to look more closely at pyright strict
mode going forward for the release.

Fixed typing issue where pylance strict mode would report "partially
unknown" datatype for the :func:`_orm.mapped_column` construct.

Also repaired a trailing comma and pyright complaining about overloads
for orm.composite.

Fixes: #8644
Change-Id: Ia48dc5dbd56bbceeacee4f0daf9810bfdea3bee3
doc/build/changelog/unreleased_20/8644.rst [new file with mode: 0644]
lib/sqlalchemy/orm/_orm_constructors.py
lib/sqlalchemy/orm/base.py
lib/sqlalchemy/sql/schema.py