You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In holoviz/panel#6912 we are trying to auto-convert Traitlets and Pydantic models to Parameterized models.
When trying to autoconvert Tuples I experience the problem that Params tuples are fixed length while Traitlets and Pydantic are not.
Panel also implements a custom Margin parameter to work around this issue.
I've also many times been hit and surpriced by this so many times at work that I've just stopped using param.Tuple as my tuples are seldom fixed length.
Please enable Tuple to be non-fixed length or provide a NonFixedLengthTuple parameter.
The text was updated successfully, but these errors were encountered:
I think that tuples are way more likely to have a fixed length in a code base so I get why this is the way this was originally implemented. It's a valid feature request anyway.
Params tuples are fixed length while Traitlets and Pydantic are not.
I guess that in Pydantic, that relies on Python typing, a tuple can be defined as fixed length if not defined just as tuple but e.g. as tuple[str, int, bool] which means it should contain an instance of a string, an integer and a boolean, in this order.
In holoviz/panel#6912 we are trying to auto-convert Traitlets and Pydantic models to Parameterized models.
When trying to autoconvert Tuples I experience the problem that Params tuples are fixed length while Traitlets and Pydantic are not.
Panel also implements a custom
Margin
parameter to work around this issue.I've also many times been hit and surpriced by this so many times at work that I've just stopped using
param.Tuple
as my tuples are seldom fixed length.Please enable
Tuple
to be non-fixed length or provide aNonFixedLengthTuple
parameter.The text was updated successfully, but these errors were encountered: