Comments (4)
from pyserde.
Hi @adsharma
Just wanted to let you know v0.3.2 is pushed to PyPI! 🙂
from pyserde.
OK, this is how to extract underlying type from NewType.
print(Int.__supertype__)
- https://github.com/python/cpython/blob/master/Lib/typing.py#L2222
- Some other experiments: https://wandbox.org/permlink/AYGxQWjyYHbbkM7v
from pyserde.
Hi, @adsharma
I added NewType support for primitives. Could you check?
from pyserde.
Related Issues (20)
- custom deserializer should be used on list items HOT 2
- Error messages with more context HOT 1
- Is there a way to have a customer serializer for a whole class (vs. for the class of an attribute of an object) HOT 1
- InitVar causes exception HOT 3
- Keep order of serialized dataclasses fields as defined for YAML format HOT 2
- Serialization error for Union with a dataclass arg HOT 3
- `alias` on `Optional` field breaks deserialization HOT 1
- `alias` broken for `list` HOT 3
- Can't serialize with a None value HOT 4
- serde.compat.SerdeError: Can not serialize with untagged union of dict[str, Any] HOT 1
- SerdeError when serializing a frozenset that is part of a union field HOT 1
- Support for collections.abc HOT 5
- tagging with InternalTagging not working when serialize dataclass HOT 3
- `name 'Set' is not defined` when fields are a `Set` in combination with custom serializer/deserializer HOT 1
- Serializer for timedelta HOT 2
- Error when parsing Union types with different ordering
- Union example does not seem to work out of the box HOT 2
- Missing option bytes typing in from_json (and maybe others) HOT 1
- Serialization of recursive data structures is accidentally exponential when using `skip_if` HOT 2
- Custom field serialzer in flattened field bug
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 pyserde.