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
I was expecting to be able to use a positional argument for a decorator.
Actual Behavior
Incompatible return value type (
got "Callable[[Arg(Client, 'self'), **P], Coroutine[Any, Any, T]]",
expected "Callable[[Client, **P], Coroutine[Any, Any, T]]") [return-value]mypy(error)
This may be because "decorated" has arguments named: "self"mypy(note)
Your Environment
Mypy version used: 0.981
Mypy command-line flags: --strict it works without it
Mypy configuration options from mypy.ini (and other config files): none
Python version used: 3.10
The text was updated successfully, but these errors were encountered:
Bug Report
Typed decorator with an explicit positional argument result in the error
return-value
To Reproduce
Link to mypy-play
Expected Behavior
I was expecting to be able to use a positional argument for a decorator.
Actual Behavior
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: