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 as variable inside class fail to count parameters #18438

Open
Polandia94 opened this issue Jan 10, 2025 · 0 comments
Open

Method as variable inside class fail to count parameters #18438

Polandia94 opened this issue Jan 10, 2025 · 0 comments
Labels
bug mypy got something wrong

Comments

@Polandia94
Copy link

Bug Report

if a varible inside a class is a method of other class, when you call it has problems counting the parameters

(A clear and concise description of what the bug is.)

To Reproduce

https://mypy-play.net/?mypy=latest&python=3.12&gist=75f641be99916a76f9c9113fe99cd78d

Expected Behavior

The program run correctly ( on runtime or in pyright works fine)

Actual Behavior

mypy counts the second method as another self.

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

No branches or pull requests

1 participant