Skip to content

fix: support Python 3.11 to prevent squatter install#107

Merged
brendanjryan merged 2 commits intomainfrom
fix/python-3.11-support
Apr 1, 2026
Merged

fix: support Python 3.11 to prevent squatter install#107
brendanjryan merged 2 commits intomainfrom
fix/python-3.11-support

Conversation

@brendanjryan
Copy link
Copy Markdown
Collaborator

Problem

On Python 3.11, pip install pympp installs version 0.0.1 — a PyPI name squatter — because requires-python >= 3.12 causes pip to silently skip all real versions.

Fix

  • Lower requires-python to >= 3.11 (datetime.UTC and X | Y union syntax both work on 3.11)
  • Replace PEP 695 generic syntax (def func[R](...)) with TypeVar — the only 3.12-specific syntax in the codebase
  • Update ruff and pyright targets to py311

On Python 3.11, `pip install pympp` was installing version 0.0.1 (a
name squatter) because requires-python >= 3.12 caused pip to skip all
real versions.

- Lower requires-python to >= 3.11 (datetime.UTC and X|Y unions work on 3.11)
- Replace PEP 695 generic syntax (def func[R]) with TypeVar — the only
  3.12-specific syntax in the codebase
- Update ruff/pyright targets to py311
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@brendanjryan brendanjryan merged commit 3126eaa into main Apr 1, 2026
2 checks passed
@github-actions github-actions bot mentioned this pull request Apr 1, 2026
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