Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 13, 2024
1 parent 96ad12a commit 41c1fac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
9 changes: 3 additions & 6 deletions tofea/fea2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down
9 changes: 3 additions & 6 deletions tofea/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 41c1fac

Please sign in to comment.