Skip to content

Commit

Permalink
Fix typos in dict-like type hints (#516)
Browse files Browse the repository at this point in the history
I.e. dict[str, object] not dict[str:object].
  • Loading branch information
liamhuber authored Nov 30, 2024
1 parent 8dcb67a commit 913a03f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyiron_workflow/mixin/preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def preview_outputs(cls) -> dict[str, Any]:
return cls._build_outputs_preview()

@classmethod
def preview_io(cls) -> DotDict[str:dict]:
def preview_io(cls) -> DotDict[str, dict]:
return DotDict(
{"inputs": cls.preview_inputs(), "outputs": cls.preview_outputs()}
)
Expand Down
2 changes: 1 addition & 1 deletion pyiron_workflow/mixin/semantics.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def __init__(
super().__init__(*args, label=label, parent=parent, **kwargs)

@property
def children(self) -> bidict[str:Semantic]:
def children(self) -> bidict[str, Semantic]:
return self._children

@property
Expand Down

0 comments on commit 913a03f

Please sign in to comment.