agronholm / agronholm/typeguard

Emit a warning when instrumentation encounters a type it cannot check

オープン
#347 コメント 1 件 リアクション 3 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Python
スター
1.8k
フォーク
145
平均マージ
8日 12時間
マージ済み PR(30日)
1

説明

### 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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。