Skip to content

fix(qblox): remove dead condition in _apply_parameters#23

Merged
Tinitto merged 1 commit into
sopherapps:mainfrom
ch-ahindura:hotfix/dead-condition-in-qblox-apply-parameters
Jul 21, 2026
Merged

fix(qblox): remove dead condition in _apply_parameters#23
Tinitto merged 1 commit into
sopherapps:mainfrom
ch-ahindura:hotfix/dead-condition-in-qblox-apply-parameters

Conversation

@ch-ahindura

Copy link
Copy Markdown
Contributor

The callable(attribute) and not hasattr(attribute, "__class__") clause was always False since every object has class, making it dead code that obscured the real branch condition. The condition now only checks hasattr(attribute, "__call__") and not isinstance(attribute, (int, float, str, bool)), matching the existing runtime behavior.

Closes #13

The `callable(attribute) and not hasattr(attribute, "__class__")`
clause was always False since every object has __class__, making
it dead code that obscured the real branch condition. The
condition now only checks `hasattr(attribute, "__call__") and not
isinstance(attribute, (int, float, str, bool))`, matching the
existing runtime behavior.

Closes sopherapps#13
@Tinitto
Tinitto merged commit df92baa into sopherapps:main Jul 21, 2026
25 checks passed
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.

QPI-driver: dead condition in qblox apply parameters

2 participants