From 56bca3c63c40666cf5f6bdfef9734220f7829bc7 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Wed, 6 Mar 2024 18:24:20 +0100 Subject: [PATCH] Start killing Python < 3.9 compatibility code --- python/soma/controller/field.py | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) 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_):