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
When using a parameterized class methods that are not explicitly annotated with .depends my understanding is that they implicitly depend on all class parameters. Thus I should be able to use them as references just as methods marked with .depends.
It works without the using Tabulator or if I .depends on the value.
The text was updated successfully, but these errors were encountered:
MarcSkovMadsen
changed the title
AttributeError: 'function' object has no attribute 'index'
Cannot use method of Parameterized class as reference with Tabulator
Apr 10, 2024
philippjfr
changed the title
Cannot use method of Parameterized class as reference with Tabulator
Should methods on Parameterizeds be treated as references by default
Apr 10, 2024
Reference resolution happens at the param level so I've transferred this for now and marked it as a discussion point. @MarcSkovMadsen is correct that in other scenarios we do treated un-annotated methods as if they depended on all parameters so making them valid references would be consistent.
Does anyone remember the rationale for this behavior?
Yes, @jbednar strongly argued that it would be easy to forget to declare the dependencies so this was the safe default behavior. I've wavered on this in the past but think generally it was the right default behavior.
panel==1.4.1
When using a parameterized class methods that are not explicitly annotated with
.depends
my understanding is that they implicitly depend on all class parameters. Thus I should be able to use them as references just as methods marked with.depends
.I cannot when using Tabulator.
It works without the using Tabulator or if I
.depends
on thevalue
.The text was updated successfully, but these errors were encountered: