click-plugins icon indicating copy to clipboard operation
click-plugins copied to clipboard

@with_plugins() causes a type error in PyCharm

Open abey79 opened this issue 2 years ago • 0 comments

Using the @with_plugins() decorator generates a type error in PyCharm (but not with mypy) when using CliRunner.invoke():

image

In the above code, removing the @with_plugins() decorator also removes the type error.

This is obviously a minor issue since mypy doesn't generate an error (so CI pipeline are fine), but since CliRunner is widely used in tests, it would be nice if this type error could be suppressed.

abey79 avatar Jan 31 '22 11:01 abey79