Skip to content

Warn if .param accessed without super call #1071

@jlstevens

Description

@jlstevens

This is a mistake I am sure a lot of users can get confused by as shown in this screenshot. While this example uses panel, the principles are all based on param:

Image

Cell 3 doesn't update the Markdown where the mistake is that super() wasn't called in the __init__ of the parameterized class.

It would be very helpful if a warning could be issued if super() hasn't been called. Here I believe bind is watching the class parameter instead - if using the .param accessor warned when the object hasn't been properly initialized, that might be quite helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions