I made a tuple subclass to add a property to a tuple. Using same logic as with a list subclass which works without problems. Code:
class TupleObject(tuple):
def __init__(self, property, _tuple):
super().__init__(_tuple)
self.property = property
_tuple = TupleObject(property, (0, 0))
Throws error:
TypeError: tuple expected at most 1 arguments, got 2
How could I make this work? Using this exact method with a list subclass works as expected.