Skip to content

Commit

Permalink
fix found by actions/python3.11: ./radicale/item/__init__.py:167:28: …
Browse files Browse the repository at this point in the history
…E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`
  • Loading branch information
pbiering committed Mar 1, 2024
1 parent 8e3f3b5 commit 76e06ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radicale/item/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def check_and_sanitize_items(
ref_value_param = component.dtstart.params.get("VALUE")
for dates in chain(component.contents.get("exdate", []),
component.contents.get("rdate", [])):
if all(type(d) == type(ref_date) for d in dates.value):
if all(type(d) is type(ref_date) for d in dates.value):
continue
for i, date in enumerate(dates.value):
dates.value[i] = ref_date.replace(
Expand Down

0 comments on commit 76e06ea

Please sign in to comment.