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

[Bug] Bug with classes #42

Closed
mostafa-abdullah opened this issue Jul 20, 2017 · 1 comment
Closed

[Bug] Bug with classes #42

mostafa-abdullah opened this issue Jul 20, 2017 · 1 comment
Labels

Comments

@mostafa-abdullah
Copy link
Contributor

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)

@caterinaurban
Copy link
Owner

This issue was moved to caterinaurban/Typpete#3

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

No branches or pull requests

2 participants