Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't define TrapObserver as Protocol
The changed implementation relies on inheritance of `__init__`, making this no longer a clean "Protocol", but a base class. While this is apparently supported in Python 3.11, Python versions earlier than 3.11 would override the inherited `__init__` method, thereby breaking this implementation. See python/cpython#88970 for details
- Loading branch information