typed-json-dataclass icon indicating copy to clipboard operation
typed-json-dataclass copied to clipboard

A python3.7 dataclass supplemental library. Enhances dataclasses to perform basic type checking and makes the dataclass JSON serializable.

Results 6 typed-json-dataclass issues
Sort by recently updated
recently updated
newest added
trafficstars

Bumps [certifi](https://github.com/certifi/python-certifi) from 2019.3.9 to 2022.12.7. Commits 9e9e840 2022.12.07 b81bdb2 2022.09.24 939a28f 2022.09.14 aca828a 2022.06.15.2 de0eae1 Only use importlib.resources's new files() / Traversable API on Python ≥3.11 ... b8eb5e9 2022.06.15.1...

dependencies
python

### Subject of the issue When using the `Optional` type hint, I can no longer convert from a json string into the data class. ### Steps to reproduce The following...

bug

### Subject of the issue When using `from __future__ import annotations` ([PEP 563 -- Postponed Evaluation of Annotations](https://www.python.org/dev/peps/pep-0563)) I get Errors of type `TypeError: isinstance() arg 2 must be a...

bug

Currently setting the attributes of a derived class is not typesafe e.g. @dataclass class Position(TypedJsonMixin): x : int y : int p = Position(3, 3) p.x = 1.2 is still...

enhancement

### Subject of the issue Last one for tonight. See example and traceback. ### Steps to reproduce ``` python from typing import Optional from dataclasses import dataclass from typed_json_dataclass import...

### Example program ``` python from typing import List, Dict from dataclasses import dataclass from typed_json_dataclass import TypedJsonMixin @dataclass class Test(TypedJsonMixin): test: List[Dict[str, int]] Test([{'a': 1}, {'b': 2, 'c': 3}])...