Repository navigation
Commit b2752a9
committed
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 details1 parent 863c456 commit b2752a9
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments