TYPE004infoPro

missing-type-hints

Function is missing type hints.

Applies to: Python

Why this matters

Type hints make code self-documenting and enable IDE autocomplete and error checking. They also help AI assistants understand your code better. Add parameter types and return type annotations to all functions.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, TYPE004 includedstablestack explain TYPE004

TYPE004 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: TYPE004