Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chancy/executors/asyncex.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __len__(self):

async def _job_wrapper(self, job: QueuedJob):
try:
func, kwargs = Executor.get_function_and_kwargs(job)
func, kwargs = self.get_function_and_kwargs(job)
if not asyncio.iscoroutinefunction(func):
raise ValueError(
f"Function {job.func!r} is not an async function, which is"
Expand Down
4 changes: 2 additions & 2 deletions chancy/executors/sub.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"The SubInterpreterExecutor requires Python 3.13 or later."
)

from chancy.executors.base import Executor, ConcurrentExecutor
from chancy.executors.base import ConcurrentExecutor
from chancy.job import QueuedJob, Limit


Expand Down Expand Up @@ -105,7 +105,7 @@ def job_wrapper(cls, job: QueuedJob) -> tuple[QueuedJob, Any]:
executor. It's responsible for setting up necessary limits,
running the job, and returning the result.
"""
func, kwargs = Executor.get_function_and_kwargs(job)
func, kwargs = cls.get_function_and_kwargs(job)

time_limit = next(
(
Expand Down
4 changes: 2 additions & 2 deletions chancy/executors/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import functools
from typing import Any

from chancy.executors.base import Executor, ConcurrentExecutor
from chancy.executors.base import ConcurrentExecutor
from chancy.job import QueuedJob, Limit


Expand Down Expand Up @@ -60,7 +60,7 @@ def job_wrapper(self, job: QueuedJob) -> tuple[QueuedJob, Any]:
executor. It's responsible for setting up necessary limits,
running the job, and returning the result.
"""
func, kwargs = Executor.get_function_and_kwargs(job)
func, kwargs = self.get_function_and_kwargs(job)

time_limit = next(
(
Expand Down
Loading