Skip to content

Raise Python floor to >=3.10; modernize annotations - #32

Merged
mlin merged 3 commits into
mlin:mainfrom
Wid-L-Hacker:conrad/python-floor-310
Oct 23, 2026
Merged

mlin merged 3 commits into
mlin:mainfrom
Wid-L-Hacker:conrad/python-floor-310

Conversation

@Wid-L-Hacker

Copy link
Copy Markdown
Contributor

Raises the Python binding's declared floor from >=3.6 to >=3.10 (setup.py python_requires, both README requirements lines, and the conda recipe), per the maintainer's D5 ruling.

With the floor at 3.10, the binding's runtime-evaluated annotations can use the PEP 585/604 spellings. __init__.py is modernized accordingly (ruff autofix: UP006 ×4, UP045 ×18; the now-unused typing.Dict/Optional imports and the stale UP035 noqa are removed), and the UP006/UP045 global ruff opt-outs are deleted — ruff.toml now has no global opt-outs, only the vendored-file per-file scoping. target-version = "py310"is pinned in ruff.toml so lint tracks the declared floor.

Verification: ruff 0.17.2 check + format clean (pre-commit hooks pass); test/test_gri.py 11 passed under Python 3.12; the package imports and connects under a real CPython 3.10.22, so the modernized annotations evaluate at the new floor.

Note: the connector push resets __init__.py to mode 100644 (it cannot set exec bits); a brief follow-up chmod commit restores 100755, and CI lint shows EXE001 until it lands.

Wid-L-Hacker and others added 3 commits October 22, 2026 19:38
setup.py python_requires, README (x2), and the conda recipe move from
>=3.6 to >=3.10. With the floor at 3.10, the binding's runtime-evaluated
annotations can use the PEP 585/604 spellings: __init__.py modernized by
ruff autofix (UP006 x4, UP045 x18), the stale typing imports removed,
and the UP006/UP045 global ruff opt-outs deleted — ruff.toml now has no
global opt-outs, only the vendored-file per-file scoping. target-version
pinned to py310 in ruff.toml so lint tracks the declared floor.

Verified: ruff 0.17.2 check/format clean; test/test_gri.py 11 passed
under Python 3.12; the package imports and connects under a real
CPython 3.10.22 (annotations evaluate at import).
@mlin
mlin merged commit 768f213 into mlin:main Oct 23, 2026
6 checks passed
@mlin
mlin deleted the conrad/python-floor-310 branch October 23, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants