TYPE001warningPro

weak-typing

Weak typing pattern (Dict[str, Any], List[Any]) loses type safety.

Applies to: Python

Why this matters

Using Dict[str, Any] or List[Any] defeats the purpose of type hints. You lose IDE autocomplete, type checking, and documentation. Use TypedDict, dataclass, or Pydantic models for structured data.

Catch it before it ships

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

TYPE001 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: TYPE001