Files
IfcOpenShell/src/opencdeserver/api/app/models/other.py
T
Andrej 3b50993b21 ifc2ca, bcf, opencdeserver - add Python 3.9 support
Was breaking due to `|` operator used in annotations instead of `Union`
2025-05-28 18:24:11 +05:00

20 lines
343 B
Python

from __future__ import annotations
from pydantic import BaseModel
from typing import List
class Token(BaseModel):
access_token: str
token_type: str
class TokenData(BaseModel):
username: str | None = None
scopes: List[str] = []
expires: str | None = None
class LoginReq(BaseModel):
username: str
password: str