Skip to content

Commit 97763eb

Browse files
BotellaAgithub-actions[bot]
authored andcommitted
Apply prepare changes
1 parent e51cdc2 commit 97763eb

17 files changed

Lines changed: 41 additions & 25 deletions

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: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,18 @@ 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([from_none, from_str], obj.get("supported_feature"))
41+
supported_feature = from_union(
42+
[from_none, from_str], obj.get("supported_feature")
43+
)
4244
return AllowedFiles(supported_feature)
4345

4446
def to_dict(self) -> dict:
4547
result: dict = {}
46-
result["supported_feature"] = from_union([from_none, from_str], self.supported_feature)
48+
result["supported_feature"] = from_union(
49+
[from_none, from_str], self.supported_feature
50+
)
4751
return result
4852

4953

src/opengeodeweb_back/routes/schemas/allowed_objects.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,20 @@ 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([from_none, from_str], obj.get("supported_feature"))
44+
supported_feature = from_union(
45+
[from_none, from_str], obj.get("supported_feature")
46+
)
4547
return AllowedObjects(filename, supported_feature)
4648

4749
def to_dict(self) -> dict:
4850
result: dict = {}
4951
result["filename"] = from_str(self.filename)
50-
result["supported_feature"] = from_union([from_none, from_str], self.supported_feature)
52+
result["supported_feature"] = from_union(
53+
[from_none, from_str], self.supported_feature
54+
)
5155
return result
5256

5357

src/opengeodeweb_back/routes/schemas/geode_objects_and_output_extensions.py

Lines changed: 7 additions & 3 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,9 +37,13 @@ def to_dict(self) -> dict:
3737
return result
3838

3939

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

4345

44-
def geode_objects_and_output_extensions_to_dict(x: GeodeObjectsAndOutputExtensions) -> Any:
46+
def geode_objects_and_output_extensions_to_dict(
47+
x: GeodeObjectsAndOutputExtensions,
48+
) -> Any:
4549
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"))

src/opengeodeweb_back/routes/schemas/kill.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ def to_class(c: Type[T], x: Any) -> dict:
1313
class Kill:
1414
pass
1515

16-
def __init__(self, ) -> None:
16+
def __init__(
17+
self,
18+
) -> None:
1719
pass
1820

1921
@staticmethod
20-
def from_dict(obj: Any) -> 'Kill':
22+
def from_dict(obj: Any) -> "Kill":
2123
assert isinstance(obj, dict)
2224
return Kill()
2325

src/opengeodeweb_back/routes/schemas/missing_files.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) -> 'MissingFiles':
27+
def from_dict(obj: Any) -> "MissingFiles":
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)