]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Add Operations and BatchOperations stub methods
authorCaselIT <cfederico87@gmail.com>
Thu, 16 Mar 2023 23:50:53 +0000 (00:50 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Thu, 4 May 2023 20:53:09 +0000 (22:53 +0200)
commit2aba0ada168d0047d54c7a08b0ffdde3102b716b
tree6334971e00debf16b208de8b12d882a79b75d902
parente17e59ee2be160fff35b38b08d68766a971b3069
Add Operations and BatchOperations stub methods

Updated stub generator script to also add stubs method definitions
for the :class:`.Operations` class and the :class:`.BatchOperations`
class obtained from :meth:`.Operations.batch_alter_table`.

Repaired the return signatures for :class:`.Operations` that mostly
return ``None``, and were erroneously referring to ``Optional[Table]``
in many cases.

Fixes: #1093
Change-Id: I98d38dd5a1e719b4dbbc1003746ec28f26c27808
alembic/context.pyi
alembic/ddl/postgresql.py
alembic/op.pyi
alembic/operations/__init__.py
alembic/operations/base.py
alembic/operations/ops.py
alembic/util/compat.py
docs/build/ops.rst
docs/build/unreleased/1093.rst [new file with mode: 0644]
tests/test_stubs.py
tools/write_pyi.py