Skip to content

Commit 443099c

Browse files
committed
please mypy
1 parent 2541784 commit 443099c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auth_server/cert_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def get_org_id_siths(cert: Certificate) -> str | None:
153153
# Check that the certificate has enhancedKeyUsage clientAuth
154154
try:
155155
enhanced_key_usage = cert.extensions.get_extension_for_oid(ExtensionOID.EXTENDED_KEY_USAGE)
156-
if OID_ENHANCED_KEY_USAGE_CLIENT_AUTHENTICATION not in enhanced_key_usage.value:
156+
if OID_ENHANCED_KEY_USAGE_CLIENT_AUTHENTICATION not in enhanced_key_usage.value: # type: ignore[operator]
157157
logger.error(f"certificate {cert_fingerprint} has no enhancedKeyUsage clientAuth")
158158
return None
159159
except ExtensionNotFound:

0 commit comments

Comments
 (0)