Skip to content

Drop Python 3.8 support or fix typing imports #730

@abrookins

Description

@abrookins

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions