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
{{ message }}
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.
There is no error on line 3 nor on line 6 but running this code will raise AttributeError(s).
I can imagine that if the class is subclassing other object, checking recursively if the method or attribute is defined is too expensive.
One could argue that these problems should be dealt with using other tools (unittest, doctest).
In any case, I'm leaving the issue here for evaluation.
The text was updated successfully, but these errors were encountered:
In the example:
class SomeClass(object):
def some_method(self):
return self.no_such_attr
There is no error on line 3 nor on line 6 but running this code will raise AttributeError(s).
I can imagine that if the class is subclassing other object, checking recursively if the method or attribute is defined is too expensive.
One could argue that these problems should be dealt with using other tools (unittest, doctest).
In any case, I'm leaving the issue here for evaluation.
The text was updated successfully, but these errors were encountered: