Closed asvetlov closed 1 year ago
Hi @asvetlov glad to see you.
This is really useful fix for me, but it not keeps the project code style. So the linter job has been failed.
Released in aio-pika==9.0.6
@mosquito sorry, I didn't find a way to execute linters locally. Next time I know what to do :)
@asvetlov just run poetry run pylama && poetry run mypy
.
Ok, thanks for letting me know
The master assumes that the message should be checked for not-none even if
fail=True
(default) and None is never returned.The proposal avoids the need for such asserts by using
typing.Literal
and method overloads.