From 63cd990657338028e628dc76ea64720f9cedeb05 Mon Sep 17 00:00:00 2001 From: "Colton Wolkins (Laptop)" Date: Thu, 7 Nov 2024 11:30:11 -0700 Subject: [PATCH] chore: Fix linting Signed-off-by: Colton Wolkins (Laptop) --- oid4vc/jwt_vc_json/cred_processor.py | 2 +- oid4vc/oid4vc/public_routes.py | 3 --- oid4vc/sd_jwt_vc/cred_processor.py | 4 +++- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/oid4vc/jwt_vc_json/cred_processor.py b/oid4vc/jwt_vc_json/cred_processor.py index 281178dd4..8dd2cbeec 100644 --- a/oid4vc/jwt_vc_json/cred_processor.py +++ b/oid4vc/jwt_vc_json/cred_processor.py @@ -3,7 +3,7 @@ import datetime import logging import uuid -from typing import Any, Optional +from typing import Any from acapy_agent.admin.request_context import AdminRequestContext from acapy_agent.core.profile import Profile diff --git a/oid4vc/oid4vc/public_routes.py b/oid4vc/oid4vc/public_routes.py index d6cc24c9a..b1d56855c 100644 --- a/oid4vc/oid4vc/public_routes.py +++ b/oid4vc/oid4vc/public_routes.py @@ -525,9 +525,6 @@ async def verify_presentation( ): """Verify a received presentation.""" - context: AdminRequestContext = profile.context - config = Config.from_settings(context.settings) - LOGGER.debug("Got: %s %s", submission, vp_token) processors = profile.inject(CredProcessors) diff --git a/oid4vc/sd_jwt_vc/cred_processor.py b/oid4vc/sd_jwt_vc/cred_processor.py index b1a9e76c8..35101193f 100644 --- a/oid4vc/sd_jwt_vc/cred_processor.py +++ b/oid4vc/sd_jwt_vc/cred_processor.py @@ -209,7 +209,9 @@ async def verify_presentation( context: AdminRequestContext = profile.context config = Config.from_settings(context.settings) - result = await sd_jwt_verify(profile, presentation, config.endpoint, presentation_record.nonce) + result = await sd_jwt_verify( + profile, presentation, config.endpoint, presentation_record.nonce + ) # TODO: This is a little hacky return VerifyResult(result.verified, presentation)