qualifiers_annotated_2 error

Annotated... requires at least two arguments

PEP 593 requires Annotated to be subscripted with at least two arguments: a type and one or more metadata values. Annotatedint with only a single argument is a type error.

from typing import Annotated
bad: Annotated[int]  # E — only one argument

How to handle it

Every rule is on by default — strict is the default, not a cage. You can dial qualifiers_annotated_2 down per-file or per-path from your editor or pyproject.toml, or fix the code so it type-checks. See the Type System rules and the complete diagnostic reference.

Canonical URL: https://www.basilisk-python.dev/errors/qualifiers_annotated_2