Skip to content

Commit

Permalink
API type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Jun 22, 2024
1 parent b329b36 commit bb8325d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/adapters/osu_api_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Beatmap(BaseModel):
checksum: str | None
failtimes: Failtimes
max_combo: int | None = None
bpm: int
bpm: float


class BeatmapExtended(Beatmap):
Expand Down Expand Up @@ -102,7 +102,7 @@ class RequiredMeta(BaseModel):

class NominationsSummary(BaseModel):
current: int
eligible_main_rulesets: list[Ruleset]
eligible_main_rulesets: list[Ruleset] | None = None
required_meta: RequiredMeta


Expand Down Expand Up @@ -145,7 +145,7 @@ class Beatmapset(BaseModel):
user_id: int
video: bool

bpm: int | None
bpm: float | None
can_be_hyped: bool
deleted_at: datetime | None
discussion_enabled: bool
Expand Down

0 comments on commit bb8325d

Please sign in to comment.