You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#18438Fixes#19146
Surprisingly, a very small change is sufficient to replicate Python
runtime behavior for all the important cases (see `checkmember.py`). I
also replace the `bound_args` argument of `CallableType`, that was
mostly unused, with a flag (as suggested by @JukkaL) and make sure it is
properly set/preserved everywhere.
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.
The text was updated successfully, but these errors were encountered: