unnecessary-dict-kwargs (PIE804)
Derived from the flake8-pie linter.
Fix is sometimes available.
What it does
Checks for unnecessary dict
kwargs.
Why is this bad?
If the dict
keys are valid identifiers, they can be passed as keyword
arguments directly.
Example
Use instead: