mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-11 05:43:44 -05:00
This gives the same behaviour as you’d expect inheriting from `list`. However because `list` is written with a lot of optimisations it’s unpredictable to inherit from. Python provides a series of abstract base classes that you can inherit from instead. Further reading: 1. https://docs.python.org/3.4/library/collections.abc.html#collections.abc.Sequence 2. https://treyhunner.com/2019/04/why-you-shouldnt-inherit-from-list-and-dict-in-python/