-
Notifications
You must be signed in to change notification settings - Fork 4
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
0.6.0 dev #52
Merged
Merged
0.6.0 dev #52
Conversation
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
- cant get around `typing.get_type_hints` failing on `dict[str, int]` style types, event with `typing-extensions` - added some warnings and error checks if the python version is old - got confused by my own code but commented what I could - added some TODO comments - went down some rabbit holes, learned a lot about python :) - that was an adventure
it was junk, never should have been in the repo, but it's there in the commit history to remind me of what exactly goes wrong just in case
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
>=3.8
(Previously only3.10, 3.11
were supported)from __future__ import annotations
in a number of placesvalidate_type
functionSerializableDatclass
actually do type validationSerializableDataclass
and related functionsSerializableField
andserializable_field
to their own fileloading_fn
#40 by addingdeserialize_fn
toSerializableField
array_safe_eq
anddc_eq
tomuutils.json_serialize.util
array_b64_meta
mode tomuutils.json_serialize.array
, works pretty much the same as existingarray_hex_meta
but should take less spaceErrorMode
enum.process()
method which takes a message (and optionally classes for warnings and errors, and anexcept_from
parameter) and decides whether to throw warning, exception, or do nothingmuutils.sys_info
sanitize_name
function withsanitize_fname
andsanitize_identifier
as special casesmuutils.misc
uv
now used to install deps in CI, separate job for checkingpoetry.lock
consistencymake help
for more info