pytorch/serve

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

Open

#1.512 aberto em 15 de mar. de 2022

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)Java (790 forks)batch import
good first issue

Métricas do repositório

Stars
 (3.844 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador