linting
Some checks failed
Run linting on the backend code / Build (pull_request) Has been cancelled
Run testing on the backend code / Build (pull_request) Has been cancelled
Build and deploy the backend to staging / Deploy to staging (pull_request) Has been cancelled
Build and deploy the backend to staging / Build and push image (pull_request) Has been cancelled

This commit is contained in:
2025-02-19 16:04:18 +01:00
parent 05092e55f1
commit 73f0dc8361
12 changed files with 52 additions and 38 deletions

View File

@@ -1,7 +1,7 @@
"""Definition of the Landmark class to handle visitable objects across the world."""
from typing import Optional, Literal, List
from typing import Optional, Literal
from uuid import uuid4, UUID
from pydantic import BaseModel, ConfigDict, Field
from pydantic import BaseModel, Field
# Output to frontend
@@ -70,11 +70,6 @@ class Landmark(BaseModel) :
is_place_of_worship : Optional[bool] = False
class Config:
json_encoders = {
UUID: lambda v: str(v) # Ensure UUID is serialized as a string
}
def __str__(self) -> str:
"""
String representation of the Landmark object.