Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pliner committed Sep 7, 2024
1 parent 08cb3a3 commit d70b481
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions aio_background/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import collections
import re
import sys
from typing import Tuple

from .job import Job # noqa
from .run import combine, run, run_by_cron, run_periodically # noqa
from .job import Job
from .run import combine, run, run_by_cron, run_periodically

__all__: Tuple[str, ...] = (
__all__: tuple[str, ...] = (
# job.py
"Job",
# run.py
Expand Down
3 changes: 1 addition & 2 deletions aio_background/job.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import abc
import asyncio
from typing import Collection


class Job(abc.ABC):
Expand Down Expand Up @@ -36,7 +35,7 @@ async def close(self, *, timeout: float = 0.5) -> bool:
class CombinedJob(Job):
__slots__ = ("__jobs",)

def __init__(self, jobs: Collection[Job]):
def __init__(self, jobs: tuple[Job, ...]):
self.__jobs = jobs

@property
Expand Down

0 comments on commit d70b481

Please sign in to comment.