]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
docs: fix type annotation in Self-Referential Many-to-Many Relationsh…
authorFrançois Voron <fvoron@gmail.com>
Thu, 23 Nov 2023 15:53:07 +0000 (10:53 -0500)
committerFederico Caselli <cfederico87@gmail.com>
Thu, 23 Nov 2023 18:50:55 +0000 (19:50 +0100)
commita61338679c5cf95bef476b826e867b54fbf1f322
tree1cfd9e2567eda85e2456e47c2a33a1c287dfc3c4
parent67e478e213c05c35c7ea8b31ab88a0d9490d44f1
docs: fix type annotation in Self-Referential Many-to-Many Relationsh…

A type annotation was wrong in the [Self-Referential Many-to-Many Relationship](https://docs.sqlalchemy.org/en/20/orm/join_conditions.html#self-referential-many-to-many-relationship) code example.

<!-- Provide a general summary of your proposed changes in the Title field above -->

### Description

The type annotation was `right_nodes: Mapped[List["None"]]`. I changed it to `Node` since we refer to the ORM class we're looking at.

### Checklist
<!-- go over following points. check them with an `x` if they do apply, (they turn into clickable checkboxes once the PR is submitted, so no need to do everything at once)

-->

This pull request is:

- [x] A documentation / typographical / small typing error fix
- Good to go, no issue or tests are needed
- [ ] A short code fix
- please include the issue number, and create an issue if none exists, which
  must include a complete example of the issue.  one line code fixes without an
  issue and demonstration will not be accepted.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.   one line code fixes without tests will not be accepted.
- [ ] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
  include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.

**Have a nice day!**

Closes: #10686
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/10686
Pull-request-sha: 7671898116f1b8850e5d8f3ff0f940450a7c1bf4

Change-Id: Iab1535c3d00747eb8c9e9a17aea50606febedbf9
(cherry picked from commit 7157d16e3ba521c119958a727af51790ebdf3f34)
doc/build/orm/join_conditions.rst