holoviz / param

Param: Make your Python code clearer and more reliable by declaring Parameters
https://param.holoviz.org
BSD 3-Clause "New" or "Revised" License
412 stars 69 forks source link

Add `is_instance` attribute to `Param.List` #868

Open maximlt opened 9 months ago

maximlt commented 9 months ago

There's currently no way to validate that the items in a param.List are a subclass of a given class, it's assumed they are all instance objects of item_type. I suggest adding the attribute is_instance=False similarly to ClassSelector.