763ff02d77
- Update to 2.39: * Fix unintended behaviour where a str could be loaded as list[str]. This is caused by a quirk of python's types. To restore the previous behaviour set iterstr=True * Drop support to python 3.9 * Do not use new syntax in any place. It confuses tooling * Drop support for EOL versions of python * Support typing.ReadOnly * Add support for typing.TypeAliasType (PEP 695) * Add tests to make sure mypy validation works * Fix mypy failure when loading a Literal directly * Remove cloudflare tracking from html documentation once again -_- * Improve documentation * Improve typechecks * Support Required for TypedDict * Make example more current * Fix bug with dumping dataclasses with slots * Improve performance for loading unions of objects #12 * Improve performance for dumping dataclasses #13#14 * Improve performance for loading various types * Fix bug when loading attrs objects with missing attributes, the correct exception is raised #9 * Raise TypeError instead of ValueError when there is a problem with the arguments of the objects This is in line with what python does #9 * Fix bug for dumping object with a ForwardRef to itself #8 * Fix bug where dictionary load would fail if the type for the value wasn't cached already * Move project to Codeberg - Ship LICENSE and README in binary packages.
Steve Kowalik2025-12-11 05:06:50 +00:00
e21ba7c1fc
Accepting request 1171460 from devel:languages:python
Ana Guerrero2024-05-03 17:45:28 +00:00
9a60533367
- update to 2.28: * Add support for uuid.UUID
Dirk Mueller2024-05-02 22:04:59 +00:00
ef7043174a
Accepting request 1140279 from devel:languages:python
Ana Guerrero2024-01-21 22:10:13 +00:00
f9b66ec32d
- update to 2.27: * Add support for re.Patterns
Dirk Mueller2024-01-21 11:12:42 +00:00
ab2c57f98d
Accepting request 1132841 from devel:languages:python
Ana Guerrero2023-12-13 17:36:06 +00:00
53557cbfc5
- update to 2.26: * Update type hints file * Improve performance for loading objects (attrs/dataclasses/NamedTuple) * Improve performance for loading dictionary keys that are basic types * Improve performance for loading dataclasses * Switch performance tests to test against pydantic2 * Drop support to Python 3.7 (which has reached EOL) * Make is_optional slightly faster * Keep track of the index when loading iterables the first time * It makes the normal case slightly slower, and gives massive performance improvements when exceptions are raised. * When loading a string into datetime.date/time/datetime, ISO 8601 is used * When dumping, setting isodates=True dumps an ISO 8601 string instead of a list of ints. The previous behaviour is now deprecated. * Add support for datetime.timedelta. It is dumped as a float representing seconds * Deprecate dump handlers without type hints * Improve performance for dumping, by carrying type hints * Remove jsons and dataclasses-json from benchmarks. * They were too slow to be a useful comparison. * Improve loading time for literals * Support attrs converter * Drop support to Python 3.5 and 3.6 * Improve performance for dumping * Generate pure python wheel * Switch to setuptools
Dirk Mueller2023-12-13 10:20:48 +00:00