Skip to content

Commit

Permalink
Work around mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Dec 27, 2022
1 parent 36f5506 commit b1cc95b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions signxml/signer.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,11 @@ def _unpack(self, data, references: List[SignatureReference]):
def _build_transforms_for_reference(self, *, transforms_node: _Element, reference: SignatureReference):
if self.construction_method == SignatureConstructionMethod.enveloped:
SubElement(transforms_node, ds_tag("Transform"), Algorithm=SignatureConstructionMethod.enveloped.value)
SubElement(transforms_node, ds_tag("Transform"), Algorithm=reference.c14n_method.value)
SubElement(transforms_node, ds_tag("Transform"), Algorithm=reference.c14n_method.value) # type: ignore
else:
c14n_xform = SubElement(transforms_node, ds_tag("Transform"), Algorithm=reference.c14n_method.value)
c14n_xform = SubElement(
transforms_node, ds_tag("Transform"), Algorithm=reference.c14n_method.value # type: ignore
)
if reference.inclusive_ns_prefixes:
SubElement(
c14n_xform, ec_tag("InclusiveNamespaces"), PrefixList=" ".join(reference.inclusive_ns_prefixes)
Expand Down

0 comments on commit b1cc95b

Please sign in to comment.