Skip to content

Update lower bound python support to 3.10#4383

Open
chrishalcrow wants to merge 11 commits intoSpikeInterface:mainfrom
chrishalcrow:bump-python-version
Open

Update lower bound python support to 3.10#4383
chrishalcrow wants to merge 11 commits intoSpikeInterface:mainfrom
chrishalcrow:bump-python-version

Conversation

@chrishalcrow
Copy link
Member

@chrishalcrow chrishalcrow commented Feb 11, 2026

Neo 0.14.3 only supports python >= 3.10 (https://github.com/NeuralEnsemble/python-neo/blob/master/pyproject.toml), so we actually already haven't supported 3.9 for a while! All tests etc already use 3.10 as the lower bound.

This PR will make uv stop complaining ;)

Also tried to remove from __futures__ import annotations, Union and Optional. Turns out you need futures for:

  • self reference typing in classes. E.g. BaseExtractor.get_parents returns BaseExtractor
  • Stuff like method: "std" | None = None. In the future, we'll deal with this properly using Literals. For now, let's use __futures__

@chrishalcrow chrishalcrow added the packaging Related to packaging/style label Feb 11, 2026
@alejoe91
Copy link
Member

With 3.10, we can remove all from __future__ import annotations! Can you try to remove them all as part of the PR?

@chrishalcrow
Copy link
Member Author

Was looking at what else we can clean - don't need Union or Optional anymore either!

@chrishalcrow chrishalcrow added this to the 0.104.0 milestone Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packaging Related to packaging/style

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments