式が既に指定されたターゲット型を持つ場合、 typing.cast の不要な呼び出しを報告します。

例:


from typing import cast

a: int
b = cast(int, a)  # 不要です。 a はすでに int です。