Soppose such a minimal code:
class Dog:
kind = 'canine'
def __init__(self, name):
self.name = name
class TestDog(Dog):
print(kind)
It comes by error:
NameError: name 'kind' is not defined
Since the class attribute kind
is inherited universally,
why NameError reported?