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 have a decorator that wraps a function, so the inputs are both Callable[Params, Return], but I want to change the callable type so that it only accepts functions with a kwargs called foo. I've written the code that looks right, and I can get it to work in some contexts, but when I use it as a wrapper I get an error message.
Bug Report
I have a decorator that wraps a function, so the inputs are both
Callable[Params, Return]
, but I want to change the callable type so that it only accepts functions with a kwargs calledfoo
. I've written the code that looks right, and I can get it to work in some contexts, but when I use it as a wrapper I get an error message.To Reproduce
https://mypy-play.net/?mypy=master&python=3.11&flags=strict&gist=5293d80b80d20f229649788d1c36f3b2
Expected Behavior
This should type check.
Actual Behavior
Your Environment
master
9b91524--strict
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: