diff --git a/add_trailing_comma.py b/add_trailing_comma.py
index da4d733..70cb166 100644
--- a/add_trailing_comma.py
+++ b/add_trailing_comma.py
@@ -63,11 +63,12 @@ class FindNodes(ast.NodeVisitor):
         self.calls = collections.defaultdict(list)
         self.funcs = {}
         self.literals = {}
+        self.tuples = {}
 
-    def _visit_literal(self, node, key='elts', **kwargs):
+    def _visit_literal(self, node, key='elts'):
         if getattr(node, key):
             key = Offset(node.lineno, node.col_offset)
-            self.literals[key] = Literal(node, **kwargs)
+            self.literals[key] = Literal(node)
         self.generic_visit(node)
 
     visit_Set = visit_List = _visit_literal
@@ -76,8 +77,11 @@ class FindNodes(ast.NodeVisitor):
         self._visit_literal(node, key='values')
 
     def visit_Tuple(self, node):
-        # tuples lie about things so we tell the later machiner to backtrack
-        self._visit_literal(node, backtrack=True)
+        if node.elts:
+            key = Offset(node.lineno, node.col_offset)
+            # tuples lie about offset -- tell the later machinery to backtrack
+            self.tuples[key] = Literal(node, backtrack=True)
+        self.generic_visit(node)
 
     def visit_Call(self, node):
         argnodes = node.args + node.keywords
@@ -200,16 +204,15 @@ def _find_call(call, i, tokens):
     return _find_simple(first_brace, tokens)
 
 
-def _find_literal(literal, i, tokens):
+def _find_tuple(i, tokens):
     # tuples are evil, we need to backtrack to find the opening paren
-    if literal.backtrack:
+    i -= 1
+    while tokens[i].name in NON_CODING_TOKENS:
         i -= 1
-        while tokens[i].name in NON_CODING_TOKENS:
-            i -= 1
-        # Sometimes tuples don't even have a paren!
-        # x = 1, 2, 3
-        if tokens[i].src != '(':
-            return
+    # Sometimes tuples don't even have a paren!
+    # x = 1, 2, 3
+    if tokens[i].src != '(':
+        return
 
     return _find_simple(i, tokens)
 
@@ -326,13 +329,14 @@ def _fix_src(contents_text, py35_plus):
         # Handle parenthesized things
         elif token.src == '(':
             fixes.append((False, _find_simple(i, tokens)))
+        elif key in visitor.literals:
+            fixes.append((True, _find_simple(i, tokens)))
 
         # need to additionally handle literals afterwards as tuples report
         # their starting index as the first element, which may be one of the
         # above things.
-        if key in visitor.literals:
-            fix_data = _find_literal(visitor.literals[key], i, tokens)
-            fixes.append((True, fix_data))
+        if key in visitor.tuples:
+            fixes.append((True, _find_tuple(i, tokens)))
 
         for add_comma, fix_data in fixes:
             if fix_data is not None:

Regression ({}, ()) is not adding a trailing comma
Similar to #22

