Skip to content

Commit

Permalink
Reformat and lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Nov 25, 2024
1 parent 2cf3059 commit 4c6bb09
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 3 additions & 1 deletion genshin/client/components/chronicle/genshin.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ async def set_top_genshin_characters(
),
)

async def get_genshin_event_calendar(self, uid: int, *, lang: typing.Optional[str] = None) -> models.GenshinEventCalendar:
async def get_genshin_event_calendar(
self, uid: int, *, lang: typing.Optional[str] = None
) -> models.GenshinEventCalendar:
"""Get Genshin event calendar."""
data = await self._request_genshin_record("act_calendar", uid, lang=lang, method="POST")
return models.GenshinEventCalendar(**data)
Expand Down
2 changes: 1 addition & 1 deletion genshin/models/genshin/chronicle/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""Battle chronicle models."""

from .abyss import *
from .act_calendar import *
from .activities import *
from .characters import *
from .img_theater import *
from .notes import *
from .stats import *
from .tcg import *
from .act_calendar import *
11 changes: 6 additions & 5 deletions genshin/models/genshin/chronicle/act_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@

import datetime
import typing

from genshin.models.model import Aliased, APIModel

__all__ = (
"AbyssDetail",
"Banner",
"BannerCharacter",
"BannerWeapon",
"DateTime",
"Banner",
"EventReward",
"EventExplorationDetail",
"DoubleRewardDetail",
"AbyssDetail",
"TheaterDetail",
"Event",
"EventExplorationDetail",
"EventReward",
"GenshinEventCalendar",
"TheaterDetail",
)


Expand Down

0 comments on commit 4c6bb09

Please sign in to comment.