Skip to content

Commit

Permalink
Docstring tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
einarf committed Nov 30, 2024
1 parent 04fe9a3 commit cbdc8b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
8 changes: 2 additions & 6 deletions moderngl_window/timers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,12 @@ def time(self, value: float) -> None:

@property
def fps(self) -> float:
"""Get or set the current frames per second.
Returns:
float: The current frames per second
"""
"""Get the current frames per second."""
raise NotImplementedError()

@property
def fps_average(self) -> float:
"""The average fps since the timer was started"""
"""get the average fps since the timer was started"""
raise NotImplementedError()

def next_frame(self) -> tuple[float, float]:
Expand Down
6 changes: 1 addition & 5 deletions moderngl_window/timers/clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ def fps_average(self) -> float:

@property
def fps(self) -> float:
"""Get or set the current frames per second.
Returns:
float: The current frames per second
"""
"""Get the current frames per second."""
return self._fps

def next_frame(self) -> tuple[float, float]:
Expand Down

0 comments on commit cbdc8b3

Please sign in to comment.