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

@@ -40,9 +40,7 @@ def upgrade() -> None:
),
sa.PrimaryKeyConstraint("user_id", "team_id"),
)
op.alter_column(
"team_members", "user_id", existing_type=mysql.BIGINT(), nullable=False
)
op.alter_column("team_members", "user_id", existing_type=mysql.BIGINT(), nullable=False)
op.drop_index(op.f("ix_team_members_id"), table_name="team_members")
op.drop_column("team_members", "id")
op.add_column(
@@ -79,8 +77,6 @@ def downgrade() -> None:
sa.Column("id", mysql.INTEGER(), autoincrement=True, nullable=False),
)
op.create_index(op.f("ix_team_members_id"), "team_members", ["id"], unique=False)
op.alter_column(
"team_members", "user_id", existing_type=mysql.BIGINT(), nullable=True
)
op.alter_column("team_members", "user_id", existing_type=mysql.BIGINT(), nullable=True)
op.drop_table("team_requests")
# ### end Alembic commands ###