pytorch/serve

[Educational] Typing `.py` files iteratively with mypy

Open

#1,512 创建于 2022年3月15日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Java (790 fork)batch import
good first issue

仓库指标

Star
 (3,844 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

We just added #1858 support so a good first issue for anyone new to torchserve or open source python projects in general I'd recommend the following

  1. Pick any file in serve/ts
  2. Add type annotations - for an example you can checkout https://github.com/pytorch/serve/blob/master/ts/context.py
  3. Run mypy path_to_file_you_annotated.py
  4. If you don't see any issues then make a PR and make sure the mypy lint action passes

贡献者指南