holoviz / holoviz/param

ParamOverrides seem to be broken

Open
#85 7 comments 0 reactions 1 assignee Claimed by @jlstevens View on GitHub
component: type/value stuff type-bug
Dominant language
Python
Stars
521
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
35

Description

Surely, `ParamOverrides` shouldn't be allow this?

``` python
import param

class Foo(param.ParameterizedFunction):
a = param.String('bar')
b = param.Boolean()

def __call__(self, **params):
print param.ParamOverrides(self,params)
```

``` python
>>> Foo(a=slice, b=3)
{'a': , 'b': 3} overriding params from Foo(a='bar', b=False, name='Foo')
```

Shouldn't the types be checked? Otherwise what is the point of `ParamOverrides`?

Maybe I am just getting confused and I just don't understand what `ParamOverrides` are for...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.