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 250d1a7 commit 282cdf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions edk2toollib/uefi/uefi_multi_phase.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 282cdf8

Please sign in to comment.