From 0be015bc0c52f2a33c22dba4f7fd594e6e69e047 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 22:18:01 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tofea/fea2d.py | 9 +++------ tofea/solvers.py | 9 +++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/tofea/fea2d.py b/tofea/fea2d.py index ff5b49c..8301d1f 100644 --- a/tofea/fea2d.py +++ b/tofea/fea2d.py @@ -21,18 +21,15 @@ class FEA2D(ABC): @property @abstractmethod - def dof_dim(self) -> int: - ... + def dof_dim(self) -> int: ... @property @abstractmethod - def element(self) -> NDArray: - ... + def element(self) -> NDArray: ... @property @abstractmethod - def dofmap(self) -> NDArray[np.uint32]: - ... + def dofmap(self) -> NDArray[np.uint32]: ... @property def shape(self) -> tuple[int, int]: diff --git a/tofea/solvers.py b/tofea/solvers.py index 2cc0764..c6236bb 100644 --- a/tofea/solvers.py +++ b/tofea/solvers.py @@ -8,16 +8,13 @@ class Solver(ABC): @abstractmethod - def factor(self, m: csc_matrix) -> None: - ... + def factor(self, m: csc_matrix) -> None: ... @abstractmethod - def solve(self, rhs: NDArray, transpose: bool = False) -> NDArray: - ... + def solve(self, rhs: NDArray, transpose: bool = False) -> NDArray: ... @abstractmethod - def clear(self) -> None: - ... + def clear(self) -> None: ... class SuperLU(Solver):