Skip to content

Commit

Permalink
fix docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
emcek committed Nov 16, 2024
1 parent 11c27f3 commit c165a42
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/dcspy/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def __bool__(self) -> bool:
@classmethod
def from_control(cls, /, ctrl: Control) -> ControlKeyData:
"""
Construct object based on Control BIOS model.
Construct an object based on Control BIOS Model.
:param ctrl: Control BIOS model
:return: ControlKeyData instance
Expand Down Expand Up @@ -983,11 +983,11 @@ def __init__(self, current: int, max_val: int, step: int = 1) -> None:
"""
Initialize with current and max value.
Default direction is towards max_val.
A default direction is towards max_val.
:param current: current value
:param max_val: maximum value
:param step: step size, 1 by default
:param current: Current value
:param max_val: Maximum value
:param step: Step size, 1 by default
"""
self.current = current
self.step = step
Expand Down Expand Up @@ -1067,7 +1067,7 @@ def is_latest(self, current_ver: str | version.Version) -> bool:
"""
Check if a release is latest.
:param current_ver: string or Version object
:param current_ver: String or Version object
:return: True if the current version is latest, False otherwise
"""
if isinstance(current_ver, str):
Expand Down

0 comments on commit c165a42

Please sign in to comment.