spotify / luigi

Luigi is a Python module that helps you build complex pipelines of batch jobs. It handles dependency resolution, workflow management, visualization etc. It also comes with Hadoop support built in.
Apache License 2.0
17.71k stars 2.39k forks source link

chore: add py.typed for type checking #3297

Closed hiro-o918 closed 1 month ago

hiro-o918 commented 1 month ago

Description

Add py.typed marker https://peps.python.org/pep-0561/#packaging-type-information

Motivation and Context

I want to run type checking on my project with lugi.

Have you tested this? If so, how?

hiro-o918 commented 1 month ago

Thank you for your merging. In detail, if there is no py.typed, all the classes are handled as Any and no type checking works. This can makes us write invalid typing as type annotations, because it is not checked by type checkers like mypy