Skip to content

Commit

Permalink
Switching union type hint to Union for 3.8 compatibility (see #8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregwar committed Aug 29, 2024
1 parent 4d8119a commit d460b4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doxygen_parse.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import glob
import re
from typing import Union
import xml.etree.ElementTree as ET

# Mapping member definitions (id) to all informations
Expand Down Expand Up @@ -148,7 +149,7 @@ def parse_xml(xml_file: str):
parse_compound(compounddef_node)


def resolve_doxygen_id(id: list|str):
def resolve_doxygen_id(id: Union[list,str]):
if type(id) == list:
tpl = resolve_doxygen_id(id[0])
typ = resolve_doxygen_id(id[1])
Expand Down

0 comments on commit d460b4a

Please sign in to comment.