ContextVariablesName | Description |
---|---|
data | Type: dict[str, typing.Any] | None Default: None |
**kwargs | Type: Any |
Name | Description |
---|---|
data | Dictionary of key-value pairs Type: dict[str, typing.Any] |
Type | Description |
---|---|
ContextVariables | New ContextVariables instance |
Name | Description |
---|---|
key | The key to check Type: str |
Type | Description |
---|---|
bool | True if the key exists, False otherwise |
Name | Description |
---|---|
key | The key to retrieve Type: str |
default | The default value to return if key is not found Type: Any | None Default: None |
Type | Description |
---|---|
Any | None | The value associated with the key or default if not found |
Type | Description |
---|---|
Iterable[tuple[str, Any]] | An iterable of all key-value pairs |
Type | Description |
---|---|
Iterable[str] | An iterable of all keys |
Name | Description |
---|---|
key | The key to remove Type: str |
Type | Description |
---|---|
bool | True if the key was removed, False if it didn’t exist |
Name | Description |
---|---|
key | The key to set Type: str |
value | The value to store Type: Any |
Type | Description |
---|---|
dict[str, typing.Any] | Dictionary representation of all context variables |
Name | Description |
---|---|
other | Dictionary containing key-value pairs to add Type: dict[str, typing.Any] |
Type | Description |
---|---|
Iterable[Any] | An iterable of all values |