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
aiomcache/client.py:156: error: Overloaded function implementation does not accept all possible arguments of signature 1 [misc]
aiomcache/client.py:156: error: Overloaded function implementation does not accept all possible arguments of signature 2 [misc]
If I move the @acquire before the first overload, then no type errors are produced (but, the code is now broken).
It seems like @overload is not working well with a decorator typed with Concatenate/ParamSpec.
Decorator is typed as:
def acquire(func: Callable[Concatenate[_Client, Connection, _P], Awaitable[_T]]) -> Callable[Concatenate[_Client, _P], Awaitable[_T]]:
The a method with overloads is like:
Which then gives:
If I move the
@acquire
before the first overload, then no type errors are produced (but, the code is now broken).Code available at: https://github.com/aio-libs/aiomcache/blob/master/aiomcache/client.py#L159
The text was updated successfully, but these errors were encountered: