click-plugins
click-plugins copied to clipboard
@with_plugins() causes a type error in PyCharm
Using the @with_plugins()
decorator generates a type error in PyCharm (but not with mypy) when using CliRunner.invoke()
:
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.