-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
V0.34: support recursive types and end-to-end (E2E) support for `byte…
…s` and `bytearray` (#171) * `v1`: Support recursive types and bytes * show deprecation warning for `debug_enabled` * add test case for `bytes` and `bytearray` * Performance fixes and updates * `load_to_str`: Support subclass of `str` * `load_to_str`: minor perf. fix, skip `None` check if in `Optional` * `load_to_int`: Support subclass of `int` * `load_to_float`: Support subclass of `float` * `load_to_bool`: minor perf. fix, inline rather than call `as_bool` * `load_to_bytearray`: Support subclass of `bytearray` * `load_to_uuid`: Support subclass of `UUID` * `load_to_decimal`: Support subclass of `Decimal` * `load_to_path`: Support subclass of `Path` * `load_to_timedelta`: Support subclass of `timedelta` * `time`, `date`, `datetime`: perf. fix, inline `fromisoformat` * Add test cases for `LiteralString`, `Decimal`, `Path`, `None`, `Enum` * code cleanup and add tests for `StrEnum` and `IntEnum` * minor code refactor * don't need to register load hook for `Enum` * code cleanup * fix return type * optimize `load_to_named_tuple` * optimize named tuple de-ser, need to add tests * change name to `recursive_guard` * refactor code * refactor code to use decorators.py * code cleanup * update benchmarks and tests * add test for Literal recursive * make "load to NamedTuple" recursive * make "load to TypedDict" recursive * move `dataclasses-json` to slower pakages * fixing typing issues * Support `TypeAliasType` and recursive `Union` in `load_to_union` * Add support for `TypeAliasType` (e.g. `type` statement in Python 3.12+) * Support recursive `Union` in `load_to_union` * Update `make check` to replace version in `README.rst` * move Python 3.12 specific tests to test_union_as_type_alias_recursive.py * fix * fix * fix * fix * fix * fix * Add docs on "Recursive Types" * Update docs on "Recursive Types" * Merge sections together * Update docs on "Supported Types" * Update docs on "Supported Types" * Update docs on "Supported Types" * update HISTORY.rst * update HISTORY.rst
- Loading branch information
Showing
40 changed files
with
1,666 additions
and
659 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.