Fix formatting with black

This commit is contained in:
GotthardG
2024-12-16 10:41:56 +01:00
parent 57763970f9
commit a0be71bdfe
26 changed files with 1657 additions and 645 deletions

View File

@ -8,10 +8,12 @@ class loginToken(BaseModel):
access_token: str
token_type: str
class loginData(BaseModel):
username: str
pgroups: List[int]
class DewarTypeBase(BaseModel):
dewar_type: str
@ -76,9 +78,11 @@ class DataCollectionParameters(BaseModel):
class Config:
from_attributes = True
class SampleEventCreate(BaseModel):
event_type: str
class Results(BaseModel):
# Define attributes for Results here
pass
@ -150,6 +154,7 @@ class SampleCreate(BaseModel):
class Config:
populate_by_name = True
class PuckEvent(BaseModel):
id: int
puck_id: int
@ -160,6 +165,7 @@ class PuckEvent(BaseModel):
class Config:
from_attributes = True
class PuckBase(BaseModel):
puck_name: str
puck_type: str
@ -299,6 +305,7 @@ class LogisticsEventCreate(BaseModel):
location_qr_code: str
transaction_type: str
class SlotSchema(BaseModel):
id: int
qr_code: str
@ -319,9 +326,10 @@ class SlotSchema(BaseModel):
class Config:
from_attributes = True
class SetTellPosition(BaseModel):
tell_position: str = Field(
...,
pattern="^[A-F][1-5]$|^null$|^None$", # Use 'pattern' instead of 'regex'
description="Valid values are A1-A5, B1-B5, ..., F1-F5, or null."
description="Valid values are A1-A5, B1-B5, ..., F1-F5, or null.",
)