caterinaurban / Typpete

34 stars 6 forks source link

Accessing attribute with the name `count` throws error #50

Open mostafa-abdullah opened 6 years ago

mostafa-abdullah commented 6 years ago

When a class has an instance attribute with the name count, a type error is thrown. For example, this throws an error:

class A:
    def __init__(self):
        self.count = 1

But this one doesn't:

class A:
    def __init__(self):
        self.count2 = 1