From d2b55a989430012e0575e4b07e1a732dfa59ee89 Mon Sep 17 00:00:00 2001 From: Joey Vagedes Date: Thu, 20 Jul 2023 14:34:48 -0700 Subject: [PATCH] update --- edk2toollib/uefi/wincert.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edk2toollib/uefi/wincert.py b/edk2toollib/uefi/wincert.py index cf5a4406..18d857fc 100644 --- a/edk2toollib/uefi/wincert.py +++ b/edk2toollib/uefi/wincert.py @@ -14,7 +14,7 @@ import sys import uuid from io import BytesIO, StringIO -from typing import Optional +from typing import Optional, Union from warnings import warn from pyasn1.codec.der.decoder import decode as der_decode @@ -583,7 +583,7 @@ class WinCert(object): REVISION = 0x200 @staticmethod - def factory(fs: BytesIO) -> WinCertUefiGuid | WinCertPkcs1: + def factory(fs: BytesIO) -> Union[WinCertUefiGuid, WinCertPkcs1]: """Generates a specific Cert Type depending on parsed Hdr_wCertificationType from the fs. Args: @@ -627,7 +627,7 @@ def factory(fs: BytesIO) -> WinCertUefiGuid | WinCertPkcs1: # @staticmethod - def Factory(fs: BytesIO) -> WinCertUefiGuid | WinCertPkcs1: + def Factory(fs: BytesIO) -> Union[WinCertUefiGuid, WinCertPkcs1]: """Generates a specific Cert Type depending on parsed Hdr_wCertificationType from the fs. Args: