-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
New "Must not defer during final iteration" crash #14565
Labels
Comments
Okay, here's a minimised repro:
|
And slightly simpler: from typing import Callable, TypeVar
from typing_extensions import Concatenate, ParamSpec
_P = ParamSpec("_P")
_ContextT = TypeVar("_ContextT", bound="Context")
_MaybeAwaitable = Callable[_P, bool]
_ErrorHookSig = _MaybeAwaitable[Concatenate[_ContextT, _P], bool]
def add_on_error(callback: _ErrorHookSig[_ContextT, ...]) -> None:
raise NotImplementedError
class Context: ... |
JukkaL
pushed a commit
that referenced
this issue
Feb 1, 2023
Fixes #14565 The fix looks simple, looks like an obvious omission.
ilinum
pushed a commit
to ilinum/mypy
that referenced
this issue
Feb 2, 2023
Fixes python#14565 The fix looks simple, looks like an obvious omission.
hauntsaninja
pushed a commit
that referenced
this issue
Feb 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crash Report
It looks like mypy has started crashing on one of the mypy_primer projects, https://github.com/FasterSpeeding/Tanjun (after the latest commit to that project). I noticed this in #14238 (comment)
mypy 0.991 does not crash on the project. I've bisected the crash to #14159 cc @ilevkivskyi
The crash is caused by the latest commit to the project: FasterSpeeding/Tanjun@942b8b4
Traceback
To Reproduce
The text was updated successfully, but these errors were encountered: