|
3 | 3 | import datetime |
4 | 4 | import logging |
5 | 5 | from contextlib import asynccontextmanager |
6 | | -from typing import Optional, TypeVar |
| 6 | +from typing import Annotated, Optional, TypeVar |
7 | 7 |
|
8 | 8 | import uvicorn |
9 | 9 | from fastapi import Depends, FastAPI, Path, Query, Response |
10 | 10 | from starlette import status |
11 | | -from typing import Annotated |
12 | 11 |
|
13 | 12 | import tibiapy |
14 | | -from tibiapy.enums import (AuctionBattlEyeFilter, AuctionOrderBy, AuctionOrderDirection, AuctionSearchType, |
15 | | - AuctionSkillFilter, AuctionVocationFilter, HighscoresBattlEyeType, HighscoresCategory, |
16 | | - HighscoresProfession, HouseOrder, HouseStatus, HouseType, NewsCategory, NewsType, |
17 | | - PvpTypeFilter, |
18 | | - SpellGroup, SpellSorting, SpellType, SpellVocationFilter) |
19 | | -from tibiapy.models import (Auction, AuctionFilters, BoostableBosses, BossEntry, Character, CharacterBazaar, Creature, |
20 | | - CreatureEntry, CreaturesSection, EventSchedule, FansitesSection, ForumBoard, ForumSection, |
21 | | - ForumThread, |
22 | | - Guild, GuildWars, |
23 | | - GuildsSection, Highscores, House, HousesSection, KillStatistics, Leaderboard, News, |
24 | | - NewsArchive, Spell, |
25 | | - SpellsSection, TibiaResponse, World, WorldOverview) |
| 13 | +from tibiapy.enums import ( |
| 14 | + AuctionBattlEyeFilter, |
| 15 | + AuctionOrderBy, |
| 16 | + AuctionOrderDirection, |
| 17 | + AuctionSearchType, |
| 18 | + AuctionSkillFilter, |
| 19 | + AuctionVocationFilter, |
| 20 | + HighscoresBattlEyeType, |
| 21 | + HighscoresCategory, |
| 22 | + HighscoresProfession, |
| 23 | + HouseOrder, |
| 24 | + HouseStatus, |
| 25 | + HouseType, |
| 26 | + NewsCategory, |
| 27 | + NewsType, |
| 28 | + PvpTypeFilter, |
| 29 | + SpellGroup, |
| 30 | + SpellSorting, |
| 31 | + SpellType, |
| 32 | + SpellVocationFilter, |
| 33 | +) |
| 34 | +from tibiapy.models import ( |
| 35 | + Auction, |
| 36 | + AuctionFilters, |
| 37 | + BoostableBosses, |
| 38 | + BossEntry, |
| 39 | + Character, |
| 40 | + CharacterBazaar, |
| 41 | + Creature, |
| 42 | + CreatureEntry, |
| 43 | + CreaturesSection, |
| 44 | + EventSchedule, |
| 45 | + FansitesSection, |
| 46 | + ForumBoard, |
| 47 | + ForumSection, |
| 48 | + ForumThread, |
| 49 | + Guild, |
| 50 | + GuildsSection, |
| 51 | + GuildWars, |
| 52 | + Highscores, |
| 53 | + House, |
| 54 | + HousesSection, |
| 55 | + KillStatistics, |
| 56 | + Leaderboard, |
| 57 | + News, |
| 58 | + NewsArchive, |
| 59 | + Spell, |
| 60 | + SpellsSection, |
| 61 | + TibiaResponse, |
| 62 | + World, |
| 63 | + WorldOverview, |
| 64 | +) |
26 | 65 |
|
27 | 66 | logging_formatter = logging.Formatter("[%(asctime)s][%(levelname)s] %(message)s") |
28 | 67 | console_handler = logging.StreamHandler() |
|
0 commit comments