From 282cdf8f7c583ead1eddd082d7f1b3ca6113d0fd Mon Sep 17 00:00:00 2001 From: Joey Vagedes Date: Thu, 20 Jul 2023 14:31:56 -0700 Subject: [PATCH] update --- edk2toollib/uefi/uefi_multi_phase.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edk2toollib/uefi/uefi_multi_phase.py b/edk2toollib/uefi/uefi_multi_phase.py index a3479c9f..13df2bf9 100644 --- a/edk2toollib/uefi/uefi_multi_phase.py +++ b/edk2toollib/uefi/uefi_multi_phase.py @@ -9,7 +9,7 @@ """Module for working with UEFI Authenticated Variable Atrributes.""" import struct -from typing import IO +from typing import IO, Union EFI_VARIABLE_NON_VOLATILE = 0x00000001 EFI_VARIABLE_BOOTSERVICE_ACCESS = 0x00000002 @@ -48,7 +48,7 @@ class EfiVariableAttributes(object): } INVERSE_STRING_MAP = {v: k for k, v in STRING_MAP.items()} - def __init__(self, attributes: int | str=0x0000_0000, decodefs: IO=None) -> None: + def __init__(self, attributes: Union[int, str]=0x0000_0000, decodefs: IO=None) -> None: """Creates a EfiVariableAttributes object. Args: @@ -63,7 +63,7 @@ def __init__(self, attributes: int | str=0x0000_0000, decodefs: IO=None) -> None else: self.update(attributes) - def update(self, attributes: int | str = 0x0000_00000) -> None: + def update(self, attributes: Union[int, str] = 0x0000_00000) -> None: """Updates instance to provided attributes. Args: