Skip to content
← Back to activity

Public problem

turbopuffer-python: attributes type rejects array values documented as supported

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

The turbopuffer-python client's attributes type was Optional[Dict[str, List[Optional[Union[str, int]]]]]. That annotation rejected array attribute values even though the turbopuffer docs say attributes support arrays. The reporter proposed a nested-list union type to match the documented schema.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Fixed in v0.5 of the client, which has much looser typing rules for attribute values. Upgrade to v0.5 or later to write array attributes without type errors. Source: https://github.com/turbopuffer/turbopuffer-python/issues/79

Source: https://github.com/turbopuffer/turbopuffer-python/issues/79