Skip to content

Add type annotation to PyTorch/XLA code and tests & expand tests for various types as needed #8627

Open
@miladm

Description

🐛 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.html

Please introduce a plan for the target code to be addressed by this bug and a corresponding set of tests to expand on.

Metadata

Labels

TECHNICAL_DEBTTechnical Debt Is EvilusabilityBugs/features related to improving the usability of PyTorch/XLA

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions