holoviz / holoviz/param

Do Lists support `allow_None`?

Open
#694 0 comments 0 reactions 0 assignees View on GitHub
type-bug
Dominant language
Python
Stars
521
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
35

Description

The [docs on Lists](https://param.holoviz.org/user_guide/Parameter_Types.html#lists) say that:

> Because List parameters already have an empty value ([]), they do not support `allow_None`.

However that appears to be not quite true? Is that a documentation issue?

```python
import param

class P(param.Parameterized):
l = param.List(allow_None=True)

p = P()

print(p.l, p.param.l.allow_None)
# [] True

p.l = None
assert p.l is None
```

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.