google / google/gin-config

Set avoid_class_mutation to True everywhere

Open
#187 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.2k
Forks
122
Avg merge
5d 10h
Merged PRs (30d)
2

Description

## Question

I came across the `avoid_class_mutation` kwarg in the definition of `_make_configurable`.

When would it be best to use one or the other option?

This parameter is also not exposed to the register and configurable decorators and has different defaults there (True for register, False for configurable). Is there a reason for it? Maybe it'd be good to expose it at least give the choice to the user ?

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.