Closed as not planned
Description
Bug Report
Even though it fails at runtime, mypy
doesn't complain if I mutate ParamSpec.kwargs
.
To Reproduce
https://mypy-play.net/?mypy=latest&python=3.11&gist=f5cea6637a9ea13c48b8ba75aa8d73dd
If I run this same code in an interpreter, I get
Traceback (most recent call last):
File "/tmp/repro.py", line 16, in <module>
print(bar(foo))
File "/tmp/repro.py", line 13, in bar
return f(*args, **kwargs)
TypeError: foo() got an unexpected keyword argument 'ka'
Expected Behavior
I would expect this to trigger an error on line 12.