Skip to content

Commit

Permalink
sdk/basyx/object_store.py: Changed type hints to be compatible with e…
Browse files Browse the repository at this point in the history
…arlier python versions
  • Loading branch information
somsonson committed Sep 5, 2024
1 parent bcd346a commit fa46c38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/basyx/object_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def get_referable(self, identifier: str, id_short: str) -> Referable:
raise KeyError("Referable object with short_id {} does not exist for identifiable object with id {}"
.format(id_short, identifier))

def get_children_referable(self, id_short: str) -> list[Referable]:
referable_id_short: list[Referable] = []
def get_children_referable(self, id_short: str) -> List[Referable]:
referable_id_short: List[Referable] = []
for referable in self.descend():
if isinstance(referable, Referable) and id_short == referable.id_short:
referable_id_short.append(referable)
Expand Down

0 comments on commit fa46c38

Please sign in to comment.