Skip to content

Commit

Permalink
Fixed type-checker imports of (Async)Scheduler
Browse files Browse the repository at this point in the history
Fixes #956.
  • Loading branch information
agronholm committed Aug 12, 2024
1 parent 5857cac commit 8ed2b1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apscheduler/_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._schedulers.async_ import AsyncScheduler
from ._schedulers.sync import Scheduler
from ._structures import Job
from .schedulers.async_ import AsyncScheduler
from .schedulers.sync import Scheduler

#: The currently running (local) scheduler
current_scheduler: ContextVar[Scheduler | None] = ContextVar(
Expand Down

0 comments on commit 8ed2b1b

Please sign in to comment.