"Missing self argument" error after dynamically replacing method #350
Labels
attribute access
Instance attributes, class attributes, etc.
bug
Something isn't working
calls
Issues relating to call-signature checking and diagnostics
Summary
In the provided example, I dynamically replace the A.f1 method with f1_replace through the f2 function. After this replacement, ty reports an error:
No argument provided for required parameter 'self' of function 'f1' when calling a.f1(), though the code actually runs correctly.
Steps to Reproduce:
then use
ty check
show:Version
ty 0.0.0-alpha.8
The text was updated successfully, but these errors were encountered: