From bd7b42672421fb46df0c21e4917eeb023862cd64 Mon Sep 17 00:00:00 2001 From: Esteban Zimanyi Date: Sun, 17 May 2026 15:30:39 +0200 Subject: [PATCH] Reformat datespan.py to satisfy Black check Commit e90b35f modified DateSpan.distance without running Black, so the Lint code with Black workflow fails on master with black ~=24.0 flagging pymeos/collections/time/datespan.py. Reformat only that file with the same Black version the CI uses; no other files are affected. --- pymeos/collections/time/datespan.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pymeos/collections/time/datespan.py b/pymeos/collections/time/datespan.py index da04ffe5..5af0d47e 100644 --- a/pymeos/collections/time/datespan.py +++ b/pymeos/collections/time/datespan.py @@ -470,9 +470,7 @@ def distance(self, other: TimeDate) -> timedelta: elif isinstance(other, DateSet): return self.distance(other.to_spanset()) elif isinstance(other, DateSpan): - return timedelta( - days=distance_datespan_datespan(self._inner, other._inner) - ) + return timedelta(days=distance_datespan_datespan(self._inner, other._inner)) elif isinstance(other, DateSpanSet): return timedelta( days=distance_datespanset_datespan(self._inner, other._inner)