Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
Signed-off-by: Umberto Zerbinati <[email protected]>
  • Loading branch information
Umberto Zerbinati committed Jul 2, 2024
1 parent a041099 commit 4f4ae92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ngsPETSc/ksp.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class KrylovSolver():
"""
def __init__(self, a, dofsDescr, p=None, nullspace=None, optionsPrefix="",

Check failure on line 164 in ngsPETSc/ksp.py

View workflow job for this annotation

GitHub Actions / lint

W0102

ngsPETSc/ksp.py:164:4: W0102 Dangerous default value {} as argument
solverParameters={}):
solverParameters={}): #pylint: disable=W0102
# Grabbing dofs information
if isinstance(dofsDescr, FESpace):
freeDofs = dofsDescr.FreeDofs()
Expand Down
2 changes: 1 addition & 1 deletion ngsPETSc/snes.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class NonLinearSolver:
this fuction is used only if the argument a is None.
'''
def __init__(self, fes, a=None, residual=None, objective=None, jacobian=None,

Check failure on line 31 in ngsPETSc/snes.py

View workflow job for this annotation

GitHub Actions / lint

W0102

ngsPETSc/snes.py:31:4: W0102 Dangerous default value {} as argument
solverParameters={}, optionsPrefix=""):
solverParameters={}, optionsPrefix=""): #pylint: disable=W0102
self.fes = fes
dofs = fes.ParallelDofs()
self.second_order = False
Expand Down

0 comments on commit 4f4ae92

Please sign in to comment.