Skip to content

Commit

Permalink
Fix Black issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasValvekens committed Mar 15, 2024
1 parent f2bc3b4 commit 829ba60
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
8 changes: 5 additions & 3 deletions certomancer/integrations/animator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 5 additions & 3 deletions certomancer/registry/issued/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 12 additions & 12 deletions certomancer/registry/pki_arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 829ba60

Please sign in to comment.