Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 219 Bytes

use-dict-literal.md

File metadata and controls

7 lines (4 loc) · 219 Bytes

Pattern: Use of dict() instead of {}

Issue: -

Description

Emitted when using dict() to create an empty dictionary instead of the literal {}. The literal is faster as it avoids an additional function call.