Skip to content

Commit 84f9c38

Browse files
committed
extract_utils: T | T -> Union[T, T]
Fixes the following error when using Python 3.8: Traceback (most recent call last): File "./extract-files.py", line 15, in <module> from extract_utils.main import ( File "/home/luk/lineage-22/tools/extract-utils/extract_utils/main.py", line 13, in <module> from extract_utils.extract import ExtractCtx File "/home/luk/lineage-22/tools/extract-utils/extract_utils/extract.py", line 72, in <module> extract_fns_user_type = extract_fns_dict_type | extract_fns_type TypeError: unsupported operand type(s) for |: '_GenericAlias' and '_GenericAlias' Change-Id: I5e8131004e81edd0e3e1a89ce1934abc7959092a
1 parent c136949 commit 84f9c38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extract_utils/extract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def __init__(
6969

7070

7171
extract_fns_type = List[ExtractFn]
72-
extract_fns_user_type = extract_fns_dict_type | extract_fns_type
72+
extract_fns_user_type = Union[extract_fns_dict_type, extract_fns_type]
7373

7474

7575
class ExtractCtx:

0 commit comments

Comments
 (0)