From 52fc76b0ba80dea32552d52c8834e1878deb94f9 Mon Sep 17 00:00:00 2001 From: Arijit Samal <68030078+1-ARIjitS@users.noreply.github.com> Date: Mon, 5 Aug 2024 14:13:24 +0200 Subject: [PATCH] added correct function changed function signature from distance_datespanset_datespan to distance_datespan_datespan for datespan instance in distance fucntion of datespan class --- pymeos/collections/time/datespan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymeos/collections/time/datespan.py b/pymeos/collections/time/datespan.py index 1639b6f9..da04ffe5 100644 --- a/pymeos/collections/time/datespan.py +++ b/pymeos/collections/time/datespan.py @@ -471,7 +471,7 @@ def distance(self, other: TimeDate) -> timedelta: return self.distance(other.to_spanset()) elif isinstance(other, DateSpan): return timedelta( - days=distance_datespanset_datespan(self._inner, other._inner) + days=distance_datespan_datespan(self._inner, other._inner) ) elif isinstance(other, DateSpanSet): return timedelta(