Open joaoe opened 6 years ago
I'm unsure. Both set
and OrderedSet
are (virtual) subclasses of MutableSet
, and as such OrderedSet
isn't really a subclass of set
. But I see your point on convenience.
I'll think on registering OrderedSet
as a typing.Set
, however.
Should this yield
True
?>>> isinstance(OrderedSet(), set)
Given
OrderedSet
shares the same API and already inherits fromcollections.Set
, this check makes sense to me at least, soOrderedSet
would be compatible with other code that already checks forset
.