python-evdev icon indicating copy to clipboard operation
python-evdev copied to clipboard

Implement type stubs for ecodes

Open Lillecarl opened this issue 1 year ago • 2 comments

Helps your $EDITOR find the constants from ecodes.c, making for a more pleasant developer experience.

I've got a "grand plan" to extend evdevremapkeys to support importing your own Python modules, and when building those modules it would be very nice to get autocomplete and type checking for ecodes.KEY_A and such.

I'm relatively new to Python and haven't messed with setuptools before at all, I've hacked together the install class to copy the pyi file with the wheel but I'm eager to know of a better way (MANIFEST.in doesn't seem to work because the file doesn't exist when setuptools starts).

Lillecarl avatar Apr 12 '24 14:04 Lillecarl

Hey, sorry I haven't spent time on this yet. I hope I'll manage to look into this soon.

sezanzeb avatar Apr 28 '24 11:04 sezanzeb

@sezanzeb Don't worry, I've been on the lazy side "projectifying" and my thing as well. I could've refined this further during this time.

I'll get back to you 😁

Lillecarl avatar Aug 03 '24 22:08 Lillecarl