Closed as not planned
Description
Bug Report
aiomcache/client.py:210:6: error: Argument 1 to "acquire" has incompatible type
"Callable[[FlagClient[_T], Connection, bytes, _U], Coroutine[Any, Any, Union[bytes, _T, _U]]]";
expected
"Callable[[Never, Connection, VarArg(Never), KwArg(Never)], Awaitable[Never]]"
[arg-type]
@acquire
^
aiomcache/client.py:215:6: error: Argument 1 to "acquire" has incompatible type
"Callable[[FlagClient[_T], Connection, bytes, Optional[_U]], Coroutine[Any, Any, Union[bytes, _T, _U, None]]]";
expected
"Callable[[Never, Connection, VarArg(Never), KwArg(Never)], Awaitable[Never]]"
[arg-type]
@acquire
^
aiomcache/client.py:215:6: error: Overloaded function implementation does not
accept all possible arguments of signature 1 [misc]
@acquire
^
https://github.com/aio-libs/aiomcache/actions/runs/6854046166/job/18636163359?pr=359
For some reason, the errors only appear on 1 method, despite the decorator being used in a similar way on several other methods. Which means it's probably difficult to get a minimal reproducer, though the project itself is pretty small.
To Reproduce
Checkout: aio-libs/aiomcache#359
Run: mypy