Skip to content
New issue

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

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

Already on GitHub? # to your account

Catch too many arguments for properties #3006

Closed
PCManticore opened this issue Jul 15, 2019 · 0 comments
Closed

Catch too many arguments for properties #3006

PCManticore opened this issue Jul 15, 2019 · 0 comments
Labels
Checkers Related to a checker Enhancement ✨ Improvement to a component Good first issue Friendly and approachable by new contributors

Comments

@PCManticore
Copy link
Contributor

For example, this property cannot accept any argument, so we should emit an error about it.

class A:
   @property
   def json(self, **kwargs):
       return kwargs

print(A().json)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Checkers Related to a checker Enhancement ✨ Improvement to a component Good first issue Friendly and approachable by new contributors
Projects
None yet
Development

No branches or pull requests

1 participant