Add pydocstyle to the ruff rules (#52136)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Signed-off-by: Harry Mellor <hej.mellor@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
804e5377aa
commit
8c1557a79c
@@ -98,7 +98,8 @@ class WorkerProfiler(ABC):
|
||||
|
||||
def step(self) -> None:
|
||||
"""Update the profiler state at each worker step,
|
||||
to handle delayed starts and max iteration limits."""
|
||||
to handle delayed starts and max iteration limits.
|
||||
"""
|
||||
if not self._active:
|
||||
return
|
||||
|
||||
@@ -138,6 +139,7 @@ class WorkerProfiler(ABC):
|
||||
Returns:
|
||||
True if the step was an active profiling step (data recorded),
|
||||
False if the step was a warmup step (data discarded).
|
||||
|
||||
"""
|
||||
return True
|
||||
|
||||
@@ -354,6 +356,7 @@ class TorchProfilerWrapper(WorkerProfiler):
|
||||
Returns:
|
||||
True if the step was an active profiling step (data recorded),
|
||||
False if the step was a warmup step (data discarded).
|
||||
|
||||
"""
|
||||
if self._uses_schedule:
|
||||
self.profiler.step()
|
||||
|
||||
Reference in New Issue
Block a user