Skip to content

Commit

Permalink
using isinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
alon-p committed Jul 1, 2024
1 parent 94fd258 commit bd2ad92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphql_query/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def _render_for_list_str(name: str, value: List[str]) -> str:
clean_list = []
for item in value:
result = item.replace('"', '').split(',')
if type(result) is list:
if isinstance(result, list):
trimmed_result = [i.strip() for i in result]
clean_list.extend(trimmed_result)
else:
Expand Down

0 comments on commit bd2ad92

Please sign in to comment.