Missing type annotation (ARCH2193)
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Key python.quality.missing-type-hint · Severity info · Category quality
Missing type annotations on public APIs weaken static analysis and editor support. Annotate parameters and return types.
Incorrect
Section titled “Incorrect”def discount(price, rate): return price * (1 - rate)Correct
Section titled “Correct”def discount(price: float, rate: float) -> float: return price * (1 - rate)Add type annotations to public function parameters and return values.