Skip to content

Commit

Permalink
docs: fix inconsistencies in the Common.py class
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandreteles committed Sep 23, 2024
1 parent ad8fa31 commit c238de8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TikTok/Queries/Common.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,14 @@ def _build_json_data(self, json_data: dict[str, Any]) -> dict[str, Any]:
"""
return valfilter(lambda x: x is not None, json_data)

def _build_params(self, params: list[str]) -> str:
def _build_params(self, params: list[str]) -> dict[str, str]:
"""
Converts a list of values into a comma-separated string.
Converts a list of values into a dictionary with a 'fields' key and a comma-separated string value..
Parameters:
params (list[str]): The list of values to be converted into a comma-separated string.
Returns:
str: A comma-separated string of the input values.
dict[str, str]: A dictionary with a 'fields' key and a comma-separated string value.
"""
return {"fields": ",".join(params)}

0 comments on commit c238de8

Please sign in to comment.