Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

maximlt
Copy link
Member

@maximlt maximlt commented Sep 22, 2023

#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.

@maximlt maximlt requested a review from philippjfr September 22, 2023 09:21
Copy link
Member

@philippjfr philippjfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with this, thank you!

@maximlt maximlt merged commit 99bc573 into main Sep 22, 2023
10 checks passed
@maximlt maximlt deleted the downgrade_to_warning branch September 22, 2023 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants