Define Notification Types With Sentinels?
オープン
- 主要言語
- Python
- スター
- 653
- フォーク
- 217
- 平均マージ
- 2日 21時間
- マージ済み PR(30日)
- 2
説明
A notification which catches a `"change"` should also intuitively catch a `"special change"`.
I see two ways to accomplish this kind of behavior:
1. Split type strings at each `" "` similarly to how html classes are handled by css selectors.
2. Key notifiers on `type(sentinel)` and trace `type(sentinel).mro()` when triggering them.
Either way, I think that we could leverage [`EventReport`](https://github.com/ipython/traitlets/pull/251) types to do this.
コントリビューションガイド
評価
この issue はまだ評価されていません。