Comments (3)
Hm, confirming. Looks like this was broken in #443.
That PR pops out the tag out of the payload to make the strategy work with forbid_extra_keys
. But it does feel useful to be able to have the tag.
from cattrs.
Thanks, got it fixed. I also turned the example into a doctest so we don't get into the same situation in the future.
from cattrs.
Thanks!
from cattrs.
Related Issues (20)
- Register multiple hooks for a class HOT 3
- Nested class structure HOT 4
- Derived class disambiguating fails, but only sometimes. HOT 4
- Fields with init=False Don't Get Serialized HOT 3
- Calling `include_subclasses()` prevents later structure hooks from working HOT 1
- Python 3.13.0b2: 4 tests failuires HOT 7
- base64 pre-config option HOT 1
- Still not able to structure using an alias HOT 3
- Preconfigured union for a "plain" python data structures
- immutable Mapping hooks HOT 4
- TypedDict unstructuring skips value unions HOT 4
- Hookable attrs unstructuring HOT 4
- Unsupported type: typing.Union[int, typing.List[int], str]. Register a structure hook for it. HOT 2
- Hooks for fields of attrs classes are being ignored when defining hook for class itself HOT 2
- Hook factories for built in types HOT 1
- `make_unstructure_dict_unstructure_fn` does not honor `use_class_methods`
- [`help`] Understanding structuring hooks HOT 2
- Using `register_unstructure_hook` to perform attributes renaming HOT 2
- Use default factory if attribute is None or treat None as missing HOT 2
- [Feature] Use typing.Annotated for customization HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cattrs.