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
What exactly is your use case for indexing P.args? My understanding was the point of a ParamSpec was to pass it through unchanged to another function without looking at any specific argument because it's meant to be a stand-in for any possible set of function arguments.
That means that there's not much you can do with whatever argument you select from args anyways, considering that args[0] can be any type depending on what function the decorator is applied to (and might not even exist if the function doesn't have positional arguments).
Please consider
then
I would expect no error, as
args
is indexable actually.Mypy 0.930, Python 3.10.1
The text was updated successfully, but these errors were encountered: