Skip to content

Commit

Permalink
fixed error in Optional syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
smiet committed Sep 13, 2023
1 parent 8801119 commit 9904899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simsopt/mhd/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def __init__(self,
if si.lfreebound:
self.normal_field = NormalField.from_spec(filename)
else:
self.normal_field = Optional[NormalField] = None
self.normal_field : Optional[NormalField] = None

# By default, all dofs owned by SPEC directly, as opposed to
# dofs owned by the boundary surface object, are fixed.
Expand Down

0 comments on commit 9904899

Please sign in to comment.