populse / soma-base

Miscelaneous all-purpose classes and functions
0 stars 3 forks source link

Start killing Python < 3.9 compatibility code #78

Open DimitriPapadopoulos opened 8 months ago

DimitriPapadopoulos commented 8 months ago

@denisri Should we get rid of this altogether?

# More supported types, in Python < 3.9 style
Tuple = tuple
Dict = dict
Set = set

I'm afraid it could break compatibility with existing code.

denisri commented 8 months ago

I don't think they are used except perhaps in a couple of tests, and possibly in axon/capsul auto conversion functions: Capsul3 has not been used much yet, and the older API was not using these types (we were using traits). I can adapt Axon if needed.