Skip to content

Commit e51cdc2

Browse files
committed
test
1 parent 2b0a983 commit e51cdc2

19 files changed

Lines changed: 27 additions & 44 deletions

src/opengeodeweb_back/routes/create/blueprint_create.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
# Local application imports
1111
from opengeodeweb_back import geode_functions, utils_functions
12-
from .schemas.create_aoi import CreateAoi
13-
from .schemas.create_point import CreatePoint
12+
from opengeodeweb_back.routes.create.schemas.create_aoi import CreateAoi
13+
from opengeodeweb_back.routes.create.schemas.create_point import CreatePoint
1414

1515
routes = flask.Blueprint("create", __name__, url_prefix="/create")
1616
schemas = os.path.join(os.path.dirname(__file__), "schemas")

src/opengeodeweb_back/routes/create/schemas/create_aoi.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# type: ignore
21
from typing import Any, Optional, List, TypeVar, Callable, Type, cast
32

43

src/opengeodeweb_back/routes/create/schemas/create_point.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(self, name: str, x: float, y: float, z: float) -> None:
3838
self.z = z
3939

4040
@staticmethod
41-
def from_dict(obj: Any) -> "CreatePoint":
41+
def from_dict(obj: Any) -> 'CreatePoint':
4242
assert isinstance(obj, dict)
4343
name = from_str(obj.get("name"))
4444
x = from_float(obj.get("x"))

src/opengeodeweb_back/routes/models/schemas/mesh_components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, id: str) -> None:
2222
self.id = id
2323

2424
@staticmethod
25-
def from_dict(obj: Any) -> "MeshComponents":
25+
def from_dict(obj: Any) -> 'MeshComponents':
2626
assert isinstance(obj, dict)
2727
id = from_str(obj.get("id"))
2828
return MeshComponents(id)

src/opengeodeweb_back/routes/models/schemas/vtm_component_indices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, id: str) -> None:
2222
self.id = id
2323

2424
@staticmethod
25-
def from_dict(obj: Any) -> "VtmComponentIndices":
25+
def from_dict(obj: Any) -> 'VtmComponentIndices':
2626
assert isinstance(obj, dict)
2727
id = from_str(obj.get("id"))
2828
return VtmComponentIndices(id)

src/opengeodeweb_back/routes/schemas/allowed_files.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,14 @@ def __init__(self, supported_feature: Optional[str]) -> None:
3636
self.supported_feature = supported_feature
3737

3838
@staticmethod
39-
def from_dict(obj: Any) -> "AllowedFiles":
39+
def from_dict(obj: Any) -> 'AllowedFiles':
4040
assert isinstance(obj, dict)
41-
supported_feature = from_union(
42-
[from_none, from_str], obj.get("supported_feature")
43-
)
41+
supported_feature = from_union([from_none, from_str], obj.get("supported_feature"))
4442
return AllowedFiles(supported_feature)
4543

4644
def to_dict(self) -> dict:
4745
result: dict = {}
48-
result["supported_feature"] = from_union(
49-
[from_none, from_str], self.supported_feature
50-
)
46+
result["supported_feature"] = from_union([from_none, from_str], self.supported_feature)
5147
return result
5248

5349

src/opengeodeweb_back/routes/schemas/allowed_objects.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,16 @@ def __init__(self, filename: str, supported_feature: Optional[str]) -> None:
3838
self.supported_feature = supported_feature
3939

4040
@staticmethod
41-
def from_dict(obj: Any) -> "AllowedObjects":
41+
def from_dict(obj: Any) -> 'AllowedObjects':
4242
assert isinstance(obj, dict)
4343
filename = from_str(obj.get("filename"))
44-
supported_feature = from_union(
45-
[from_none, from_str], obj.get("supported_feature")
46-
)
44+
supported_feature = from_union([from_none, from_str], obj.get("supported_feature"))
4745
return AllowedObjects(filename, supported_feature)
4846

4947
def to_dict(self) -> dict:
5048
result: dict = {}
5149
result["filename"] = from_str(self.filename)
52-
result["supported_feature"] = from_union(
53-
[from_none, from_str], self.supported_feature
54-
)
50+
result["supported_feature"] = from_union([from_none, from_str], self.supported_feature)
5551
return result
5652

5753

src/opengeodeweb_back/routes/schemas/geode_objects_and_output_extensions.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, filename: str, input_geode_object: str) -> None:
2424
self.input_geode_object = input_geode_object
2525

2626
@staticmethod
27-
def from_dict(obj: Any) -> "GeodeObjectsAndOutputExtensions":
27+
def from_dict(obj: Any) -> 'GeodeObjectsAndOutputExtensions':
2828
assert isinstance(obj, dict)
2929
filename = from_str(obj.get("filename"))
3030
input_geode_object = from_str(obj.get("input_geode_object"))
@@ -37,13 +37,9 @@ def to_dict(self) -> dict:
3737
return result
3838

3939

40-
def geode_objects_and_output_extensions_from_dict(
41-
s: Any,
42-
) -> GeodeObjectsAndOutputExtensions:
40+
def geode_objects_and_output_extensions_from_dict(s: Any) -> GeodeObjectsAndOutputExtensions:
4341
return GeodeObjectsAndOutputExtensions.from_dict(s)
4442

4543

46-
def geode_objects_and_output_extensions_to_dict(
47-
x: GeodeObjectsAndOutputExtensions,
48-
) -> Any:
44+
def geode_objects_and_output_extensions_to_dict(x: GeodeObjectsAndOutputExtensions) -> Any:
4945
return to_class(GeodeObjectsAndOutputExtensions, x)

src/opengeodeweb_back/routes/schemas/geographic_coordinate_systems.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, input_geode_object: str) -> None:
2222
self.input_geode_object = input_geode_object
2323

2424
@staticmethod
25-
def from_dict(obj: Any) -> "GeographicCoordinateSystems":
25+
def from_dict(obj: Any) -> 'GeographicCoordinateSystems':
2626
assert isinstance(obj, dict)
2727
input_geode_object = from_str(obj.get("input_geode_object"))
2828
return GeographicCoordinateSystems(input_geode_object)

src/opengeodeweb_back/routes/schemas/inspect_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, filename: str, input_geode_object: str) -> None:
2424
self.input_geode_object = input_geode_object
2525

2626
@staticmethod
27-
def from_dict(obj: Any) -> "InspectFile":
27+
def from_dict(obj: Any) -> 'InspectFile':
2828
assert isinstance(obj, dict)
2929
filename = from_str(obj.get("filename"))
3030
input_geode_object = from_str(obj.get("input_geode_object"))

0 commit comments

Comments
 (0)