Skip to content

Commit

Permalink
bugfix setup with args
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianPugh committed Mar 13, 2023
1 parent 5852129 commit fceaa2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion belay/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def setup(
""" # noqa: D400
if f is None:
return wraps_partial(Device.setup, autoinit=autoinit, **kwargs) # type: ignore[reportGeneralTypeIssues]
if signature(f).parameters:
if signature(f).parameters and autoinit:
raise ValueError(
f"Method {f} decorated with "
'"@Device.setup(autoinit=True)" '
Expand Down

0 comments on commit fceaa2e

Please sign in to comment.