diff --git a/python/soma/controller/field.py b/python/soma/controller/field.py index edc9e7b6..828cf229 100644 --- a/python/soma/controller/field.py +++ b/python/soma/controller/field.py @@ -3,7 +3,7 @@ import sys import typing -# Import allsupported types from typing +# Import all supported types from typing from typing import ( Any, Literal, @@ -12,16 +12,10 @@ from soma.undefined import undefined -if sys.version_info < (3, 9): - from typing import ( - Dict, - Set, - Tuple, - ) -else: - Tuple = tuple - Dict = dict - Set = set +# More supported types, in Python < 3.9 style +Tuple = tuple +Dict = dict +Set = set def _conlist_str(name, type_):