Add type annotation to PyTorch/XLA code and tests & expand tests for various types as needed #8627
Labels
TECHNICAL_DEBT
Technical Debt Is Evil
usability
Bugs/features related to improving the usability of PyTorch/XLA
🐛 Bug
Most of the code in PyTorch/XLA does not have type annotations, and almost everything shows up as
Any
if you use a type checker. Let's fix that! Once we have good coverage, we can add a type checker to the CI to help us catch bugs.Please file child bugs for specific files/modules as you go.
typing
module reference: https://docs.python.org/3/library/typing.htmlPlease introduce a plan for the target code to be addressed by this bug and a corresponding set of tests to expand on.
The text was updated successfully, but these errors were encountered: