You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When overriding the .add() method in a subclass, I think the desired behavior of obj.append() would be to call the .add() method of the subclass, right? However, the append method is currently "implemented" as append = add in OrderedSet, which does not lead to a call of .add() in the subclass.
Would the following implementation of the .append() method in OrderedSet maybe resolve the issue?
When overriding the
.add()
method in a subclass, I think the desired behavior ofobj.append()
would be to call the.add()
method of the subclass, right? However, the append method is currently "implemented" asappend = add
inOrderedSet
, which does not lead to a call of.add()
in the subclass.Would the following implementation of the
.append()
method inOrderedSet
maybe resolve the issue?The text was updated successfully, but these errors were encountered: