I seem to get this error often. Iā€™m trying `hyper_...
# flytekit
g
I seem to get this error often. Iā€™m trying
hyper_parameters: Tuple[int, int, float, float, float]
Copy code
raise RestrictedTypeError(f"Transformer for type {self.python_type} is restricted currently")
flytekit.core.type_engine.RestrictedTypeError: Transformer for type <class 'tuple'> is restricted currently
k
Tuple is a restricted type
Can you use dataclass or something
g
Of course! Was curious about the "restricted currently" - will this always be the case for tuples?
k
I think we will support in the future
šŸ™ 1
But no plans, unless you can contribute šŸ˜Š
175 Views