Skip to content

Commit

Permalink
Fix broken @Device.teardown() from copy/paste error.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianPugh committed Feb 14, 2023
1 parent 89791c3 commit a22818d
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 @@ -747,7 +747,7 @@ def teardown(f=None, **kwargs) -> Callable:
Defaults to ``True``.
""" # noqa: D400
if f is None:
return wraps_partial(Device.setup, **kwargs) # type: ignore[reportGeneralTypeIssues]
return wraps_partial(Device.teardown, **kwargs) # type: ignore[reportGeneralTypeIssues]

if signature(f).parameters:
raise ValueError(
Expand Down

0 comments on commit a22818d

Please sign in to comment.