Skip to content

Commit 0a1fd2b

Browse files
committed
Fix CI
1 parent dc0c2db commit 0a1fd2b

5 files changed

Lines changed: 9 additions & 5 deletions

File tree

etc/scripts/check_python_versions_supported.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ def main(min_version: str, max_version: str) -> None:
1414
response = requests.get("https://endoflife.date/api/python.json")
1515
response.raise_for_status()
1616
eol_data = response.json()
17-
eol_versions = {entry["cycle"]: {"eol": entry["eol"], "releaseDate": entry["releaseDate"]} for entry in eol_data}
17+
eol_versions = {
18+
entry["cycle"]: {"eol": entry["eol"], "releaseDate": entry["releaseDate"]} for entry in eol_data
19+
}
1820

1921
# Get current date to compare with EoL and release dates
2022
current_date = datetime.now().date()

sdk/basyx/aas/examples/data/example_aas_mandatory_attributes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88
Module for the creation of an :class:`IdentifiableStore <basyx.aas.model.provider.DictIdentifiableStore>` with an
99
example :class:`~basyx.aas.model.aas.AssetAdministrationShell`, example
10-
:class:`Submodels <basyx.aas.model.submodel.Submodel>`and an example
10+
:class:`Submodels <basyx.aas.model.submodel.Submodel>` and an example
1111
:class:`~basyx.aas.model.concept.ConceptDescription`. All objects only contain mandatory attributes.
1212
1313
To get this object store use the function

sdk/docs/source/model/provider.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ provider - Providers for storing and retrieving AAS-objects
55

66
.. autoclass:: _KEY
77
.. autoclass:: _VALUE
8-
.. autoclass:: _IT
8+
.. autoclass:: _IDENTIFIABLE

server/app/interfaces/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,8 @@ def _get_all_obj_of_type(self, type_: Type[model.provider._IDENTIFIABLE]) -> Ite
269269
if isinstance(obj, type_):
270270
yield obj
271271

272-
def _get_obj_ts(self, identifier: model.Identifier, type_: Type[model.provider._IDENTIFIABLE]) -> model.provider._IDENTIFIABLE:
272+
def _get_obj_ts(self, identifier: model.Identifier, type_: Type[model.provider._IDENTIFIABLE]) \
273+
-> model.provider._IDENTIFIABLE:
273274
identifiable = self.object_store.get(identifier)
274275
if not isinstance(identifiable, type_):
275276
raise NotFound(f"No {type_.__name__} with {identifier} found!")

server/app/interfaces/repository.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ def __call__(self, environ, start_response) -> Iterable[bytes]:
167167
response: Response = self.handle_request(Request(environ))
168168
return response(environ, start_response)
169169

170-
def _get_obj_ts(self, identifier: model.Identifier, type_: Type[model.provider._IDENTIFIABLE]) -> model.provider._IDENTIFIABLE:
170+
def _get_obj_ts(self, identifier: model.Identifier, type_: Type[model.provider._IDENTIFIABLE]) \
171+
-> model.provider._IDENTIFIABLE:
171172
identifiable = self.object_store.get(identifier)
172173
if not isinstance(identifiable, type_):
173174
raise NotFound(f"No {type_.__name__} with {identifier} found!")

0 commit comments

Comments
 (0)