Skip to content

Commit

Permalink
Start killing Python < 3.9 compatibility code
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Mar 6, 2024
1 parent 9e630d3 commit 56bca3c
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions python/soma/controller/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys
import typing

# Import allsupported types from typing
# Import all supported types from typing
from typing import (
Any,
Literal,
Expand All @@ -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_):
Expand Down

0 comments on commit 56bca3c

Please sign in to comment.