Disallow locally-generated types from escaping their function

Aberta
#4,690 1 comentário 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
20/100
Tipo de issue
Funcionalidade
Clareza
Precisa de esclarecimento
Status de atividade
Estagnada
Stack de tecnologia
python
Domínio
compilers

Direção de pesquisa

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.

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

Descrição

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.

Linguagem predominante
Python
Estrelas
20.6k
Forks
3.3k
Merge médio
1d 18h
PRs com merge (30d)
54

Guia de contribuição

Abrir o guia de contribuição

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

Todas as issues de python/mypy

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.