We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current inference allows class methods to be called as normal calls with passing the first argument as the class instance.
For example, the current is allowed (which shouldn't be)
class A: def f(self): instance = A() return f(instance)
And accordingly, the following is not allowed (Which should be):
def f(): return 1 class A: def f(self): return f()
Because the inference confuses the function call f() with the method f(self)
f()
f(self)
The text was updated successfully, but these errors were encountered:
This issue was moved to caterinaurban/Typpete#3
Sorry, something went wrong.
No branches or pull requests
The current inference allows class methods to be called as normal calls with passing the first argument as the class instance.
For example, the current is allowed (which shouldn't be)
And accordingly, the following is not allowed (Which should be):
Because the inference confuses the function call
f()
with the methodf(self)
The text was updated successfully, but these errors were encountered: