Files
pydantic/docs/examples
Stephen Brown II cab6313798 Allow subclasses of known types to be encoded with superclass encoder (#1291)
* Add (failing) test for Subclass JSON encoding

* Allow subclasses of known types to be encoded with superclass encoder

* Add change file

* Add documentation, fix custom json_encoders and add unit test

Blacken doc
Fix test that worked on my machine
datetime.timestamp() is flakey?
Single quotes only

* Reduce lookups

- Remove last element in `__mro__` as it will always be `object`
- Use .get for compactness

* Regarding the loop

* Move Path and Enum into ENCODERS_BY_TYPE

Sort ENCODERS_BY_TYPE

* improve JSON docs

Co-authored-by: Samuel Colvin <s@muelcolvin.com>
2020-04-18 17:11:00 +01:00
..
2019-10-14 16:40:25 +01:00
2019-11-07 14:40:44 +00:00
2019-11-07 14:40:44 +00:00
2019-11-07 14:40:44 +00:00
2019-11-07 14:40:44 +00:00
2019-11-07 14:40:44 +00:00
2019-11-07 14:40:44 +00:00
2019-11-07 14:40:44 +00:00
2019-11-07 14:40:44 +00:00
2019-11-14 16:22:51 +00:00
2019-11-07 14:40:44 +00:00
2019-11-07 14:40:44 +00:00
2019-11-07 14:40:44 +00:00
2019-11-07 14:40:44 +00:00
2019-11-07 14:40:44 +00:00
2019-11-07 14:40:44 +00:00