Disallow locally-generated types from escaping their function

Abierto
#4,690 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
python
Área
compilers

Línea de trabajo

Start by tracing how NamedTuples declared inside functions and callable-generated subtype types are represented and whether they can escape their defining function. Investigate the coarse and fine-grained incremental interactions described in the issue. Done means locally generated types cannot escape the function without breaking supported type-checking and incremental behavior.

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

Descripción

topic-runtime-semantics topic-variable-scope

We should ban locally generated types (such as NamedTuples declared inside of functions and types generated by uses of callable) from escaping the function where they are created.

It isn't really a good idea to do in the first place and it has difficult interactions with both coarse and finen-grained incremental.

Lenguaje dominante
Python
Estrellas
20.6k
Forks
3.3k
Merge medio
1 d 18 h
PR fusionados (30 d)
54

Guía de contribución

Abrir la guía de contribución

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 python/mypy

Todos los issues de python/mypy

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.