Skip to content

Conversation

@InauguralPhysicist
Copy link
Owner

Add 'from future import annotations' to eigen_memory.py,
eigen_transformer.py, and eigen_attention.py to support Python 3.9.

The pipe union syntax (e.g., str | torch.device | None) is only
available in Python 3.10+. Using future annotations allows this
syntax to work in Python 3.9 by deferring type annotation evaluation.

This fixes the TypeError during test collection in the CI pipeline
running pytest on macOS with Python 3.9.

Add 'from __future__ import annotations' to eigen_memory.py,
eigen_transformer.py, and eigen_attention.py to support Python 3.9.

The pipe union syntax (e.g., str | torch.device | None) is only
available in Python 3.10+. Using future annotations allows this
syntax to work in Python 3.9 by deferring type annotation evaluation.

This fixes the TypeError during test collection in the CI pipeline
running pytest on macOS with Python 3.9.
@InauguralPhysicist InauguralPhysicist merged commit bdb302d into main Nov 14, 2025
10 of 11 checks passed
@InauguralPhysicist InauguralPhysicist deleted the claude/fix-python-39-type-annotations-01VeYQ32xKP6paZeaPNvKEN8 branch November 14, 2025 04:59
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.

3 participants