https://flyte.org logo
g

Greg Gydush

04/29/2022, 7:29 PM
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

Ketan (kumare3)

04/30/2022, 4:59 AM
Tuple is a restricted type
Can you use dataclass or something
g

Greg Gydush

04/30/2022, 2:00 PM
Of course! Was curious about the "restricted currently" - will this always be the case for tuples?
k

Ketan (kumare3)

04/30/2022, 9:24 PM
I think we will support in the future
šŸ™ 1
But no plans, unless you can contribute 😊
12 Views