msgspec
msgspec
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
Fix overriding an inherited field alias back to the field's own name
rvaccone:contrib/654-inherited-alias-override
4 days ago
Bump the github-actions group across 1 directory with 6 updates Bumps the github-actions group with 6 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `7.0.0` | `7.0.1` | | [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | `8.2.0` | `9.0.0` | | [actions/setup-python](https://github.com/actions/setup-python) | `6.3.0` | `7.0.0` | | [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) | `1.14.0` | `1.14.1` | | [CodSpeedHQ/action](https://github.com/codspeedhq/action) | `4.18.1` | `4.18.5` | | [lycheeverse/lychee-action](https://github.com/lycheeverse/lychee-action) | `2.8.0` | `2.9.0` | Updates `actions/checkout` from 7.0.0 to 7.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0...3d3c42e5aac5ba805825da76410c181273ba90b1) Updates `astral-sh/setup-uv` from 8.2.0 to 9.0.0 - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](https://github.com/astral-sh/setup-uv/compare/fac544c07dec837d0ccb6301d7b5580bf5edae39...c771a70e6277c0a99b617c7a806ffedaca235ff9) Updates `actions/setup-python` from 6.3.0 to 7.0.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/ece7cb06caefa5fff74198d8649806c4678c61a1...5fda3b95a4ea91299a34e894583c3862153e4b97) Updates `pypa/gh-action-pypi-publish` from 1.14.0 to 1.14.1 - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) - [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/cef221092ed1bacb1cc03d23a2d87d1d172e277b...ba38be9e461d3875417946c167d0b5f3d385a247) Updates `CodSpeedHQ/action` from 4.18.1 to 4.18.5 - [Release notes](https://github.com/codspeedhq/action/releases) - [Changelog](https://github.com/CodSpeedHQ/action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codspeedhq/action/compare/a4a36bb07c0638b0b4ca52bf1f3dad1b4289e52f...f99becdce5e5d51fd556489ebef684f4ecfd6286) Updates `lycheeverse/lychee-action` from 2.8.0 to 2.9.0 - [Release notes](https://github.com/lycheeverse/lychee-action/releases) - [Commits](https://github.com/lycheeverse/lychee-action/compare/8646ba30535128ac92d33dfc9133794bfdd9b411...e7477775783ea5526144ba13e8db5eec57747ce8) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: astral-sh/setup-uv dependency-version: 9.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-python dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: pypa/gh-action-pypi-publish dependency-version: 1.14.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: CodSpeedHQ/action dependency-version: 4.18.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: lycheeverse/lychee-action dependency-version: 2.9.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot/github_actions/github-actions-7a0faf0d89
4 days ago
Bump the github-actions group across 1 directory with 3 updates Bumps the github-actions group with 3 updates in the / directory: [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv), [CodSpeedHQ/action](https://github.com/codspeedhq/action) and [lycheeverse/lychee-action](https://github.com/lycheeverse/lychee-action). Updates `astral-sh/setup-uv` from 8.2.0 to 8.3.2 - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](https://github.com/astral-sh/setup-uv/compare/fac544c07dec837d0ccb6301d7b5580bf5edae39...11f9893b081a58869d3b5fccaea48c9e9e46f990) Updates `CodSpeedHQ/action` from 4.18.1 to 4.18.5 - [Release notes](https://github.com/codspeedhq/action/releases) - [Changelog](https://github.com/CodSpeedHQ/action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codspeedhq/action/compare/a4a36bb07c0638b0b4ca52bf1f3dad1b4289e52f...f99becdce5e5d51fd556489ebef684f4ecfd6286) Updates `lycheeverse/lychee-action` from 2.8.0 to 2.9.0 - [Release notes](https://github.com/lycheeverse/lychee-action/releases) - [Commits](https://github.com/lycheeverse/lychee-action/compare/8646ba30535128ac92d33dfc9133794bfdd9b411...e7477775783ea5526144ba13e8db5eec57747ce8) --- updated-dependencies: - dependency-name: astral-sh/setup-uv dependency-version: 8.3.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: CodSpeedHQ/action dependency-version: 4.18.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: lycheeverse/lychee-action dependency-version: 2.9.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot/github_actions/github-actions-d388a890c3
11 days ago
Fix dec_hook exception type in json.decode docstring (#1127) Fixes #774. `json.decode` was the only `dec_hook` docstring telling users to raise a `TypeError` for an unsupported type. `json.Decoder`, `msgpack.decode`, `msgpack.Decoder`, and `convert` all say `NotImplementedError`, which is the intended contract you confirmed in #774 (`TypeError`/`ValueError` are for a value that doesn't match the type). This changes the one line to match. Grepped the rest of the tree for the wording and this docstring was the only copy, so there's nothing to fix in the docs or stubs. Added an `## Unreleased` changelog entry. I pointed it at the issue with `{issue}`774`` since there was no PR number when I wrote it; happy to swap it to `{pr}` with this PR's number. Disclosure: I used AI assistance (Claude) to draft this change and reviewed the result.
main
13 days ago
Fix dec_hook exception type in json.decode docstring Fixes #774. json.decode was the only dec_hook docstring saying to raise a TypeError for an unsupported type; json.Decoder, msgpack.decode, msgpack.Decoder, and convert all say NotImplementedError, which jcrist confirmed in #774 is the intended contract (TypeError/ValueError are for bad values). The changelog entry points at the issue since there's no PR number yet; it can reference the PR instead once one exists. Disclosure: I used AI assistance (Claude) to draft this change and reviewed the result.
rvaccone:contrib/774-dec-hook-docstring
13 days ago
Fix minItems for all-optional array structs
gaoflow:fix-json-schema-array-like-defaults
17 days ago
Bump the github-actions group with 3 updates Bumps the github-actions group with 3 updates: [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv), [CodSpeedHQ/action](https://github.com/codspeedhq/action) and [lycheeverse/lychee-action](https://github.com/lycheeverse/lychee-action). Updates `astral-sh/setup-uv` from 8.2.0 to 8.3.2 - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](https://github.com/astral-sh/setup-uv/compare/fac544c07dec837d0ccb6301d7b5580bf5edae39...11f9893b081a58869d3b5fccaea48c9e9e46f990) Updates `CodSpeedHQ/action` from 4.18.1 to 4.18.4 - [Release notes](https://github.com/codspeedhq/action/releases) - [Changelog](https://github.com/CodSpeedHQ/action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codspeedhq/action/compare/a4a36bb07c0638b0b4ca52bf1f3dad1b4289e52f...9f3a37ece7abc84992501a7fcd54d1704f3458fa) Updates `lycheeverse/lychee-action` from 2.8.0 to 2.9.0 - [Release notes](https://github.com/lycheeverse/lychee-action/releases) - [Commits](https://github.com/lycheeverse/lychee-action/compare/8646ba30535128ac92d33dfc9133794bfdd9b411...e7477775783ea5526144ba13e8db5eec57747ce8) --- updated-dependencies: - dependency-name: astral-sh/setup-uv dependency-version: 8.3.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: CodSpeedHQ/action dependency-version: 4.18.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: lycheeverse/lychee-action dependency-version: 2.9.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot/github_actions/github-actions-d388a890c3
18 days ago
Fix json.encode of a dict keyed by a plain str Enum (#1118) ### Problem Encoding a dict whose keys are members of a plain `enum.Enum` with `str` values raises, even though the same key type round-trips through every other path: ```python import msgspec, enum class Fruit(enum.Enum): APPLE = "apple" BANANA = "banana" msgspec.json.decode(b'{"apple": 1}', type=dict[Fruit, int]) # ok msgspec.msgpack.encode({Fruit.APPLE: 1}) # ok msgspec.to_builtins({Fruit.APPLE: 1}) # ok -> {'apple': 1} msgspec.json.encode({Fruit.APPLE: 1}) # TypeError: Only dicts with str-like or number-like keys are supported ``` `dict[Fruit, int]` is an accepted *decode* type and both `msgpack.encode` and `to_builtins` handle the key, so `json.encode` rejecting it is a cross-codec inconsistency. ### Cause `json_encode_enum` routes a key's underlying value through `json_encode_dict_key_noinline`, which only handles non-`str` keys (`str` keys are fast-pathed in `json_encode_dict_key`). A plain `str`-valued enum therefore hits the "unsupported key" error. ### Fix When encoding an enum as a dict key, write a `str` value straight to the key with `json_encode_str`; non-`str` values keep going through `json_encode_dict_key_noinline` as before. ### Tests `test_encode_dict_plain_enum_str_key` covers a plain str `Enum` used as a dict key (encode output and encode/decode round-trip), and `FruitStr` is added to the existing mixed-key-type dict test. `pytest tests/unit/test_json.py` → 1786 passed.
main
20 days ago
Latest Branches
CodSpeed Performance Gauge
0%
Fix overriding an inherited field alias back to the field's own name
#1133
4 days ago
80359d9
rvaccone:contrib/654-inherited-alias-override
CodSpeed Performance Gauge
0%
Bump the github-actions group across 1 directory with 6 updates
#1132
4 days ago
055554a
dependabot/github_actions/github-actions-7a0faf0d89
CodSpeed Performance Gauge
-11%
Bump the github-actions group across 1 directory with 3 updates
#1123
11 days ago
646c29b
dependabot/github_actions/github-actions-d388a890c3
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs
Ă—
Advertisement