Skip to content

Commit 6b95ab7

Browse files
Add note about casting to ArrayLike for Python 3.10 mypy
1 parent c9fc79c commit 6b95ab7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pyhf/tensor/numpy_backend.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,4 +656,5 @@ def transpose(self, tensor_in: Tensor[T]) -> ArrayLike:
656656
657657
.. versionadded:: 0.7.0
658658
"""
659+
# TODO: Casting needed for Python 3.10 mypy but not Python 3.13?
659660
return cast(ArrayLike, tensor_in.transpose())

0 commit comments

Comments
 (0)