Skip to content

Commit

Permalink
Convert 'enable' to a keyword-only arg to align it with several other…
Browse files Browse the repository at this point in the history
… methods with a similar signature
  • Loading branch information
heuer committed Mar 16, 2024
1 parent 7a0cbaa commit b81839b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wlroots/wlr_types/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def test(self) -> bool:
"""
return lib.wlr_output_test(self._ptr)

def enable_adaptive_sync(self, enable: bool = True) -> None:
def enable_adaptive_sync(self, *, enable: bool = True) -> None:
"""
Enables or disables adaptive sync (ie. variable refresh rate) on this
output. On some backends, this is just a hint and may be ignored.
Expand Down

0 comments on commit b81839b

Please sign in to comment.