This commit is contained in:
Adrien Ferrand 2021-11-23 22:10:46 +01:00
parent 0db6d15976
commit a56176e079
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ class Header(jose.Header):
"""ACME-specific JOSE Header. Implements nonce, kid, and url.
"""
nonce: Optional[bytes] = jose.field('nonce', omitempty=True, encoder=jose.encode_b64jose)
# TODO: Remove the type ignore directive once https://github.com/certbot/josepy/pull/122 is merged.
# TODO: Remove the type ignore once https://github.com/certbot/josepy/pull/122 is merged.
kid: Optional[str] = jose.field('kid', omitempty=True) # type: ignore[assignment]
url: Optional[str] = jose.field('url', omitempty=True)

View file

@ -56,7 +56,7 @@ def get_configurator():
os_like = util.get_systemd_os_like()
if os_like:
for os_name in os_like:
if os_name in OVERRIDE_CLASSES:
if os_name in OVERRIDE_CLASSES: # pylint: disable=consider-using-get
override_class = OVERRIDE_CLASSES[os_name]
if not override_class:
# No override class found, return the generic configurator