From 6da1d9242d61dc9ee6ff462ba09e8877c9c737e4 Mon Sep 17 00:00:00 2001 From: Sacha Kozma Date: Mon, 6 Mar 2023 11:55:30 +0100 Subject: [PATCH] Remove subscript in generic types for Attachment Signed-off-by: Sacha Kozma --- didcomm/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/didcomm/message.py b/didcomm/message.py index b194b08..b432a4d 100644 --- a/didcomm/message.py +++ b/didcomm/message.py @@ -152,7 +152,7 @@ class Attachment: AttachmentDataLinks, AttachmentDataBase64, AttachmentDataJson ] = attr.ib( validator=validator__instance_of( - Union[AttachmentDataLinks, AttachmentDataBase64, AttachmentDataJson] + (AttachmentDataLinks, AttachmentDataBase64, AttachmentDataJson) ), ) id: Optional[Union[str, Callable]] = attr.ib(