16 lines
299 B
Python
16 lines
299 B
Python
from typing import Literal, TypedDict
|
|
|
|
AttributeValueTypeLiteral = Literal[
|
|
"string",
|
|
"integer",
|
|
"float",
|
|
"boolean",
|
|
"array",
|
|
"object",
|
|
]
|
|
|
|
|
|
class FilterableAttribute(TypedDict):
|
|
attribute_name: str
|
|
possible_values: list[str]
|
|
value_type: AttributeValueTypeLiteral
|