Skip to content

Commit dc8bca6

Browse files
authored
Merge branch 'main' into fix/Ext.code-big-endian
2 parents 85a1278 + dcfd447 commit dc8bca6

4 files changed

Lines changed: 16 additions & 5 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ updates:
1010
- "*"
1111
cooldown:
1212
default-days: 7
13+
- package-ecosystem: uv
14+
directory: /
15+
schedule:
16+
interval: weekly
17+
cooldown:
18+
default-days: 7

‎docs/changelog.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## Unreleased
3+
## Version 0.22.0 (2026-08-11)
44

55
- Add `frozendict` support on Python 3.15+ ({pr}`1052`, {pr}`1105`).
66
- Support passing a callable as `decimal_format` to `msgspec.json.Encoder` and

‎pyproject.toml‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ requires-python = ">=3.10"
2020
maintainers = [
2121
{ name = "Jim Crist-Harif", email = "[email protected]" },
2222
{ name = "Ofek Lev", email = "[email protected]" },
23+
{ name = "Nikita Sobolev", email = "[email protected]" },
2324
]
2425
keywords = [
2526
"JSON",
@@ -97,9 +98,9 @@ test-prof = [
9798
]
9899
test-typing = [
99100
{ include-group = "test-base" },
100-
"mypy",
101-
"pyright",
102-
"pyrefly",
101+
"mypy==2.3.0",
102+
"pyright==1.1.411",
103+
"pyrefly==1.2.0",
103104
]
104105
test-unit = [
105106
{ include-group = "test-base" },
@@ -157,3 +158,7 @@ preset = 'strict'
157158
min-severity = 'warn'
158159
# Don't use '# type: ignore' to suppress with pyright:
159160
enabled-ignores = ["pyrefly"]
161+
162+
[tool.pyrefly.errors]
163+
# Do not require type annotations for `lambda` functions:
164+
implicit-any-lambda = false

‎src/msgspec/_core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17939,11 +17939,11 @@ json_decode_dict_key(JSONDecoderState *self, TypeNode *type, PathNode *path) {
1793917939
bool is_ascii = true;
1794017940
char *view = NULL;
1794117941
Py_ssize_t size;
17942-
bool is_str = type->types == MS_TYPE_ANY || type->types == MS_TYPE_STR;
1794317942

1794417943
size = json_decode_string_view(self, &view, &is_ascii);
1794517944
if (size < 0) return NULL;
1794617945
#ifndef Py_GIL_DISABLED
17946+
bool is_str = type->types == MS_TYPE_ANY || type->types == MS_TYPE_STR;
1794717947
bool cacheable = is_str && is_ascii && size > 0 && size <= STRING_CACHE_MAX_STRING_LENGTH;
1794817948
if (MS_UNLIKELY(!cacheable)) {
1794917949
return json_decode_dict_key_fallback(self, view, size, is_ascii, type, path);

0 commit comments

Comments
 (0)