Skip to content

Commit

Permalink
refactor: change parent_uuid, season_uuid types to UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
staciax committed Dec 29, 2024
1 parent bb00268 commit a785016
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions valorant/models/seasons.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

from datetime import datetime
from typing import TYPE_CHECKING
from uuid import UUID

from pydantic import Field

Expand All @@ -48,7 +49,7 @@ class Season(BaseUUIDModel):
type: str | None
start_time: datetime = Field(alias='startTime')
end_time: datetime = Field(alias='endTime')
parent_uuid: str | None = Field(alias='parentUuid')
parent_uuid: UUID | None = Field(alias='parentUuid')
asset_path: str = Field(alias='assetPath')

# useful methods
Expand All @@ -72,7 +73,7 @@ class Competitive(BaseUUIDModel):
# uuid: str
start_time: datetime = Field(alias='startTime')
end_time: datetime = Field(alias='endTime')
season_uuid: str = Field(alias='seasonUuid')
season_uuid: UUID = Field(alias='seasonUuid')
competitive_tiers_uuid: str = Field(alias='competitiveTiersUuid')
borders: list[Border] | None
asset_path: str = Field(alias='assetPath')
Expand Down

0 comments on commit a785016

Please sign in to comment.