Skip to content

Commit

Permalink
pragma no cover
Browse files Browse the repository at this point in the history
  • Loading branch information
apchytr committed Dec 17, 2024
1 parent 5d7a51d commit 435ec90
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mrmustard/math/backend_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,9 @@ def conj(self, array: Tensor) -> Tensor:
except AttributeError:
return fn(array)

def constraint_func(self, bounds: tuple[float | None, float | None]) -> Callable | None:
def constraint_func(
self, bounds: tuple[float | None, float | None]
) -> Callable | None: # pragma: no cover
r"""Returns a constraint function for the given bounds.
A constraint function will clip the value to the interval given by the bounds.
Expand Down Expand Up @@ -954,7 +956,7 @@ def pad(
fn = self._get_fn("pad")
return fn(array, paddings, mode, constant_values)

def pinv(self, matrix: Tensor) -> Tensor:
def pinv(self, matrix: Tensor) -> Tensor: # pragma: no cover
r"""The pseudo-inverse of matrix.
Args:
Expand Down Expand Up @@ -1315,7 +1317,7 @@ def map_fn(self, func: Callable, elements: Tensor) -> Tensor:
fn = self._get_fn("map_fn")
return fn(func, elements)

def squeeze(self, tensor: Tensor, axis: list[int] | None) -> Tensor:
def squeeze(self, tensor: Tensor, axis: list[int] | None) -> Tensor: # pragma: no cover
"""Removes dimensions of size 1 from the shape of a tensor.
Args:
Expand Down

0 comments on commit 435ec90

Please sign in to comment.