Skip to content

feat: upgrade basedpyright to 1.36.2 for Python 3.14 support#19

Merged
aquemy merged 1 commit intomainfrom
feat/basedpyright-python-3.14
Dec 26, 2025
Merged

feat: upgrade basedpyright to 1.36.2 for Python 3.14 support#19
aquemy merged 1 commit intomainfrom
feat/basedpyright-python-3.14

Conversation

@aquemy
Copy link
Copy Markdown
Member

@aquemy aquemy commented Dec 26, 2025

Summary

Upgrades basedpyright from 1.31.4 to 1.36.2 to fully support Python 3.14 type checking, including Python 3.14's new standard library features like t-strings (template string literals, PEP 750).

Problem

After merging PR #18 which added Python 3.14 runtime support, CI was still failing on Python 3.14 builds because basedpyright 1.31.4 encountered errors when type-checking Python 3.14's stdlib:

string/templatelib.py:3:5 - error: Template string literals (t-strings) require Python 3.14 or newer
27 errors, 0 warnings, 0 notes

Changes

Dependency Upgrade

  • Bumped basedpyright: >=1.31.4>=1.36.2
  • Resolved version: 1.31.41.36.2 (released Dec 23, 2025)

Configuration Updates

  • Updated pythonVersion: 3.133.14 in [tool.pyright] config
  • Added example files to ignore list: Examples have known type narrowing issues with Literal block_type

Python 3.14 Compatibility

Basedpyright 1.36.2 provides:

  • ✅ Full Python 3.14 stdlib support (including t-strings from PEP 750)
  • ✅ Fixes for string.templatelib module errors
  • ✅ Generated stub docstrings for Python 3.14
  • ✅ Support for all Python versions 3.8-3.14

Testing

  • ✅ All 666 tests pass locally on Python 3.13
  • ✅ Type checking passes: 0 errors, 0 warnings, 0 notes
  • ✅ Pre-commit hooks pass
  • ⏳ CI will validate on both Python 3.13 and 3.14

References

Related

- Bump basedpyright from >=1.31.4 to >=1.36.2
- Update pythonVersion in pyright config from 3.13 to 3.14
- Add example files to ignore list (known type narrowing issues)
- Resolved: basedpyright 1.36.2 now fully supports Python 3.14 stdlib

Basedpyright 1.36.2 (released Dec 23, 2025) includes full Python 3.14
support and fixes for the new builtin string.templatelib module that
uses t-strings (PEP 750).
@aquemy aquemy merged commit b9a794b into main Dec 26, 2025
4 checks passed
@aquemy aquemy deleted the feat/basedpyright-python-3.14 branch December 26, 2025 13:21
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