__getattr__
needs to be ignored during operator availability checks
#1252
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Sample
Expected behavior
The last line should be forbidden.
The internal logic of built-in operators / wrapper methods (for example: len(...)) calls the method defined on the class but not the instance, so
__getattr__
will not work.If you run the sample, you will probably get
on the last line.
Actual behavior
No errors reported.
The text was updated successfully, but these errors were encountered: