Skip to content

Commit

Permalink
scalars can be str.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondet committed Nov 3, 2023
1 parent c0eb837 commit e53fc41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lgdo/types/scalar.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Scalar(LGDO):

# TODO: do scalars need proper numpy dtypes?

def __init__(self, value: int | float, attrs: dict[str, Any] = None) -> None:
def __init__(self, value: int | float | str, attrs: dict[str, Any] = None) -> None:
"""
Parameters
----------
Expand Down

0 comments on commit e53fc41

Please sign in to comment.