[Config] Prevent registering defaults for inaccessible identifiers #6290
Labels
Category: Core - API - Config
This is related to the `redbot.core.config` module and `redbot.core.drivers` package.
Status: In Progress
There's a PR open to deal with this, or an org member is working on this internally
Type: Enhancement
Something meant to enhance existing Red features.
What component of Red (cog, command, API) would you like to see improvements on?
Config
Describe the enhancement you're suggesting.
When registering defaults, we already check that the key is not a Python identifier, however we do not ever check whether the key is an existing attribute of
Group
orValue
that will cause the__getattr__
method to never be called. Examples include:default
defaults
identifier_data
is_value
And more!
A similar check should be added to ensure the key is actually going to be accessible, in order to prevent confusion.
Anything else?
No response
The text was updated successfully, but these errors were encountered: