@@ -120,7 +120,7 @@ fn deser_backrefs(blob: &[u8]) -> PyResult<LazyNode> {
120120/// stripped before calling the underlying decoder. This makes `ser_2026` and
121121/// `deser_2026` a symmetric pair.
122122#[ pyfunction]
123- #[ pyo3( signature = ( blob, * , max_atom_len=PY_DEFAULT_MAX_ATOM_LEN , strict=false ) ) ]
123+ #[ pyo3( signature = ( blob, * , max_atom_len=PY_DEFAULT_MAX_ATOM_LEN , strict=true ) ) ]
124124fn deser_2026 ( blob : & [ u8 ] , max_atom_len : usize , strict : bool ) -> PyResult < LazyNode > {
125125 let mut a = Allocator :: new ( ) ;
126126 let node = node_from_bytes_serde_2026 ( & mut a, blob, max_atom_len, strict) . map_err ( |e| {
@@ -145,7 +145,7 @@ fn deser_2026(blob: &[u8], max_atom_len: usize, strict: bool) -> PyResult<LazyNo
145145/// an auto-switching counterpart. Consensus-aware callers should sniff the
146146/// prefix themselves and use their own caps.
147147#[ pyfunction]
148- #[ pyo3( signature = ( blob, * , max_atom_len=PY_DEFAULT_MAX_ATOM_LEN , strict=false ) ) ]
148+ #[ pyo3( signature = ( blob, * , max_atom_len=PY_DEFAULT_MAX_ATOM_LEN , strict=true ) ) ]
149149fn deser_auto ( blob : & [ u8 ] , max_atom_len : usize , strict : bool ) -> PyResult < LazyNode > {
150150 let mut a = Allocator :: new ( ) ;
151151 let node = if let Some ( body) = blob. strip_prefix ( SERDE_2026_MAGIC_PREFIX . as_slice ( ) ) {
0 commit comments