Derived from the pyupgrade linter.
Fix is sometimes available.
What it does#
TypedDict declarations that use functional syntax.
Why is this bad?#
TypedDict subclasses can be defined either through a functional syntax
Foo = TypedDict(...)) or a class syntax (
class Foo(TypedDict): ...).
The class syntax is more readable and generally preferred over the functional syntax.