]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
run pyupgrade
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 25 Nov 2022 17:29:40 +0000 (12:29 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 26 Nov 2022 14:18:00 +0000 (09:18 -0500)
commit3b09a89d95f765399324dd53b4cb8504b0a7903b
treedc0837c10c7f0374c14ae4f267598f0060dfaddd
parentfc451e60731ad5b8d73255f0a1996e1d4e0f20de
run pyupgrade

command is:

find alembic -name "*.py" | xargs pyupgrade --py37-plus --keep-runtime-typing --keep-percent-format

I'm having some weird fighting with the tools/write_pyi, where
in different runtime contexts it keeps losing "MigrationContext"
and also Callable drops the args, but it's not consisistent.
For whatever reason, under py311 things *do* work every time.
im working w/ clean tox environments so not really sure what the
change is.  anyway, let's at least fix the quoting up
around the types.

This is towards getting the "*" in the op signatures for #1130.

Change-Id: I9175905d3b4325e03a97d6752356b70be20e9fad
41 files changed:
alembic/autogenerate/api.py
alembic/autogenerate/compare.py
alembic/autogenerate/render.py
alembic/autogenerate/rewriter.py
alembic/command.py
alembic/config.py
alembic/ddl/base.py
alembic/ddl/impl.py
alembic/ddl/mssql.py
alembic/ddl/mysql.py
alembic/ddl/oracle.py
alembic/ddl/postgresql.py
alembic/ddl/sqlite.py
alembic/operations/base.py
alembic/operations/batch.py
alembic/operations/ops.py
alembic/operations/schemaobj.py
alembic/runtime/environment.py
alembic/runtime/migration.py
alembic/script/base.py
alembic/script/revision.py
alembic/testing/env.py
alembic/testing/fixtures.py
alembic/testing/suite/_autogen_fixtures.py
alembic/testing/warnings.py
alembic/util/langhelpers.py
alembic/util/messaging.py
alembic/util/sqla_compat.py
tests/test_autogen_composition.py
tests/test_autogen_diffs.py
tests/test_autogen_indexes.py
tests/test_autogen_render.py
tests/test_batch.py
tests/test_command.py
tests/test_config.py
tests/test_environment.py
tests/test_external_dialect.py
tests/test_postgresql.py
tests/test_script_consumption.py
tests/test_script_production.py
tests/test_version_traversal.py