]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Type annotations for sqlalchemy.orm.events
authorGleb Kisenkov <g.kisenkov@gmail.com>
Wed, 28 Dec 2022 19:23:23 +0000 (14:23 -0500)
committersqla-tester <sqla-tester@sqlalchemy.org>
Wed, 28 Dec 2022 19:23:23 +0000 (14:23 -0500)
commit2c9c85a5c995b233b3860111b15f19157bbc43f9
treef41b89232efc19a65c52d2f5db901a5a026cd02f
parent8e041e24182c8f4b7762ebbecd494f7dbf86b818
Type annotations for sqlalchemy.orm.events

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

### Description
An attempt to annotate `lib/sqlalchemy/orm/events.py` with type hints (issue #6810).

### 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:

- [ ] 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: #9025
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/9025
Pull-request-sha: a3fd2c0c3790164c433305ccc7ac6b73e813e037

Change-Id: I0808b6485504615fa20691dc8f4631d38bc89ab3
lib/sqlalchemy/orm/events.py