Skip to content

Commit

Permalink
fixed ruff error
Browse files Browse the repository at this point in the history
  • Loading branch information
alkidbaci committed Nov 13, 2024
1 parent d4bd096 commit 04e6fbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion owlapy/owl_literal.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ def __init__(self, value, type_=None):
value = time.fromisoformat(value) if isinstance(value, str) else value
if isinstance(value, Timedelta) or type_ is DurationOWLDatatype:
value = Timedelta(value) if isinstance(value, str) else value
assert type(value) is [datetime, date, time, Timedelta]
assert type(value) in [datetime, date, time, Timedelta]
self._v = value
self._type = type_

Expand Down

0 comments on commit 04e6fbf

Please sign in to comment.