agronholm / agronholm/typeguard

Emit a warning when instrumentation encounters a type it cannot check

Aberta
#347 1 comentário 3 reações 0 responsáveis Ver no GitHub
enhancement
Linguagem predominante
Python
Estrelas
1.8k
Forks
146
Merge médio
8d 12h
PRs com merge (30d)
1

Descrição

### Things to check first

- [X] I have searched the existing issues and didn't find my feature already requested there

### Feature description

The instrumentation code should emit an `InstrumentationWarning` (when in debug mode) when it encounters a type that has been designated as "ignored" (due to, for example, being imported under `if TYPE_CHECKING:`.

### Use case

It may be sometimes difficult to understand why a type check has been omitted from the instrumented code. Adding code comments for this is not possible because comments are not part of the abstract syntax tree.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

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