pySCG: Python type hints and what they are for

Aberta
#12 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
35/100
Tipo de issue
Documentação
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
python

Direção de pesquisa

Read the existing content in ossf/python-secure-coding-guide#13 first to avoid duplication, then draft guidance on Python type hints, implicit conversions, mypy, and the limits of static checking for deployed input. Decide whether the content should be a recommendation or a rule after drafting it. Done means the guidance covers those points without duplicating issue #13.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Create a Python specific rule or recommendation around:

  • Type hints and what they are for. Python 3.9 does not even throw an INFO or warn when type hints don't match, it has to be clear that type hints are not a security or robustness feature.
  • Why type hints don't prevent implicit conversions
  • Why hints must be used in combination with a tool like mypy
  • Why or when mypy is unable to protect against issues on a deployed system.
    mypy != input sanitation or validation.
    Decide if its going to be a recommendation or rule after creating some content.

Avoid duplication with content in ossf/python-secure-coding-guide#13

Linguagem predominante
Python
Estrelas
2
Forks
2
Merge médio
11min
PRs com merge (30d)
2

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de ossf/python-secure-coding-guide

Todas as issues de ossf/python-secure-coding-guide

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.