<#2147 [Core feature] flyekit should ship PEP-561 ...
# flytekit
c
#2147 [Core feature] flyekit should ship PEP-561 compatible stubs (support type linters e.g. mypy) Issue created by asford ### Motivation: Why do you think this is important?
flytekit
already has relatively extensive internal type annotations, and is check by
mypy
as a linting pass for the library. The distribution package should include a PEP 561 compatible
py.typed
entry, so that consuming applications can access and use this type annotations. This should be a very minimal change to the existing distribution process. ### Goal: What should the final outcome look like, ideally? Add
py.typed
to the
flytekit
distribution, so that
mypy
runs in applications consuming
flytekit
can consume type annotations during standard check runs. ### Describe alternatives you've considered We could generate type stubs via
mypy
and include in applications or in a stub package, however this introduces drift against the
flykite
due to version changes. ### Propose: Link/Inline OR Additional context No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte