mirror of
https://github.com/django-components/django-components.git
synced 2025-09-26 15:39:08 +00:00
refactor: replace isort, black and flake8 with ruff
This commit is contained in:
parent
8b9b93787f
commit
53a5804706
128 changed files with 3069 additions and 2594 deletions
|
@ -1,8 +1,10 @@
|
|||
from typing import Any
|
||||
|
||||
from asv_runner.benchmarks.timeraw import TimerawBenchmark, _SeparateProcessTimer
|
||||
|
||||
|
||||
# Fix for https://github.com/airspeed-velocity/asv_runner/pull/44
|
||||
def _get_timer(self, *param):
|
||||
def _get_timer(self: Any, *param: Any) -> _SeparateProcessTimer:
|
||||
"""
|
||||
Returns a timer that runs the benchmark function in a separate process.
|
||||
|
||||
|
@ -16,7 +18,7 @@ def _get_timer(self, *param):
|
|||
"""
|
||||
if param:
|
||||
|
||||
def func():
|
||||
def func() -> Any:
|
||||
# ---------- OUR CHANGES: ADDED RETURN STATEMENT ----------
|
||||
return self.func(*param)
|
||||
# ---------- OUR CHANGES END ----------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue