Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
removed a cast for strict typing
Browse files Browse the repository at this point in the history
  • Loading branch information
ggoneiESS committed Sep 12, 2023
1 parent fa5dd8e commit 81ddeb8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nexus_constructor/json/load_from_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,7 @@ def _add_transform_and_shape_to_component(self, component, children_dict):
)
transformation_reader.add_transformations_to_component()
self.warnings += transformation_reader.warnings
depends_on: str = cast(
str, _find_depends_on_path(children_dict, component.name)
)
depends_on = _find_depends_on_path(children_dict, component.name)
if depends_on not in [".", "", None]:
if depends_on[0] != "/":
# we are always in the NXtransformations group but the path could be anything
Expand Down

0 comments on commit 81ddeb8

Please sign in to comment.