-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Union type support #87
Commits on Feb 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 5fdb76a - Browse repository at this point
Copy the full SHA 5fdb76aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 434edf6 - Browse repository at this point
Copy the full SHA 434edf6View commit details -
Configuration menu - View commit details
-
Copy full SHA for e86b345 - Browse repository at this point
Copy the full SHA e86b345View commit details -
wip: use own is_instance for se
* passing union args per serde scope to rendered union function * spliting is_instance into multiple functions & rendering the correct one will be faster
Configuration menu - View commit details
-
Copy full SHA for af84ab3 - Browse repository at this point
Copy the full SHA af84ab3View commit details
Commits on Feb 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e48c770 - Browse repository at this point
Copy the full SHA e48c770View commit details -
chore: replace typecheck with is_instance
* is_instance takes some shortcuts to increase performance, like only checking the 1st element of lists * typecheck was only used in tests
Configuration menu - View commit details
-
Copy full SHA for a86d9b4 - Browse repository at this point
Copy the full SHA a86d9b4View commit details -
test: fix deserializing test by reordering types in union
To be more performant we just try to deserialize instead of checking types, this means the order of types in unions is important. More complex types should be tried first, otherwise simple types will prematurely match.
Configuration menu - View commit details
-
Copy full SHA for 36c7095 - Browse repository at this point
Copy the full SHA 36c7095View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a3c384 - Browse repository at this point
Copy the full SHA 4a3c384View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1210fe1 - Browse repository at this point
Copy the full SHA 1210fe1View commit details
Commits on Feb 25, 2021
-
refactor: use __serde__ as scope for everything
* use a typed dataclass as container for serde internals * removed more_types.py & the custom serializer code. Unkown type exception has now own function.
7Configuration menu - View commit details
-
Copy full SHA for 431c914 - Browse repository at this point
Copy the full SHA 431c914View commit details
Commits on Feb 26, 2021
-
fix: scope should not be shared between classes
class inheritance caused overwriting of scope values
Configuration menu - View commit details
-
Copy full SHA for 889ada1 - Browse repository at this point
Copy the full SHA 889ada1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8deaa3a - Browse repository at this point
Copy the full SHA 8deaa3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e8d2e5 - Browse repository at this point
Copy the full SHA 5e8d2e5View commit details -
fix: use iter_unions to recursively collect all unions of dataclass
thanks tomlfile example, otherwise I had not noticed it
Configuration menu - View commit details
-
Copy full SHA for 577aeb9 - Browse repository at this point
Copy the full SHA 577aeb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a973f9 - Browse repository at this point
Copy the full SHA 3a973f9View commit details
Commits on Mar 1, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e02e1ee - Browse repository at this point
Copy the full SHA e02e1eeView commit details