]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
add overload stubs for proxied classes
authorVincent Fazio <vfazio@gmail.com>
Tue, 3 Jan 2023 17:39:13 +0000 (12:39 -0500)
committersqla-tester <sqla-tester@sqlalchemy.org>
Tue, 3 Jan 2023 17:39:13 +0000 (12:39 -0500)
commit40df5ecb410660fdf96a750d626d4f2f5b2d98ea
tree3d35c5b8f558da6885de148c2a4e19dd6cfe173d
parent7cda8187d63c0c64c0a08b8763c2d41c0f970032
add overload stubs for proxied classes

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

### Description
Closes #1146
Closes #1147

<!-- Describe your changes in detail -->

Overloaded functions would not have type stubs generated by the stub generator for proxied classes. Now they will.

### 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
- [x] 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.

Closes: #1148
Pull-request: https://github.com/sqlalchemy/alembic/pull/1148
Pull-request-sha: ed3c28cc78e57314b7a4e533d77108efc6751949

Change-Id: I7c0ee9d333015174ee6ab754909748f745af2ff9
alembic/context.pyi
alembic/runtime/environment.py
alembic/util/compat.py
docs/build/unreleased/1147.rst [new file with mode: 0644]
tests/requirements.py
tools/write_pyi.py