Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
kratsg committed Aug 23, 2022
1 parent 314441c commit d7934ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyhf/tensor/numpy_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from pyhf.typing import TensorBackend, Shape

from typing import TypeVar, Callable, Literal, Sequence, Generic, Mapping
from typing import TypeVar, Callable, Literal, Sequence, Generic, Mapping, Union
from numpy.typing import (
NDArray,
NBitBase,
Expand All @@ -16,7 +16,7 @@
)

T = TypeVar("T", bound=NBitBase)
Tensor = NDArray[np.number[T]] | NDArray[np.bool_]
Tensor = Union[NDArray[np.number[T]], NDArray[np.bool_]]

log = logging.getLogger(__name__)

Expand Down

0 comments on commit d7934ed

Please sign in to comment.