```python
(
    {k: v},
    ()
)
``

Is not adding a trailing comma after the second tuple
diff --git a/tests/add_trailing_comma_test.py b/tests/add_trailing_comma_test.py
index 5229737..a7e4abe 100644
--- a/tests/add_trailing_comma_test.py
+++ b/tests/add_trailing_comma_test.py
@@ -124,6 +124,18 @@ def test_py35_plus_rewrite():
             '    x,\n'
             ')',
         ),
+        # Regression test for #23
+        (
+            '(\n'
+            '    {k: v},\n'
+            '    ()\n'
+            ')',
+
+            '(\n'
+            '    {k: v},\n'
+            '    (),\n'
+            ')',
+        ),
     ),
 )
 def test_fixes_calls(src, expected):

pip install -e .
parse_log_pytest
requirements.txt
pytest
3.6
requirements-dev.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
-e git+https://github.com/asottile/add-trailing-comma.git@c7da498ebb0549a0925b8f4c3502d8fd27f554b8#egg=add_trailing_comma
attrs==22.2.0
certifi==2021.5.30
cfgv==3.3.1
coverage==6.2
distlib==0.3.9
filelock==3.4.1
flake8==5.0.4
identify==2.4.4
importlib-metadata==4.2.0
importlib-resources==5.2.3
iniconfig==1.1.1
mccabe==0.7.0
nodeenv==1.6.0
packaging==21.3
platformdirs==2.4.0
pluggy==1.0.0
pre-commit==2.17.0
py==1.11.0
pycodestyle==2.9.1
pyflakes==2.5.0
pyparsing==3.1.4
pytest==7.0.1
PyYAML==6.0.1
tokenize-rt==4.2.1
toml==0.10.2
tomli==1.2.3
typing_extensions==4.1.1
virtualenv==20.16.2
zipp==3.6.0

name: add-trailing-comma
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - cfgv==3.3.1
      - coverage==6.2
      - distlib==0.3.9
      - filelock==3.4.1
      - flake8==5.0.4
      - identify==2.4.4
      - importlib-metadata==4.2.0
      - importlib-resources==5.2.3
      - iniconfig==1.1.1
      - mccabe==0.7.0
      - nodeenv==1.6.0
      - packaging==21.3
      - platformdirs==2.4.0
      - pluggy==1.0.0
      - pre-commit==2.17.0
      - py==1.11.0
      - pycodestyle==2.9.1
      - pyflakes==2.5.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pyyaml==6.0.1
      - tokenize-rt==4.2.1
      - toml==0.10.2
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - virtualenv==20.16.2
      - zipp==3.6.0
prefix: /opt/conda/envs/add-trailing-comma

tests/add_trailing_comma_test.py::test_fixes_calls[(\n
tests/add_trailing_comma_test.py::test_fix_calls_noops[x tests/add_trailing_comma_test.py::test_fix_calls_noops[x(1)] tests/add_trailing_comma_test.py::test_fix_calls_noops[tuple(\n tests/add_trailing_comma_test.py::test_fix_calls_noops[x(\n tests/add_trailing_comma_test.py::test_fix_calls_noops[x((\n tests/add_trailing_comma_test.py::test_fix_calls_noops[(\n tests/add_trailing_comma_test.py::test_ignores_invalid_ast_node tests/add_trailing_comma_test.py::test_py35_plus_rewrite tests/add_trailing_comma_test.py::test_fixes_calls[x(\n tests/add_trailing_comma_test.py::test_fixes_calls[foo()(\n tests/add_trailing_comma_test.py::test_fixes_calls[x({}).y(\n tests/add_trailing_comma_test.py::test_noop_one_line_literals[(1, tests/add_trailing_comma_test.py::test_noop_one_line_literals[[1, tests/add_trailing_comma_test.py::test_noop_one_line_literals[{1, tests/add_trailing_comma_test.py::test_noop_one_line_literals[{1: tests/add_trailing_comma_test.py::test_fixes_literals[x tests/add_trailing_comma_test.py::test_fixes_py35_plus_literals[x tests/add_trailing_comma_test.py::test_noop_tuple_literal_without_braces tests/add_trailing_comma_test.py::test_noop_function_defs[def tests/add_trailing_comma_test.py::test_fixes_defs[def tests/add_trailing_comma_test.py::test_noop_unhugs[f(x, tests/add_trailing_comma_test.py::test_noop_unhugs[f(\n tests/add_trailing_comma_test.py::test_noop_unhugs[f((\n tests/add_trailing_comma_test.py::test_noop_unhugs[f([\n tests/add_trailing_comma_test.py::test_noop_unhugs[textwrap.dedent("""\n tests/add_trailing_comma_test.py::test_fix_unhugs[f(\n tests/add_trailing_comma_test.py::test_fix_unhugs[f(a,\n tests/add_trailing_comma_test.py::test_fix_unhugs[def tests/add_trailing_comma_test.py::test_fix_unhugs[with tests/add_trailing_comma_test.py::test_fix_unhugs[if tests/add_trailing_comma_test.py::test_fix_unhugs[{'foo': tests/add_trailing_comma_test.py::test_fix_unhugs[f(g(\n tests/add_trailing_comma_test.py::test_fix_unhugs[{"foo": tests/add_trailing_comma_test.py::test_fix_unhugs[x tests/add_trailing_comma_test.py::test_fix_unhugs[x("foo", tests/add_trailing_comma_test.py::test_fix_unhugs[x("foo"\n tests/add_trailing_comma_test.py::test_fix_unhugs_py3_only[def tests/add_trailing_comma_test.py::test_noop_trailing_brace[[]] tests/add_trailing_comma_test.py::test_noop_trailing_brace[x tests/add_trailing_comma_test.py::test_noop_trailing_brace[y tests/add_trailing_comma_test.py::test_noop_trailing_brace[foo.\\\n tests/add_trailing_comma_test.py::test_fix_trailing_brace[x tests/add_trailing_comma_test.py::test_main_trivial tests/add_trailing_comma_test.py::test_main_noop tests/add_trailing_comma_test.py::test_main_changes_a_file tests/add_trailing_comma_test.py::test_main_syntax_error tests/add_trailing_comma_test.py::test_main_non_utf8_bytes tests/add_trailing_comma_test.py::test_main_py35_plus_argument_star_args tests/add_trailing_comma_test.py::test_main_py35_plus_argument_star_star_kwargs
add_trailing_comma.py
add_trailing_comma.py