mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 11:24:19 +00:00
3b50993b21
Was breaking due to `|` operator used in annotations instead of `Union`
20 lines
343 B
Python
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
|