diff --git a/pytential/linalg/gmres.py b/pytential/linalg/gmres.py index f5803ec60..8ac40909c 100644 --- a/pytential/linalg/gmres.py +++ b/pytential/linalg/gmres.py @@ -165,7 +165,7 @@ def norm(x): if recalc_r: r = b - a_call(x) - norm_r = norm(r) + norm_r = norm(r) # pylint: disable=possibly-used-before-assignment residual_norms.append(norm_r) if callback is not None: diff --git a/pytential/qbx/__init__.py b/pytential/qbx/__init__.py index 76dc4c6dc..6c173ac0c 100644 --- a/pytential/qbx/__init__.py +++ b/pytential/qbx/__init__.py @@ -887,11 +887,12 @@ def _flat_centers(dofdesc, qbx_forced_limit): flat_target_nodes = _flat_nodes(target_name) # FIXME: (Somewhat wastefully) compute P2P for all targets - evt, output_for_each_kernel = p2p(queue, - targets=flat_target_nodes, - sources=flat_source_nodes, - strength=flat_strengths, - **flat_kernel_args) + evt, output_for_each_kernel = p2p( # pylint: disable=possibly-used-before-assignment # noqa: E501 + queue, + targets=flat_target_nodes, + sources=flat_source_nodes, + strength=flat_strengths, + **flat_kernel_args) target_discrs_and_qbx_sides = ((target_discr, qbx_forced_limit),) geo_data = self.qbx_fmm_geometry_data( @@ -929,7 +930,7 @@ def _flat_centers(dofdesc, qbx_forced_limit): tgt_subset_kwargs[f"result_{i}"] = res_i if qbx_tgt_count: - lpot_applier_on_tgt_subset( + lpot_applier_on_tgt_subset( # pylint: disable=possibly-used-before-assignment # noqa: E501 queue, targets=flat_target_nodes, sources=flat_source_nodes,