pySCG: Python type hints and what they are for

Abierto
#12 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Documentación
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Python
Estrellas
2
Forks
2
Merge medio
11 min
PR fusionados (30 d)
2

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ossf/python-secure-coding-guide

Todos los issues de ossf/python-secure-coding-guide

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.