-
Notifications
You must be signed in to change notification settings - Fork 802
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
Cannot use FunctionScoreContainer? #1957
Comments
Thanks for raising this. The way The correct code is your first option. The second option could be made to work, but it feels too verbose. I suggest you add a type ignore for now until I correct the type of the |
@miguelgrinberg Thanks for the quick response! |
While trying to upgrade a project to version 8.17, existing code:
outputs:
But mypy complains:
mypy is happy with:
which fails at runtime with:
The text was updated successfully, but these errors were encountered: