Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Aug 23, 2024
1 parent 4df0e15 commit b75d785
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Migrate(NamedTuple):
migrations: list[Migrate] = [Migrate(1, "select 1")]


async def run_migration():
async def run_migration() -> None:
v = await pg.fetchval("select value from patch_db_migration where key=$1", "version")
if v is None:
await pg.execute(
Expand Down
2 changes: 2 additions & 0 deletions server/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class PatchBase:
class Patch(PatchBase):
subject_id: int
subject_type: int

name: str | None
original_name: str
infobox: str | None
Expand All @@ -40,6 +41,7 @@ class Patch(PatchBase):
@dataclass(frozen=True, kw_only=True, slots=True)
class EpisodePatch(PatchBase):
episode_id: int

original_name: str
name: str | None
original_name_cn: str
Expand Down

0 comments on commit b75d785

Please sign in to comment.