class documentation
class TypedSearchAttributes(Collection[
Collection of typed search attributes.
This is represented as an immutable collection of
SearchAttributePair. This can be created passing a sequence of
pairs to the constructor.
Check whether this search attribute contains the given key.
This uses key equality so the key must be the same name and type.
def __getitem__(self, key:
SearchAttributeKey[ SearchAttributeValueType]) -> SearchAttributeValueType:
(source)
¶
Get a single search attribute value by key or fail with KeyError.
def get(self, key:
SearchAttributeKey[ SearchAttributeValueType]) -> SearchAttributeValueType | None:def get(self, key:
SearchAttributeKey[ SearchAttributeValueType], default: temporalio.types.AnyType) -> SearchAttributeValueType | temporalio.types.AnyType:Get an attribute value for a key (or default). This is similar to dict.get.
Copy this collection, replacing attributes with matching key names or adding if key name not present.
