Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Javagedes committed Jan 11, 2024
1 parent 282cdf8 commit d2b55a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions edk2toollib/uefi/wincert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit d2b55a9

Please sign in to comment.