Feature or enhancement
Proposal:
>>> class A:
... def lol(a):
... print(a)
...
>>> A().lol(1)
Traceback (most recent call last):
File "<python-input-1>", line 1, in <module>
A().lol(1)
~~~~~~~^^^
TypeError: A.lol() takes 1 positional argument but 2 were given
I'd like to request a better experience for this use case.
Has this already been discussed elsewhere?
https://discuss.python.org/t/beginner-friendly-error-messages-for-missing-self-typeerror-a-lol-takes-1-positional-argument-but-2-were-given/107414
Links to previous discussion of this feature:
No response
Linked PRs
Feature or enhancement
Proposal:
I'd like to request a better experience for this use case.
Has this already been discussed elsewhere?
https://discuss.python.org/t/beginner-friendly-error-messages-for-missing-self-typeerror-a-lol-takes-1-positional-argument-but-2-were-given/107414
Links to previous discussion of this feature:
No response
Linked PRs