caterinaurban/Typpete

Accessing attribute with the name `count` throws error

Opened this issue · 0 comments

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