]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
more many-to-one typing
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 19 Oct 2022 13:41:44 +0000 (09:41 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 19 Oct 2022 19:00:39 +0000 (15:00 -0400)
commit05d5f90d184494782d3ed6a24f6dd6b48bb31946
tree2f251efe24180b3400fcd84e080f9d6cc36bb436
parent3c5ac045fcc551674c38a813478977e736b2e8a9
more many-to-one typing

since we are typing centric, note this configuration
as we have just supported in #8668.

Note also I am just taking "backref" out of the basic
version of the docs here totally, this doc is already
a lot to read / take in without making it even more
confusing; backref still has an entirely dedicated
docs page which can have all the additional behaviors
of backref() described.

Additionally, get other "optional" forms to work including
``cls | None`` and ``Union[cls, None]``.

Fixes: #8668
Change-Id: I2b026f496a1710ddebfb4aa6cf8459b4892cbc54
doc/build/orm/basic_relationships.rst
lib/sqlalchemy/orm/_orm_constructors.py
lib/sqlalchemy/orm/relationships.py
lib/sqlalchemy/util/typing.py
test/orm/declarative/test_tm_future_annotations.py
test/orm/declarative/test_typed_mapping.py