Rule request: Warn whenever any default value is provided in __post_init__ #13128
Labels
accepted
Ready for implementation
help wanted
Contributions especially welcome
rule
Implementing or modifying a lint rule
Default values should not be given in the arguments of
__post_init__
. They should only be provided as default values for class-level init-only member variables.The above text could be used for the Ruff rule warning message.
The text was updated successfully, but these errors were encountered: