Skip to content

Commit

Permalink
fix typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ntessore committed Jan 2, 2024
1 parent 4da8064 commit 8c691f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions heracles/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ def __init_subclass__(cls, *, spin: int | None = None) -> None:
if spin is not None:
cls.__spin = spin
uses = cls.uses
if cls.uses is None:
if uses is None:
uses = ()
elif isinstance(cls.uses, str):
elif isinstance(uses, str):
uses = (uses,)
ncol = len(uses)
nopt = 0
Expand Down

0 comments on commit 8c691f8

Please sign in to comment.