From 59596d44e6f8f5386b332e33964576d7d243426c Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Fri, 12 Jul 2024 17:31:23 -0700 Subject: [PATCH] apply autofix for ruff rules Summary: This PR changes the empty collection factory call to Python literals: - `list()` -> `[]` - `tuple()` -> `()` - `dict()` -> `{}` The Python literals are more performant and safer. For example, the bytecode for building an empty dictionary: ```bash $ python3 -m dis - <