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.
スキルの内容
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.
できること
- Enable strict Pyrefly checks for one file
- Add type annotations instead of suppressions
- Keep backward-compatible signatures unchanged
- Run lintrunner and related tests
概要
- 公開元
- PyTorch
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
詳細
出典
- スキルファイル(SKILL.md)github.com/pytorch/pytorch · 根拠となる項目:ライセンス2026年11月10日
- GitHubリポジトリgithub.com/pytorch/pytorch · 根拠となる項目:公開元, 活動状況2026年11月11日
- リポジトリ内のフォルダ(pyrefly-type-coverage)github.com/pytorch/pytorch · 根拠となる項目:スクリプトを含む2026年11月10日