-
-
Notifications
You must be signed in to change notification settings - Fork 10
Allow frozenset in attributes parameter of clean function #29
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
Comments
also |
The |
Adding support for |
Thank you! Do you think it's possible to add support of MappingProxyType? As I understand it's only way to have read-only dictionaries without adding third-party libraries. |
Should be possible now that PyO3/pyo3#4644 is merged, will try to add support for it in |
Now it's
dict[str, set[str]]
, and attempt to usefrozenset
will returnbut IMO using
frozenset
is a good practice, because if data is immutable good to use immutable type, for example allowed attributes can be defined in configuration and it's safer to use immutable type.The text was updated successfully, but these errors were encountered: