diff --git a/gin/config.py b/gin/config.py index 170ecb9..5e060aa 100644 --- a/gin/config.py +++ b/gin/config.py @@ -1762,7 +1762,7 @@ def some_configurable_function(param1, param2='a default value'): The decorator can be supplied with parameters to specify the configurable name or supply an allowlist/denylist: - @config.configurable('explicit_configurable_name', allowlist='param2') + @config.configurable('explicit_configurable_name', allowlist=['param2']) def some_configurable_function(param1, param2='a default value'): ... @@ -1891,7 +1891,7 @@ def some_configurable_function(param1, param2='a default value'): The decorator can be supplied with parameters to specify the name used to register or supply an allowlist/denylist: - @config.register('explicit_name', allowlist='param2') + @config.register('explicit_name', allowlist=['param2']) def some_configurable_function(param1, param2='a default value'): ...