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

Add noargs_command decorator to __call__ magic method #3

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amotl
Copy link
Contributor

@amotl amotl commented Nov 24, 2022

About

The code works without issues, tests succeed.

However, when putting a Python decorator on a __call__ magic method, CodeQL will raise a false positive notice that the code would be calling a non-callable. The corresponding rule is py/call-to-non-callable.

Thoughts

Is there a way to annotate such code that CodeQL will accept it without further ado?

References

@amotl amotl force-pushed the py/call-to-non-callable branch from 3863795 to e082801 Compare November 24, 2022 09:36
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

Successfully merging this pull request may close these issues.

1 participant