agronholm / apscheduler

Task scheduling library for Python
MIT License
6.3k stars 712 forks source link

Is typo in _context.py? #956

Closed mywaiting closed 3 months ago

mywaiting commented 3 months ago

Things to check first

Version

master/v4.0-pre-release

What happened?

when I read the source in this repo master branch, I found the code in src/apscheduler/_context.py


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

Is typo here? maybe as follow:


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

If there is typo here, I will pull request and fix this.

thanks for creating this awesome tool that make things easier

How can we reproduce the bug?

Just typo maybe, no need further code to reproduce the bug

agronholm commented 3 months ago

Fixed it, thanks for the heads up.