mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-23 00:52:22 +00:00
13 lines
213 B
Python
13 lines
213 B
Python
|
from pydantic import BaseModel, RootModel
|
||
|
|
||
|
|
||
|
class RouteModel(BaseModel):
|
||
|
name: str
|
||
|
route: str
|
||
|
plane: str
|
||
|
floor: str
|
||
|
position: tuple[float, float]
|
||
|
|
||
|
|
||
|
RouteListModel = RootModel[list[RouteModel]]
|