Skip to content

Support Python 3.13 and 3.14, drop 3.8 and 3.9#140

Merged
chezou merged 7 commits into
more-rufffrom
py314
Nov 3, 2025
Merged

Support Python 3.13 and 3.14, drop 3.8 and 3.9#140
chezou merged 7 commits into
more-rufffrom
py314

Conversation

@chezou
Copy link
Copy Markdown
Contributor

@chezou chezou commented Oct 31, 2025

Merge after #139

@chezou chezou force-pushed the py314 branch 3 times, most recently from 1e540f8 to 7de4b20 Compare October 31, 2025 02:23
@chezou chezou marked this pull request as ready for review October 31, 2025 02:32
@chezou chezou requested review from Copilot and tung-vu-td October 31, 2025 02:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modernizes the codebase to require Python 3.10+ as the minimum version, removing support for Python 3.8 and 3.9. The changes leverage Python 3.10's native type union syntax and eliminate the need for backward-compatibility imports.

  • Removed from __future__ import annotations across all files
  • Replaced typing-extensions usage with native Python 3.10+ typing features
  • Updated Python version requirements and CI configurations

Reviewed Changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
pyproject.toml Updated minimum Python version to 3.10, removed typing-extensions dependency, added Python 3.13-3.14 classifiers
.github/workflows/pythontest.yml Updated CI matrix to test Python 3.10-3.14 instead of 3.8-3.12
test-requirements.txt Removed mock library, updated pytest to 8.3+
tdclient/types.py Converted type aliases from string literals to native union syntax
tdclient/util.py Applied union syntax and strict=False parameter to zip()
tdclient/*.py (multiple files) Removed future annotations imports, converted TYPE_CHECKING guards to regular imports, added forward reference quotes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tdclient/util.py
Comment thread tdclient/types.py
Comment thread tdclient/types.py
Comment thread tdclient/types.py
Comment thread tdclient/types.py
Aki Ariga and others added 3 commits October 30, 2025 20:11
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@tung-vu-td tung-vu-td left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chezou chezou merged commit fc821fa into more-ruff Nov 3, 2025
22 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.

3 participants