报告在表达式已经具有指定目标类型时不必要调用 typing.cast 的情况。

示例:


from typing import cast

a: int
b = cast(int, a)  # 不必要,a 已经为 int