Skip to content

Conversation

@manzt
Copy link
Collaborator

@manzt manzt commented Oct 15, 2025

This reverts commit b573a8e.

Originally, I wanted to make imports in marimo more explicit. We need to be cautious about our core dependencies, since they must coexist with user dependencies in the same environment. Renaming the provided package guaranteed that we wouldn’t conflict with the original msgspec module (if installed by a user) in any way.

However, I now believe reverting that decision is the better approach, for several reasons:

  • Better for the community. This project can serve as a drop-in replacement for users seeking bug fixes (as discussed in Python 3.14 annotations support fix #5 (comment)).

  • Smaller diffs. We can minimize changes to the source code. Only modifying what’s necessary for bug fixes, instead of maintaining a renamed fork.

  • My original concern was that installing both msgspec and msgspec_m in the same environment could cause conflicts, since they both provide a top-level msgspec package. To be clear, that concern is valid: if both distributions are installed in the same environment, their files will conflict. In practice, whichever distribution is installed last will overwrite the other’s files, and import msgspec will resolve to that version. While not ideal, I think this is acceptable — such an environment would be explicitly user-created, and it would encourage either migration to our drop-in replacement msgspec_m or continued use of the original msgspec.

@manzt manzt merged commit 549b2a2 into main Oct 15, 2025
7 checks passed
@manzt manzt deleted the push-ooxotumnospo branch October 15, 2025 16:15
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