diff --git a/certomancer/integrations/animator.py b/certomancer/integrations/animator.py index f75e3a0..72af8e7 100644 --- a/certomancer/integrations/animator.py +++ b/certomancer/integrations/animator.py @@ -450,9 +450,11 @@ def serve_attr_cert( data = cert.dump() if use_pem: data = pem.armor( - 'attribute certificate' - if cert_label is not None - else 'certificate', + ( + 'attribute certificate' + if cert_label is not None + else 'certificate' + ), data, ) return Response(data, mimetype=mime) diff --git a/certomancer/registry/issued/general.py b/certomancer/registry/issued/general.py index eeb2986..cbc77b0 100644 --- a/certomancer/registry/issued/general.py +++ b/certomancer/registry/issued/general.py @@ -123,9 +123,11 @@ def parse_extension_settings(sett_dict, sett_key): "Applicable extensions must be specified as a list." ) sett_dict[sett_key] = result = [ - sett - if isinstance(sett, ExtensionSpec) - else ExtensionSpec.from_config(sett) + ( + sett + if isinstance(sett, ExtensionSpec) + else ExtensionSpec.from_config(sett) + ) for sett in ext_spec ] return result diff --git a/certomancer/registry/pki_arch.py b/certomancer/registry/pki_arch.py index bcce103..817c334 100644 --- a/certomancer/registry/pki_arch.py +++ b/certomancer/registry/pki_arch.py @@ -475,18 +475,18 @@ def __init__( ac_labels_by_issuer, ac_labels_by_holder, ) = _process_ac_spec_config(ac_spec_config or {}) - self._cert_labels_by_issuer: Dict[ - EntityLabel, List[CertLabel] - ] = cert_labels_by_issuer - self._cert_labels_by_subject: Dict[ - EntityLabel, List[CertLabel] - ] = cert_labels_by_subject - self._ac_labels_by_issuer: Dict[ - EntityLabel, List[CertLabel] - ] = ac_labels_by_issuer - self._ac_labels_by_holder: Dict[ - EntityLabel, List[CertLabel] - ] = ac_labels_by_holder + self._cert_labels_by_issuer: Dict[EntityLabel, List[CertLabel]] = ( + cert_labels_by_issuer + ) + self._cert_labels_by_subject: Dict[EntityLabel, List[CertLabel]] = ( + cert_labels_by_subject + ) + self._ac_labels_by_issuer: Dict[EntityLabel, List[CertLabel]] = ( + ac_labels_by_issuer + ) + self._ac_labels_by_holder: Dict[EntityLabel, List[CertLabel]] = ( + ac_labels_by_holder + ) self._cert_cache = cert_cache self._ac_cache = ac_cache