Support py.typed
peteboothroyd opened this issue · 3 comments
peteboothroyd commented
It would be nice if ml-metadata exposed its type information to clients, like:
See PEP-561 for more details.
Concretely this just means adding an empty file called py.typed
at the root of the package.
BrianSong commented
Hi peteboothroyd,
Thanks for raising up this issue.
To clarify, are you having some problems without ml_metadata exposing its type information?
peteboothroyd commented
The problem is that although ml-metadata has type annotated its public api this is not checked by clients which use tools such as mypy, so clients aren't getting the benefits provided by type checking their usage of ml-metadata.
BrianSong commented
Acknowledged, let's keep this issue open and add type checking support in the next one or two release.