diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fc95eb68..ff16958a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,10 +35,10 @@ jobs: uses: actions/checkout@v4 - name: Get dependencies from apt (cache) - uses: awalsh128/cache-apt-pkgs-action@latest + uses: awalsh128/cache-apt-pkgs-action@v1.4.3 if: runner.os == 'Linux' with: - packages: build-essential cmake postgresql-server-dev-14 libproj-dev libjson-c-dev libgsl-dev libgeos-dev + packages: build-essential cmake postgresql-server-dev-16 libproj-dev libjson-c-dev libgsl-dev libgeos-dev version: 1.0 - name: Get dependencies from homebrew (cache) 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)