Skip to content

Conversation

@domire8
Copy link
Member

@domire8 domire8 commented Apr 23, 2025

Description

This PR modifies the component interfaces in Python in a way that there is a check for the return values of callbacks that are expected to be overridden. This allows better logging for the case where a user might forget to return a bool. Also, to close #205, I catch attribute errors on validate_parameter and log an error to help the user debug the component.

Review guidelines

Estimated Time of Review: 10 minutes

Checklist before merging:

  • Confirm that the relevant changelog(s) are up-to-date in case of any user-facing changes

yrh012
yrh012 previously approved these changes Apr 23, 2025
Copy link

@yrh012 yrh012 left a comment

Choose a reason for hiding this comment

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

Nice! Looks good to me 👍

bpapaspyros
bpapaspyros previously approved these changes Apr 24, 2025
Copy link
Member

@eeberhard eeberhard left a comment

Choose a reason for hiding this comment

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

Looks good, only comments on language and wording

@M-Morris-95
Copy link

Looks good to me

@domire8 domire8 merged commit 988660b into main Apr 24, 2025
4 checks passed
@domire8 domire8 deleted the feat/cb-return-values branch April 24, 2025 07:35
@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add note about validating parameters with class attributes

5 participants