Problem
pyproject.toml claims Python 3.8 support (python = ">=3.8,<4.0"), but the code fails to import on Python 3.8:
from typing import Annotated # ImportError on Python 3.8
Options
Option 1: Drop Python 3.8 (Recommended)
- Python 3.8 reached end-of-life in October 2024
- Update
pyproject.toml to python = ">=3.9,<4.0"
- Remove Python 3.8 from CI matrix (already not tested)
- Clean approach for 1.0 release
Option 2: Fix imports for 3.8 compatibility
- Use
from typing_extensions import Annotated with fallback
- More maintenance burden for an EOL Python version
Related
Recommendation
Drop Python 3.8 support for the 1.0 release. This is standard practice for a major release and Python 3.8 is EOL.
Problem
pyproject.tomlclaims Python 3.8 support (python = ">=3.8,<4.0"), but the code fails to import on Python 3.8:Options
Option 1: Drop Python 3.8 (Recommended)
pyproject.tomltopython = ">=3.9,<4.0"Option 2: Fix imports for 3.8 compatibility
from typing_extensions import Annotatedwith fallbackRelated
Recommendation
Drop Python 3.8 support for the 1.0 release. This is standard practice for a major release and Python 3.8 is EOL.