refactor(project): make pyright & ruff happy

This commit is contained in:
MingxuanGame
2025-08-22 08:21:52 +00:00
parent 3b1d7a2234
commit 598fcc8b38
157 changed files with 2382 additions and 4590 deletions

View File

@@ -36,22 +36,16 @@ def upgrade() -> None:
),
sa.PrimaryKeyConstraint("client_id"),
)
op.create_index(
op.f("ix_oauth_clients_client_id"), "oauth_clients", ["client_id"], unique=False
)
op.create_index(op.f("ix_oauth_clients_client_id"), "oauth_clients", ["client_id"], unique=False)
op.create_index(
op.f("ix_oauth_clients_client_secret"),
"oauth_clients",
["client_secret"],
unique=False,
)
op.create_index(
op.f("ix_oauth_clients_owner_id"), "oauth_clients", ["owner_id"], unique=False
)
op.create_index(op.f("ix_oauth_clients_owner_id"), "oauth_clients", ["owner_id"], unique=False)
op.add_column("oauth_tokens", sa.Column("client_id", sa.Integer(), nullable=False))
op.create_index(
op.f("ix_oauth_tokens_client_id"), "oauth_tokens", ["client_id"], unique=False
)
op.create_index(op.f("ix_oauth_tokens_client_id"), "oauth_tokens", ["client_id"], unique=False)
# ### end Alembic commands ###