Skip to content

Commit 391bcd7

Browse files
committed
Add docstring
1 parent ef4a55c commit 391bcd7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sonar/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ def decode(setting_key: str, setting_value: any) -> any:
551551

552552

553553
def encode(setting: Setting, setting_value: any) -> dict[str, str]:
554+
"""Encodes the params to pass to api/settings/set according to setting value type"""
554555
if isinstance(setting_value, list):
555556
params = {"values": setting_value} if isinstance(setting_value[0], str) else {"fieldValues": [json.dumps(v) for v in setting_value]}
556557
elif isinstance(setting_value, bool):

0 commit comments

Comments
 (0)