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

Method must have at least one argument [misc] #14385

Closed
Luiz-Cruz opened this issue Jan 3, 2023 · 4 comments · Fixed by #14386
Closed

Method must have at least one argument [misc] #14385

Luiz-Cruz opened this issue Jan 3, 2023 · 4 comments · Fixed by #14386
Labels
bug mypy got something wrong

Comments

@Luiz-Cruz
Copy link

Luiz-Cruz commented Jan 3, 2023

I have the following code:


class SpreadsheetInterface(ABC):
    
    @abstractmethod
    def is_page_account():
        pass

But im receiving an error aside of the code

Method must have at least one argument [misc]

How do i fix this message?

@Luiz-Cruz Luiz-Cruz added the bug mypy got something wrong label Jan 3, 2023
@hauntsaninja
Copy link
Collaborator

def is_page_account(self):

@hauntsaninja hauntsaninja closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2023
@Luiz-Cruz
Copy link
Author

I'm new to Python using OOP, so I missed this error, thanks!

hauntsaninja added a commit to hauntsaninja/mypy that referenced this issue Jan 3, 2023
@hauntsaninja
Copy link
Collaborator

Sure, happy to help! Just opened a PR to improve the error message here: #14386

@Luiz-Cruz
Copy link
Author

this is awesome! Congrats!

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

Successfully merging a pull request may close this issue.

2 participants