fgmacedo / python-statemachine

Python Finite State Machines made easy.
MIT License
854 stars 84 forks source link

Add py.typed #473

Closed fgmacedo closed 1 week ago

fgmacedo commented 2 weeks ago

Description

Packages supporting types must add a marker. https://typing.readthedocs.io/en/latest/spec/distributing.html#packaging-typed-libraries

windy commented 1 week ago

Need this feature.

from statemachine import StateMachine, State # E: Cannot find implementation or library stub for module named "statemachine" [import-not-found]

It's annoying.

fgmacedo commented 1 week ago

Hi Windy, thank you for your feedback! I understand how frustrating it can be when things don't work as expected. Please note that this project is maintained in my spare time, and while I'm working on adding features like py.typed marker, community contributions are always welcome to speed things up. I've added the good first issue label as a welcome marker for new contributors.

Best regards!

windy commented 6 days ago

Thank you, you've worked hard. I just switched over from another state library and feel that this side has a better design philosophy. I will continue to follow and use it.