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

@@ -24,15 +24,9 @@ depends_on: str | Sequence[str] | None = None
def upgrade() -> None:
"""Upgrade schema."""
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column(
"chat_silence_users", "user_id", existing_type=mysql.BIGINT(), nullable=True
)
op.alter_column(
"chat_silence_users", "banned_at", existing_type=mysql.DATETIME(), nullable=True
)
op.create_index(
op.f("ix_chat_silence_users_id"), "chat_silence_users", ["id"], unique=False
)
op.alter_column("chat_silence_users", "user_id", existing_type=mysql.BIGINT(), nullable=True)
op.alter_column("chat_silence_users", "banned_at", existing_type=mysql.DATETIME(), nullable=True)
op.create_index(op.f("ix_chat_silence_users_id"), "chat_silence_users", ["id"], unique=False)
op.add_column("rooms", sa.Column("channel_id", sa.Integer(), nullable=True))
# ### end Alembic commands ###
@@ -48,7 +42,5 @@ def downgrade() -> None:
existing_type=mysql.DATETIME(),
nullable=False,
)
op.alter_column(
"chat_silence_users", "user_id", existing_type=mysql.BIGINT(), nullable=False
)
op.alter_column("chat_silence_users", "user_id", existing_type=mysql.BIGINT(), nullable=False)
# ### end Alembic commands ###