from pyee import EventEmitter
ee = EventEmitter()
ee.listeners("foo")
results in:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/.../env/lib/python3.10/site-packages/pyee/base.py", line 229, in listeners
return list(self._events[event].keys())
KeyError: 'foo'
>>>
since version 9.0.0. In version <8 it was returning an empty list instead. This most likely broke in #99 when the defaultdict of EventEmitter._events got changed to a normal dict.
The following:
results in:
since version 9.0.0. In version
<8
it was returning an empty list instead. This most likely broke in #99 when thedefaultdict
ofEventEmitter._events
got changed to a normaldict
.