Helper function to recursively determine if any key in a dictionary is not a string.
(d)
| 1013 | |
| 1014 | |
| 1015 | def key_not_string(d): |
| 1016 | """Helper function to recursively determine if any key in a |
| 1017 | dictionary is not a string. |
| 1018 | """ |
| 1019 | for k, v in d.items(): |
| 1020 | if not isinstance(k, str) or (isinstance(v, dict) and key_not_string(v)): |
| 1021 | return True |
| 1022 | |
| 1023 | |
| 1024 | def key_starts_with_dollar(d): |