]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Type annotations for sqlalchemy.ext.automap
authorGleb Kisenkov <g.kisenkov@godeltech.com>
Mon, 5 Dec 2022 13:45:25 +0000 (08:45 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 5 Dec 2022 14:45:14 +0000 (09:45 -0500)
commit422d8d3bcbf2b60f053ab76c3fc29f33242ccf4b
tree6434360f7b6035033b9d881ac6cc4a7f14d75840
parent9058593e0b28cee0211251de6604e4601ff69a00
Type annotations for sqlalchemy.ext.automap

An attempt to annotate `lib/sqlalchemy/ext/automap.py` with type hints (issue [#6810](https://github.com/sqlalchemy/sqlalchemy/issues/6810#issuecomment-1127062951)).

More info on how I approach it could be found in [the earlier PR](https://github.com/sqlalchemy/sqlalchemy/pull/8775).

This pull request is:

- [ ] A documentation / typographical 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.
- [x] 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: #8874
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/8874
Pull-request-sha: 834d58d77c2cfd09ea874f01eb7b75a2ea0db7cd

Change-Id: Ie64b2be7a51ddc83ef8f23385fb63db5b5c1bc17
lib/sqlalchemy/ext/automap.py
lib/sqlalchemy/orm/_orm_constructors.py
lib/sqlalchemy/orm/relationships.py