Remove regex warning

This commit is contained in:
phil 2024-10-26 18:03:26 +02:00
parent 4f9fdbe34a
commit d26464130c

View file

@ -50,7 +50,7 @@ api_app = FastAPI(
default_response_class=responses.ORJSONResponse,
)
re_findmimetype = re.compile('^data:(\S+);') # type: ignore
re_findmimetype = re.compile(r'^data:(\S+);') # type: ignore
attachment_types: dict[str, type[Tree] | type[Trail] | type[POI]] = {
'tree': Tree,