From 8f29662c9e85f09ac634564a17f18caf37277a4c Mon Sep 17 00:00:00 2001 From: Nicolas Kruse Date: Mon, 15 Dec 2025 08:40:45 +0100 Subject: [PATCH] ci/cd: path for pelfy project fixed & type hints fixed for vector._map2 --- .github/workflows/build_wheels.yml | 2 +- .github/workflows/ci.yml | 2 +- src/copapy/_vectors.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index e62fa26..d4c6330 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -48,7 +48,7 @@ jobs: run: | git clone --depth 1 https://github.com/Nonannet/pelfy.git /tmp/pelfy mkdir -p src/${{ github.event.repository.name }}/_vendor - cp -r /tmp/pelfy/pelfy src/${{ github.event.repository.name }}/_vendor/ + cp -r /tmp/pelfy/src/pelfy src/${{ github.event.repository.name }}/_vendor/ # Only needed for Linux ARM builds - name: Set up QEMU diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 438baae..2847675 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,7 +61,7 @@ jobs: run: | git clone --depth 1 https://github.com/Nonannet/pelfy.git /tmp/pelfy mkdir -p src/${{ github.event.repository.name }}/_vendor - cp -r /tmp/pelfy/pelfy src/${{ github.event.repository.name }}/_vendor/ + cp -r /tmp/pelfy/src/pelfy src/${{ github.event.repository.name }}/_vendor/ - name: Run tests with pytest run: pytest -m "not runner" diff --git a/src/copapy/_vectors.py b/src/copapy/_vectors.py index e5b5244..1295e1f 100644 --- a/src/copapy/_vectors.py +++ b/src/copapy/_vectors.py @@ -301,7 +301,7 @@ class vector(Generic[TNum]): """Applies a function to each element of the vector and returns a new vector.""" return vector(func(x) for x in self.values) - def _map2(self, other: VecNumLike, func: Callable[[Any, Any], value[int | float]]) -> 'vector[Any]': + def _map2(self, other: VecNumLike, func: Callable[[Any, Any], value[int] | value[float]]) -> 'vector[Any]': if isinstance(other, vector): assert len(self.values) == len(other.values) return vector(func(a, b) for a, b in zip(self.values, other.values))