flax
0be60390 - Improve error message when you try to write to a read-only attribute (e.g., a read-only @property).

Commit
3 years ago
Improve error message when you try to write to a read-only attribute (e.g., a read-only @property). The default error message ("can't set attribute") is usually informative enough when combined with a stack trace; but in this case, since we're using __setattr__, it's helpful to tell the user which attribute is causing the problem. PiperOrigin-RevId: 484569827
Author
Committer
Parents
Loading