Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
staciax committed Dec 29, 2024
1 parent f4b147a commit bb00268
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion valorant/models/buddies.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ def __repr__(self) -> str:
async def fetch_theme(self, *, client: Client) -> Theme | None:
if self.theme_uuid is None:
return None
return await client.fetch_theme(self.theme_uuid)
return await client.fetch_theme(str(self.theme_uuid))
6 changes: 3 additions & 3 deletions valorant/models/contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ async def fetch_relationship(self, *, client: Client) -> Agent | Event | Season
if self.relation_type is None or self.relation_uuid is None:
return None
if self.relation_type is RelationType.agent:
return await client.fetch_agent(self.relation_uuid)
return await client.fetch_agent(str(self.relation_uuid))
if self.relation_type is RelationType.event:
return await client.fetch_event(self.relation_uuid)
return await client.fetch_event(str(self.relation_uuid))
if self.relation_type is RelationType.season:
return await client.fetch_season(self.relation_uuid)
return await client.fetch_season(str(self.relation_uuid))
log.warning('Unknown relation type: %s, uuid: %s', self.relation_type, self.relation_uuid)
return None

Expand Down
2 changes: 1 addition & 1 deletion valorant/models/player_cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ class PlayerCard(BaseUUIDModel):
async def fetch_theme(self, *, client: Client) -> Theme | None:
if self.theme_uuid is None:
return None
return await client.fetch_theme(self.theme_uuid)
return await client.fetch_theme(str(self.theme_uuid))
2 changes: 1 addition & 1 deletion valorant/models/sprays.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ class Spray(BaseUUIDModel):
async def fetch_theme(self, *, client: Client) -> Theme | None:
if self.theme_uuid is None:
return None
return await client.fetch_theme(self.theme_uuid)
return await client.fetch_theme(str(self.theme_uuid))

0 comments on commit bb00268

Please sign in to comment.