Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@with_plugins() causes a type error in PyCharm #35

Open
abey79 opened this issue Jan 31, 2022 · 0 comments
Open

@with_plugins() causes a type error in PyCharm #35

abey79 opened this issue Jan 31, 2022 · 0 comments

Comments

@abey79
Copy link

abey79 commented Jan 31, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant