You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the code below, decorator_pass works fine while decorator_fail fails. The only difference between the two is that I extracted Callable[[Method[C, P, T]], Method[C, P, T]] into its own variable (a generic type alias, if I am not mistaken).
I had expected this to be a duplicate of #11855, but that one is presumably fixed now.
Bug Report
In the code below,
decorator_pass
works fine whiledecorator_fail
fails. The only difference between the two is that I extractedCallable[[Method[C, P, T]], Method[C, P, T]]
into its own variable (a generic type alias, if I am not mistaken).I had expected this to be a duplicate of #11855, but that one is presumably fixed now.
To Reproduce
https://mypy-play.net/?mypy=latest&python=3.11&gist=077268582efbbbc19e671b7477cdadda
Expected Behavior
No error
Actual Behavior
Your Environment
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: