Use {} literal instead of dict() constructor

Proprietary

Convert no-argument dict() calls to the {} literal, which is more concise and avoids a function call. It only fires where dict is the builtin, and leaves alone a dict() that is the whole expression of an f-string replacement field.

org.openrewrite.python.cleanup.DictLiteral
mod run . --recipe=org.openrewrite.python.cleanup.DictLiteral

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.