key_must_be_a_string
No overview available.
def key_must_be_a_string(
key: Any
) - > null
Validates that a dictionary key is of type string to ensure compatibility with JSON serialization or specific storage backends.
Parameters
| Name | Type | Description |
|---|---|---|
| key | Any | The dictionary key to be validated for string type compliance. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned if the validation passes. |