pyrefly-type-coverage
A contributor skill in the PyTorch repository for moving one Python file to stricter type checking with Pyrefly, where every function, class and attribute must be annotated.
What the skill teaches
A contributor skill in the PyTorch repository for moving one Python file to stricter type checking with Pyrefly, where every function, class and attribute must be annotated. The agent removes file-wide suppression comments, adds a sub-configuration for the file's folder to the Pyrefly settings, runs the checker and adds annotations rather than suppressing missing-annotation errors. Errors that come from other files or external symbols are left or suppressed locally with a to-do note. It follows set conventions for modern typing syntax, widens types step by step only when needed and keeps the signatures of functions marked backward compatible. It then runs lintrunner and the related tests, and leaves committing to the user.
Capabilities
- Enable strict Pyrefly checks for one file
- Add type annotations instead of suppressions
- Keep backward-compatible signatures unchanged
- Run lintrunner and related tests
About
- Publisher
- PyTorch
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Not stated in its documentation | |
| Publisher | PyTorch | source |
| Official status | Not stated in its documentation | |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | NOASSERTION | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 11, 2026105,390 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
Sources
- Skill file (SKILL.md)github.com/pytorch/pytorch · Backs: LicenceNov 10, 2026
- GitHub repositorygithub.com/pytorch/pytorch · Backs: Publisher, ActivityNov 11, 2026
- Folder in the repository (pyrefly-type-coverage)github.com/pytorch/pytorch · Backs: Includes scriptsNov 10, 2026