]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
doc updates, localize test fixtures
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 7 Sep 2025 00:20:00 +0000 (20:20 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 7 Sep 2025 04:37:14 +0000 (00:37 -0400)
commitcf3880fc8544dd1f4ae457d302c67e908f96308c
tree6e9ef6b83d0d0f605e98523a91a141ef05b8c203
parent55ac11cfda2d3f930188503648c9cad0fe46c09f
doc updates, localize test fixtures

testing with types is inherently awkward and subject
to changes in python interpreters (such as all the recent python 3.14
stuff we had them fix), but in this suite we already have a lot of
types that are defined inline inside of test methods.   so since that's
how many of the tests work anyway, organize the big series of pep-695
and pep-593 structures into fixtures or individual tests to make
the whole suite easier to follow.   pyright complains quite a lot
about this, so if this becomes a bigger issue for say mypy /pep484
target, we may have to revisit (which I'd likely do with more ignores)
or if function/method-local type declarations with global becomes a runtime
issue in py3.15 or something, we can revisit then where we would in
theory need to convert the entire suite, which I'd do with a more
consistent naming style for everything.

but for now try to go with fixtures / local type declarations so that
we dont have to wonder where all these types are used.

For 2.0 this further repairs some merge mismatches between 2.1 and
2.0, with tests lining up more closely to where they were placed in
2.1.

Change-Id: Ibe8f447eaa10f5e927b1122c8b608f11a5f5bc97
(cherry picked from commit 8f7138326cf48a1394417aa492ad083b3400c529)
doc/build/changelog/unreleased_20/12829.rst
doc/build/orm/declarative_tables.rst
test/orm/declarative/test_tm_future_annotations_sync.py
test/orm/declarative/test_typed_mapping.py