Skip to content

Commit

Permalink
allow return type of str
Browse files Browse the repository at this point in the history
  • Loading branch information
drkane committed Sep 27, 2023
1 parent 8976097 commit 69eb7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ixbrlparse/components/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def to_json(self):
"""Convert the object to a JSON serialisable dictionary."""
return deepcopy(self.__dict__)

def parse_value(self, value: Union[str, int, float]) -> Optional[Union[int, float, bool, date]]:
def parse_value(self, value: Union[str, int, float]) -> Optional[Union[int, float, bool, date, str]]:
"""Parse a value using the format.
Parameters:
Expand Down

0 comments on commit 69eb7dd

Please sign in to comment.