Skip to content

Commit

Permalink
mypy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
depocoder committed Sep 25, 2024
1 parent bd0800e commit d4bf9a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/app/controllers/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Location(BaseModel):
id: uuid.UUID = Field(alias="eventId")
custom_location: str = Field(alias="customLocation")

@computed_field
@computed_field # type: ignore
@property
def is_lxp(self) -> float:
return self.custom_location == 'LXP'
Expand All @@ -50,7 +50,7 @@ class Event(BaseModel):
class Link(BaseModel):
href: str

@computed_field
@computed_field # type: ignore
@property
def id(self) -> uuid.UUID:
return uuid.UUID(self.href.replace('/', ''))
Expand Down Expand Up @@ -96,6 +96,6 @@ def parse_modeus_response(self) -> list[FullEvent]:
location = locations[event.id]
full_events.append(FullEvent(**{
"teacher_full_name": teacher_full_name,
**event.model_dump(by_alias=True), **location.model_dump(by_alias=True)
**event.model_dump(by_alias=True), **location.model_dump(by_alias=True),
}))
return full_events

0 comments on commit d4bf9a8

Please sign in to comment.