Skip to content

fix: msgspec Python 3.14 compatibility - #6749

Merged
akshayka merged 5 commits into
mainfrom
aka/fix-python-3.14-compat
Oct 13, 2025
Merged

akshayka merged 5 commits into
mainfrom
aka/fix-python-3.14-compat

Conversation

@akshayka

@akshayka akshayka commented Oct 12, 2025 •

Copy link
Copy Markdown
Contributor

Python 3.14 introduced changes to annotations, which broke msgspec structs; unfortunately, msgspec is no longer actively maintained.

While we search for an alternative or long-term solution, a short-term workaround is to import annotations from __future__.

This PR adds the import to more modules than needed; not sure what the minimal set is.

Python 3.14 introduced changes to annotations, which broke msgspec
structs; unfortunately, msgspec is no longer maintained.

A workaround is to import annotations from __future__. This draft commit
adds this import to all Python files, but we really only need it for
some subset of these files (not yet sure which subset).

* issue: msgspec/msgspec#847
* example workaround:
  return42/searxng@3963c23
@vercel

vercel Bot commented Oct 12, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
marimo-docs Ready Ready Preview Comment Oct 12, 2025 7:59pm

Comment thread marimo/__init__.py Resolved

@dmadisetti dmadisetti left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can follow up with my CI changes

@akshayka akshayka changed the title fix: Python 3.14 compatibility fix: msgspec Python 3.14 compatibility Oct 13, 2025
@akshayka akshayka added the bash-focus Area to focus on during release bug bash label Oct 13, 2025
@akshayka
akshayka marked this pull request as ready for review October 13, 2025 16:00
@akshayka
akshayka merged commit 4ca9cb2 into main Oct 13, 2025
3 checks passed
@akshayka
akshayka deleted the aka/fix-python-3.14-compat branch October 13, 2025 16:00

This branch was successfully deployed

1 active deployment
Preview — ef90cbe9 Deployed Oct 12, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bash-focus Area to focus on during release bug bash

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants