Debian Codegraph @

allauth/socialaccount/providers/amazon_cognito/utils.py

raw
1 from __future__ import annotations
2
3
4 def convert_to_python_bool_if_value_is_json_string_bool(s):
5 if s == "true":
6 return True
7 elif s == "false":
8 return False
9
10 return s