From 804d3f15e394d07d9dacab2eb6012f6daf070cc8 Mon Sep 17 00:00:00 2001 From: lojack5 <1458329+lojack5@users.noreply.github.com> Date: Wed, 18 Oct 2023 14:17:47 -0600 Subject: [PATCH] fixup: union commit --- etgtools/tweaker_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etgtools/tweaker_tools.py b/etgtools/tweaker_tools.py index dc8eec28..ee5a24ce 100644 --- a/etgtools/tweaker_tools.py +++ b/etgtools/tweaker_tools.py @@ -19,7 +19,7 @@ import re import sys, os import copy import textwrap -from typing import Union, Tuple +from typing import Optional, Tuple PY3 = sys.version_info[0] == 3 @@ -222,7 +222,7 @@ class FixWxPrefix(object): return 'list' return type_map.get(type_name, type_name) - def parseNameAndType(self, name_string: str, type_string: Union[str, None]) -> Tuple[str, str | None]: + def parseNameAndType(self, name_string: str, type_string: Optional[str]) -> Tuple[str, Optional[str]]: """Given an identifier name and an optional type annotation, process these per cleanName and cleanType. Further performs transforms on the identifier name that may be required due to the type annotation.