Fix Object Has No Attribute Error in Python | Delft Stack
www.delftstack.com › howto › pythonDec 28, 2021 · AttributeError: 'B' object has no attribute 'show' In the example above, two classes were initiated with similar functions to display messages. The error shows because the function called is not associated with the B class. We can tackle this error in different ways. The dir() function can be used to view all the associated attributes of an object. However, this method may miss attributes inherited via a metaclass.