| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
I need to rethink this because this does not raise an error when a frozen dataclass Callable method is mutated. |
Sorry, something went wrong.
|
OK I think I've fixed it so that propertized callables are not writable when frozen. This PR should be ready for review |
Sorry, something went wrong.
|
Fixed linting error |
Sorry, something went wrong.
|
Needs a rebase then I will merge. |
Sorry, something went wrong.
|
I fixed the merge conflict |
Sorry, something went wrong.
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
Fixes: #12312
Related: #10292
Callable attributes of a frozen=True dataclass were not being handled correctly: Callable attributes were being propertized if the dataclass was not frozen.
This change will always propertize Callable attributes before optionally freezing attributes in the dataclass plugin.
Test Plan
Added a test for Callable types in a frozen dataclass to test-data/unit/check-dataclasses.test