Sindre Lothe
Results
2
issues of
Sindre Lothe
From here: https://docs.python.org/3/reference/datamodel.html?highlight=__getattr__#object.__getattr object.__getattr__(self, name) This method should either return the (computed) attribute value or raise an AttributeError Right now the function throws a KeyError when it gets a wrong...
__getattr__ should raise a AttributeError when value is not found, not KeyError, which is raised when __getitem__ fails. New function should look like class ElementsCallbackData(dict): __slots__ = () def __getattr__(self,...