Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APScheduler class initialisation #249

Open
savchenko opened this issue Jul 17, 2024 · 1 comment
Open

APScheduler class initialisation #249

savchenko opened this issue Jul 17, 2024 · 1 comment

Comments

@savchenko
Copy link

savchenko commented Jul 17, 2024

Widely referenced pattern with scheduler.app.app_context() causes extensive linter warnings.

Using the included application factory example:

image

Seems live the linter doesn't recognise the None replaced after the init_app():

I think this is what is happening:
image

@savchenko savchenko changed the title scheduler.app.app_context() doesn't exist APScheduler class initialisation Jul 17, 2024
@savchenko
Copy link
Author

Here is a relevant answer from @erictraut: microsoft/pyright#8450 (reply in thread)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant