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
427 stars 73 forks source link

Warn instead or raise an error when doing an action before Parameterized initialization #838

Closed maximlt closed 1 year ago

maximlt commented 1 year ago

https://github.com/holoviz/param/pull/834 added a few checks for preventing users from calling unsafe methods before a Parameterized instance has fully been initialized. This broke the hvPlot Explorer and is likely to break quite a lot of code, in particular for users who aren't so aware of the importance and meaning of calling super().__init__(). I propose with this PR to downgrade these errors to warnings, to FutureWarnings in particular that will always be surfaced to users, as they're likely to be shooting themselves in the foot and we want to let them know about it.