jfhbrook / pyee

A rough port of Node.js's EventEmitter to Python with a few tricks of its own
https://github.com/jfhbrook/public
MIT License
371 stars 39 forks source link

Better errors for bad imports #50

Closed jfhbrook closed 2 years ago

jfhbrook commented 5 years ago

We should use https://www.python.org/dev/peps/pep-0562/ to make it so that importing event emitters with missing dependencies should raise an ImportError that says something about those missing dependencies. Right now it's an ImportError but just one where the thing isn't there. :upside_down_face:

jfhbrook commented 2 years ago

I moved the imports to be namespaced by feature. Problem (eventually) solved!