diff --git a/main.py b/main.py index 65041fb..45bf3c0 100644 --- a/main.py +++ b/main.py @@ -2,7 +2,7 @@ from itertools import count from netrc import netrc import os import io -from typing import Union, Optional +from typing import * from fastapi import FastAPI, File, UploadFile from pydantic import BaseModel from starlette.responses import FileResponse, JSONResponse @@ -88,7 +88,7 @@ async def fastapi_add_junction(network: str, junction: str, x: float, y: float, return add_junction(network, junction, x, y, z) @app.get("/getjunctioncoord/") -async def fastapi_get_junction_coord(network: str, junction: str) : dict[str, float]: +async def fastapi_get_junction_coord(network: str, junction: str) -> dict[str, float]: return get_junction_coord(network, junction) @app.post("/addnode/")