spatialdata icon indicating copy to clipboard operation
spatialdata copied to clipboard

Using `functools.partial` in an unsupported way that’ll break in a future Python version

Open flying-sheep opened this issue 3 months ago • 0 comments

https://github.com/scverse/spatialdata/blob/8c3e51880004499304f79b17e3b36d2fb5e9dd82/src/spatialdata/_core/query/relational_query.py#L530-L534

…/spatialdata/_core/query/relational_query.py:530: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in enum.member() if you want to preserve the old behavior

you should test with pytest -W error to make sure you don’t have ticking time bombs like this.

flying-sheep avatar Oct 06 '25 13:10 flying-sheep