Skip to content

Commit

Permalink
More python 3.8/9 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquegemignani committed Aug 1, 2023
1 parent c93736f commit 45f41d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mercury_engine_data_structures/formats/property_enum.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import enum
import typing
import warnings
from typing import Dict, Tuple

Expand Down Expand Up @@ -46,7 +47,7 @@ def _decode(self, obj: int, context, path):
path=path,
)

def _encode(self, obj: str | int, context, path):
def _encode(self, obj: typing.Union[str, int], context, path):
try:
return self.known_hashes[obj]
except KeyError:
Expand Down

0 comments on commit 45f41d9

Please sign in to comment.