typeddicts_class_syntax_2 error

Invalid keyword argument in TypedDict class definition

TypedDict class syntax only accepts total=True/False as a keyword argument. Using metaclass= or any unrecognised keyword is an error per PEP 589.

Also fires when a TypedDict inherits from a non-TypedDict class (other than Generic...), which is forbidden.

How to handle it

Every rule is on by default — strict is the default, not a cage. You can dial typeddicts_class_syntax_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/typeddicts_class_syntax_2