[issue47180] Remove unnecessary registration of weakref.WeakSet as a subtype of _collections_abc.Set

2022-03-31 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue47180] Remove unnecessary registration of weakref.WeakSet as a subtype of _collections_abc.Set

2022-03-31 Thread Raymond Hettinger
Change by Raymond Hettinger : -- versions: -Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue47180] Remove unnecessary registration of weakref.WeakSet as a subtype of _collections_abc.Set

2022-03-31 Thread Géry
New submission from Géry : Registering `weakref.WeakSet` as a subtype of `_collections_abc.MutableSet` implies that it is also a subtype of `_collections_abc.Set` since `_collections_abc.MutableSet` is a subtype of `_collections_abc.Set` and the subtype relation is transitive. --