Summary
Due to inconsistent type annotations, even though zs is a also a List[Any] (similar to xs and ys), Pylance is considering zs as an integer type variable.
Proposed fix

A possible fix is to use inline type annotation with Union of List (np.typing.ArrayLike) and float.