spatialdata
spatialdata copied to clipboard
`JoinTypes.__members__` empty in Python 3.13
Running this code with Python 3.11 shows
from spatialdata._core.query.relational_query import JoinTypes; print(JoinTypes._member_names_)
from spatialdata._core.query.relational_query import MatchTypes; print(MatchTypes._member_names_)
['left', 'left_exclusive', 'inner', 'right', 'right_exclusive']
['left', 'right', 'no']
While running it with Python 3.13 shows
[]
['left', 'right', 'no']
Leading to an exception when the join functions are called (for instance from spatialdata-plot).
We need to:
- [ ] fix this
- [x] I'll start with a quick fix CC @melonora https://github.com/scverse/spatialdata/pull/853
- [ ] we should see if we can make a more robust fix (the hotfix may be enough)
- [x] add Python 3.13 to the CI
- [ ] ideally try to make tests faster to make the CI run faster.