Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd committed Nov 19, 2023
1 parent ecbf72a commit 271d598
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/dolfinx_mpc/assemble_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ def create_sparsity_pattern(form: _fem.Form,
if isinstance(mpc, list):
assert len(mpc) == 2
for mpc_ in mpc:
mpc_._not_finalized()
mpc_._not_finalized() # type: ignore
return cpp.mpc.create_sparsity_pattern(form._cpp_object, mpc[0]._cpp_object,
mpc[1]._cpp_object)
else:
mpc._not_finalized()
return cpp.mpc.create_sparsity_pattern(form._cpp_object, mpc._cpp_object,
mpc._cpp_object)
mpc._not_finalized() # type: ignore
return cpp.mpc.create_sparsity_pattern(form._cpp_object, mpc._cpp_object, # type: ignore
mpc._cpp_object) # type: ignore


def create_matrix_nest(
Expand Down

0 comments on commit 271d598

Please sign in to comment.