Skip to content

Commit 4f3ae5f

Browse files
tobixenclaude
andcommitted
style: apply ruff-format fixes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 006bff2 commit 4f3ae5f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

caldav/collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ def _supported_components_from_response(self, response: Any, with_fallback: bool
751751
Both the sync and async paths produce a DAVResponse via propfind,
752752
which always populates response.results via the protocol layer.
753753
"""
754-
for result in (response.results or []):
754+
for result in response.results or []:
755755
components = result.properties.get(cdav.SupportedCalendarComponentSet().tag)
756756
if components:
757757
return components

tests/test_caldav_unit.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,12 @@ def test_get_supported_components_absent_hints(self):
611611
</D:response>
612612
</D:multistatus>"""
613613
client = MockedDAVClient(xml)
614-
client.features = FeatureSet({"save-load.todo": {"support": "unsupported"}, "save-load.journal": {"support": "unsupported"}})
614+
client.features = FeatureSet(
615+
{
616+
"save-load.todo": {"support": "unsupported"},
617+
"save-load.journal": {"support": "unsupported"},
618+
}
619+
)
615620
components = client.calendar(
616621
url="https://somwhere.in.the.universe.example/some/caldav/root/testcal/"
617622
).get_supported_components()
@@ -844,7 +849,6 @@ def test_get_calendars(self):
844849
calendar_home_set = CalendarSet(client, url="/dav/tobias%40redpill-linpro.com/")
845850
assert len(calendar_home_set.get_calendars()) == 1
846851

847-
848852
def test_xml_parsing(self):
849853
"""
850854
DAVResponse has quite some code to parse the XML received from the

0 commit comments

Comments
 (0)