Skip to content

compat: support Python 3.8+#17

Merged
adnanhd merged 2 commits into
mainfrom
compat/py38
Jun 15, 2026
Merged

compat: support Python 3.8+#17
adnanhd merged 2 commits into
mainfrom
compat/py38

Conversation

@adnanhd

@adnanhd adnanhd commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Lowers the floor to Python 3.8 so downstream consumers (torchestrator) can support it.

  • Downgrade runtime-evaluated annotations in pydantic models: PEP 604 X | None -> Optional/Union, PEP 585 dict[]/list[] -> Dict/List.
  • All files already carry from __future__ import annotations, so non-pydantic annotations stay lazy and need no change.
  • requires-python>=3.8; deps already 3.8-clean.
  • 175 tests pass on 3.10.

adnanhd added 2 commits June 15, 2026 04:25
- set ruff target to py38, ignore annotation-rewrite UP rules (pydantic
  evaluates annotations at runtime; modern forms raise on 3.8)
- convert a module-level union alias and a quoted union to typing forms
- sort imports, wrap two over-length lines
@adnanhd adnanhd merged commit d68dc1b into main Jun 15, 2026
3 checks passed
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.

1 participant