Skip to content

Commit

Permalink
Fix comment: allowlist cannot be a plain string.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 665000133
  • Loading branch information
Gin-Config Team authored and copybara-github committed Aug 19, 2024
1 parent 1507860 commit a966a40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gin/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
...
Expand Down Expand Up @@ -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'):
...
Expand Down

0 comments on commit a966a40

Please sign in to comment.