typeddicts_class_syntax
error
Method defined inside a TypedDict class
TypedDict classes (PEP 589) are restricted to key declarations only. Defining methods (other than __init__ which is synthesised) is an error.
How to handle it
Every rule is on by default — strict is the default, not a cage. You can dial
typeddicts_class_syntax 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