diff --git a/pyupgrade.py b/pyupgrade.py
index 7313835..cc8dc38 100644
--- a/pyupgrade.py
+++ b/pyupgrade.py
@@ -1023,6 +1023,7 @@ class FindPy3Plus(ast.NodeVisitor):
         self._class_info_stack = []
         self._in_comp = 0
         self.super_calls = {}
+        self._in_async_def = False
         self.yield_from_fors = set()
 
     def _is_six(self, node, names):
@@ -1101,7 +1102,17 @@ class FindPy3Plus(ast.NodeVisitor):
         else:
             self.generic_visit(node)
 
-    visit_FunctionDef = visit_Lambda = _visit_func
+    def _visit_sync_func(self, node):
+        self._in_async_def, orig = False, self._in_async_def
+        self._visit_func(node)
+        self._in_async_def = orig
+
+    visit_FunctionDef = visit_Lambda = _visit_sync_func
+
+    def visit_AsyncFunctionDef(self, node):  # pragma: no cover (py35+)
+        self._in_async_def, orig = True, self._in_async_def
+        self._visit_func(node)
+        self._in_async_def = orig
 
     def _visit_comp(self, node):
         self._in_comp += 1
@@ -1235,6 +1246,7 @@ class FindPy3Plus(ast.NodeVisitor):
 
     def visit_For(self, node):  # type: (ast.For) -> None
         if (
+            not self._in_async_def and
             len(node.body) == 1 and
             isinstance(node.body[0], ast.Expr) and
             isinstance(node.body[0].value, ast.Yield) and
@@ -1541,9 +1553,6 @@ def _fix_py3_plus(contents_text):
         else:
             j = i
             while tokens[j].src != node.attr:
-                # timid: if we see a parenthesis here, skip it
-                if tokens[j].src == ')':
-                    return
                 j += 1
             tokens[i:j + 1] = [new_token]
 

Should not rewrite to `yield from` inside `async def`
oops, totally forgot about this.

Currently this is happening but this is forbidden by [PEP 525](https://www.python.org/dev/peps/pep-0525/#asynchronous-yield-from)

```diff
 async def f():
-    for x in y:
-        yield x
+    yield from y
```
diff --git a/tests/pyupgrade_test.py b/tests/pyupgrade_test.py
index ef78b95..cf45171 100644
--- a/tests/pyupgrade_test.py
+++ b/tests/pyupgrade_test.py
@@ -1102,10 +1102,6 @@ def test_fix_classes(s, expected):
         'class C(six.with_metaclass(*a)): pass',
         '@six.add_metaclass(*a)\n'
         'class C: pass\n',
-        # parenthesized part of attribute
-        '(\n'
-        '    six\n'
-        ').text_type(u)\n',
     ),
 )
 def test_fix_six_noop(s):
@@ -1540,6 +1536,44 @@ def test_fix_yield_from(s, expected):
     assert _fix_py3_plus(s) == expected
 
 
+@pytest.mark.xfail(
+    sys.version_info < (3, 5),
+    reason='async introduced in python 3.5',
+)
+@pytest.mark.parametrize(
+    ('s', 'expected'),
+    (
+        (
+            'async def f():\n'
+            '    for x in [1, 2]:\n'
+            '        yield x\n'
+            '\n'
+            '    def g():\n'
+            '        for x in [1, 2, 3]:\n'
+            '            yield x\n'
+            '\n'
+            '    for x in [1, 2]:\n'
+            '        yield x\n'
+            '\n'
+            '    return g',
+            'async def f():\n'
+            '    for x in [1, 2]:\n'
+            '        yield x\n'
+            '\n'
+            '    def g():\n'
+            '        yield from [1, 2, 3]\n'
+            '\n'
+            '    for x in [1, 2]:\n'
+            '        yield x\n'
+            '\n'
+            '    return g',
+        ),
+    ),
+)
+def test_fix_async_yield_from(s, expected):
+    assert _fix_py3_plus(s) == expected
+
+
 @pytest.mark.parametrize(
     's',
     (

pip install -e .[dev]
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
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
-e git+https://github.com/asottile/pyupgrade.git@bddb4a06cf9373b77a49510ef0b8423468c03603#egg=pyupgrade
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: pyupgrade
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/pyupgrade

tests/pyupgrade_test.py::test_fix_async_yield_from[async
tests/pyupgrade_test.py::test_roundtrip_text[] tests/pyupgrade_test.py::test_roundtrip_text[foo] tests/pyupgrade_test.py::test_roundtrip_text[{}] tests/pyupgrade_test.py::test_roundtrip_text[{0}] tests/pyupgrade_test.py::test_roundtrip_text[{named}] tests/pyupgrade_test.py::test_roundtrip_text[{!r}] tests/pyupgrade_test.py::test_roundtrip_text[{:>5}] tests/pyupgrade_test.py::test_roundtrip_text[{{] tests/pyupgrade_test.py::test_roundtrip_text[}}] tests/pyupgrade_test.py::test_roundtrip_text[{0!s:15}] tests/pyupgrade_test.py::test_intentionally_not_round_trip[{:}-{}] tests/pyupgrade_test.py::test_intentionally_not_round_trip[{0:}-{0}] tests/pyupgrade_test.py::test_intentionally_not_round_trip[{0!r:}-{0!r}] tests/pyupgrade_test.py::test_sets[set()-set()] tests/pyupgrade_test.py::test_sets[set((\n))-set((\n))] tests/pyupgrade_test.py::test_sets[set tests/pyupgrade_test.py::test_sets[set(())-set()] tests/pyupgrade_test.py::test_sets[set([])-set()] tests/pyupgrade_test.py::test_sets[set(( tests/pyupgrade_test.py::test_sets[set((1, tests/pyupgrade_test.py::test_sets[set([1, tests/pyupgrade_test.py::test_sets[set(x tests/pyupgrade_test.py::test_sets[set([x tests/pyupgrade_test.py::test_sets[set((x tests/pyupgrade_test.py::test_sets[set(((1, tests/pyupgrade_test.py::test_sets[set((a, tests/pyupgrade_test.py::test_sets[set([(1, tests/pyupgrade_test.py::test_sets[set(\n tests/pyupgrade_test.py::test_sets[set([((1, tests/pyupgrade_test.py::test_sets[set((((1, tests/pyupgrade_test.py::test_sets[set(\n(1, tests/pyupgrade_test.py::test_sets[set((\n1,\n2,\n))\n-{\n1,\n2,\n}\n] tests/pyupgrade_test.py::test_sets[set((frozenset(set((1, tests/pyupgrade_test.py::test_sets[set((1,))-{1}] tests/pyupgrade_test.py::test_sets_generators_trailing_commas[set(x tests/pyupgrade_test.py::test_sets_generators_trailing_commas[set(\n tests/pyupgrade_test.py::test_dictcomps[x tests/pyupgrade_test.py::test_dictcomps[dict()-dict()] tests/pyupgrade_test.py::test_dictcomps[(-(] tests/pyupgrade_test.py::test_dictcomps[dict tests/pyupgrade_test.py::test_dictcomps[dict((a, tests/pyupgrade_test.py::test_dictcomps[dict([a, tests/pyupgrade_test.py::test_dictcomps[dict(((a, tests/pyupgrade_test.py::test_dictcomps[dict([(a, tests/pyupgrade_test.py::test_dictcomps[dict(((a), tests/pyupgrade_test.py::test_dictcomps[dict((k, tests/pyupgrade_test.py::test_dictcomps[dict(\n tests/pyupgrade_test.py::test_dictcomps[x(\n tests/pyupgrade_test.py::test_fix_is_compare_to_literal_noop[x tests/pyupgrade_test.py::test_fix_is_compare_to_literal[`is`] tests/pyupgrade_test.py::test_fix_is_compare_to_literal[`is tests/pyupgrade_test.py::test_fix_is_compare_to_literal[string] tests/pyupgrade_test.py::test_fix_is_compare_to_literal[unicode tests/pyupgrade_test.py::test_fix_is_compare_to_literal[bytes] tests/pyupgrade_test.py::test_fix_is_compare_to_literal[float] tests/pyupgrade_test.py::test_fix_is_compare_to_literal[compound tests/pyupgrade_test.py::test_fix_is_compare_to_literal[multi-line tests/pyupgrade_test.py::test_format_literals["{0}"format(1)-"{0}"format(1)] tests/pyupgrade_test.py::test_format_literals['{}'.format(1)-'{}'.format(1)] tests/pyupgrade_test.py::test_format_literals['{'.format(1)-'{'.format(1)] tests/pyupgrade_test.py::test_format_literals['}'.format(1)-'}'.format(1)] tests/pyupgrade_test.py::test_format_literals[x tests/pyupgrade_test.py::test_format_literals['{0} tests/pyupgrade_test.py::test_format_literals['{0}'.format(1)-'{}'.format(1)] tests/pyupgrade_test.py::test_format_literals['{0:x}'.format(30)-'{:x}'.format(30)] tests/pyupgrade_test.py::test_format_literals['''{0}\n{1}\n'''.format(1, tests/pyupgrade_test.py::test_format_literals['{0}' tests/pyupgrade_test.py::test_format_literals[print(\n tests/pyupgrade_test.py::test_format_literals['{0:<{1}}'.format(1, tests/pyupgrade_test.py::test_imports_unicode_literals[import tests/pyupgrade_test.py::test_imports_unicode_literals[from tests/pyupgrade_test.py::test_imports_unicode_literals[x tests/pyupgrade_test.py::test_imports_unicode_literals["""docstring"""\nfrom tests/pyupgrade_test.py::test_unicode_literals[(-False-(] tests/pyupgrade_test.py::test_unicode_literals[u''-False-u''] tests/pyupgrade_test.py::test_unicode_literals[u''-True-''] tests/pyupgrade_test.py::test_unicode_literals[from tests/pyupgrade_test.py::test_unicode_literals["""with tests/pyupgrade_test.py::test_unicode_literals[Regression: tests/pyupgrade_test.py::test_fix_ur_literals[basic tests/pyupgrade_test.py::test_fix_ur_literals[upper tests/pyupgrade_test.py::test_fix_ur_literals[with tests/pyupgrade_test.py::test_fix_ur_literals[emoji] tests/pyupgrade_test.py::test_fix_ur_literals_gets_fixed_before_u_removed tests/pyupgrade_test.py::test_fix_escape_sequences_noop[""] tests/pyupgrade_test.py::test_fix_escape_sequences_noop[r"\\d"] tests/pyupgrade_test.py::test_fix_escape_sequences_noop[r'\\d'] tests/pyupgrade_test.py::test_fix_escape_sequences_noop[r"""\\d"""] tests/pyupgrade_test.py::test_fix_escape_sequences_noop[r'''\\d'''] tests/pyupgrade_test.py::test_fix_escape_sequences_noop[rb"\\d"] tests/pyupgrade_test.py::test_fix_escape_sequences_noop["\\\\d"] tests/pyupgrade_test.py::test_fix_escape_sequences_noop["\\u2603"] tests/pyupgrade_test.py::test_fix_escape_sequences_noop["\\r\\n"] tests/pyupgrade_test.py::test_fix_escape_sequences_noop["\\N{SNOWMAN}"] tests/pyupgrade_test.py::test_fix_escape_sequences_noop["""\\\n"""] tests/pyupgrade_test.py::test_fix_escape_sequences_noop["""\\\r\n"""] tests/pyupgrade_test.py::test_fix_escape_sequences_noop["""\\\r"""] tests/pyupgrade_test.py::test_fix_escape_sequences["\\d"-r"\\d"] tests/pyupgrade_test.py::test_fix_escape_sequences["\\n\\d"-"\\n\\\\d"] tests/pyupgrade_test.py::test_fix_escape_sequences[u"\\d"-u"\\\\d"] tests/pyupgrade_test.py::test_fix_escape_sequences[b"\\d"-br"\\d"] tests/pyupgrade_test.py::test_fix_escape_sequences["\\8"-r"\\8"] tests/pyupgrade_test.py::test_fix_escape_sequences["\\9"-r"\\9"] tests/pyupgrade_test.py::test_fix_escape_sequences[b"\\u2603"-br"\\u2603"] tests/pyupgrade_test.py::test_fix_escape_sequences["""\\\n\\q"""-"""\\\n\\\\q"""] tests/pyupgrade_test.py::test_fix_escape_sequences["""\\\r\n\\q"""-"""\\\r\n\\\\q"""] tests/pyupgrade_test.py::test_fix_escape_sequences["""\\\r\\q"""-"""\\\r\\\\q"""] tests/pyupgrade_test.py::test_fix_escape_sequences["\\N"-r"\\N"] tests/pyupgrade_test.py::test_fix_escape_sequences["\\N\\n"-"\\\\N\\n"] tests/pyupgrade_test.py::test_fix_escape_sequences["\\N{SNOWMAN}\\q"-"\\N{SNOWMAN}\\\\q"] tests/pyupgrade_test.py::test_fix_escape_sequences[b"\\N{SNOWMAN}"-br"\\N{SNOWMAN}"] tests/pyupgrade_test.py::test_noop_octal_literals[0] tests/pyupgrade_test.py::test_noop_octal_literals[00] tests/pyupgrade_test.py::test_noop_octal_literals[1] tests/pyupgrade_test.py::test_noop_octal_literals[12345] tests/pyupgrade_test.py::test_noop_octal_literals[1.2345] tests/pyupgrade_test.py::test_fix_extra_parens_noop[print("hello tests/pyupgrade_test.py::test_fix_extra_parens_noop[print((1, tests/pyupgrade_test.py::test_fix_extra_parens_noop[print(())] tests/pyupgrade_test.py::test_fix_extra_parens_noop[print((\n))] tests/pyupgrade_test.py::test_fix_extra_parens_noop[sum((block.code tests/pyupgrade_test.py::test_fix_extra_parens_noop[def tests/pyupgrade_test.py::test_fix_extra_parens[print(("hello tests/pyupgrade_test.py::test_fix_extra_parens[print(("foo{}".format(1)))-print("foo{}".format(1))] tests/pyupgrade_test.py::test_fix_extra_parens[print((((1))))-print(1)] tests/pyupgrade_test.py::test_fix_extra_parens[print(\n tests/pyupgrade_test.py::test_fix_extra_parens[extra tests/pyupgrade_test.py::test_is_bytestring_true[b''] tests/pyupgrade_test.py::test_is_bytestring_true[b""] tests/pyupgrade_test.py::test_is_bytestring_true[B""] tests/pyupgrade_test.py::test_is_bytestring_true[B''] tests/pyupgrade_test.py::test_is_bytestring_true[rb''0] tests/pyupgrade_test.py::test_is_bytestring_true[rb''1] tests/pyupgrade_test.py::test_is_bytestring_false[] tests/pyupgrade_test.py::test_is_bytestring_false[""] tests/pyupgrade_test.py::test_is_bytestring_false[''] tests/pyupgrade_test.py::test_is_bytestring_false[u""] tests/pyupgrade_test.py::test_is_bytestring_false["b"] tests/pyupgrade_test.py::test_parse_percent_format[""-expected0] tests/pyupgrade_test.py::test_parse_percent_format["%%"-expected1] tests/pyupgrade_test.py::test_parse_percent_format["%s"-expected2] tests/pyupgrade_test.py::test_parse_percent_format["%s tests/pyupgrade_test.py::test_parse_percent_format["%(hi)s"-expected4] tests/pyupgrade_test.py::test_parse_percent_format["%()s"-expected5] tests/pyupgrade_test.py::test_parse_percent_format["%#o"-expected6] tests/pyupgrade_test.py::test_parse_percent_format["% tests/pyupgrade_test.py::test_parse_percent_format["%5d"-expected8] tests/pyupgrade_test.py::test_parse_percent_format["%*d"-expected9] tests/pyupgrade_test.py::test_parse_percent_format["%.f"-expected10] tests/pyupgrade_test.py::test_parse_percent_format["%.5f"-expected11] tests/pyupgrade_test.py::test_parse_percent_format["%.*f"-expected12] tests/pyupgrade_test.py::test_parse_percent_format["%ld"-expected13] tests/pyupgrade_test.py::test_parse_percent_format["%(complete)#4.4f"-expected14] tests/pyupgrade_test.py::test_percent_to_format[%s-{}] tests/pyupgrade_test.py::test_percent_to_format[%%%s-%{}] tests/pyupgrade_test.py::test_percent_to_format[%(foo)s-{foo}] tests/pyupgrade_test.py::test_percent_to_format[%2f-{:2f}] tests/pyupgrade_test.py::test_percent_to_format[%r-{!r}] tests/pyupgrade_test.py::test_percent_to_format[%a-{!a}] tests/pyupgrade_test.py::test_simplify_conversion_flag[-] tests/pyupgrade_test.py::test_simplify_conversion_flag[ tests/pyupgrade_test.py::test_simplify_conversion_flag[#0- tests/pyupgrade_test.py::test_simplify_conversion_flag[--<] tests/pyupgrade_test.py::test_percent_format_noop["%s" tests/pyupgrade_test.py::test_percent_format_noop[b"%s" tests/pyupgrade_test.py::test_percent_format_noop["%*s" tests/pyupgrade_test.py::test_percent_format_noop["%.*s" tests/pyupgrade_test.py::test_percent_format_noop["%d" tests/pyupgrade_test.py::test_percent_format_noop["%i" tests/pyupgrade_test.py::test_percent_format_noop["%u" tests/pyupgrade_test.py::test_percent_format_noop["%c" tests/pyupgrade_test.py::test_percent_format_noop["%#o" tests/pyupgrade_test.py::test_percent_format_noop["%()s" tests/pyupgrade_test.py::test_percent_format_noop["%4%" tests/pyupgrade_test.py::test_percent_format_noop["%.2r" tests/pyupgrade_test.py::test_percent_format_noop["%.2a" tests/pyupgrade_test.py::test_percent_format_noop[i tests/pyupgrade_test.py::test_percent_format_noop["%(1)s" tests/pyupgrade_test.py::test_percent_format_noop["%(a)s" tests/pyupgrade_test.py::test_percent_format_noop["%(ab)s" tests/pyupgrade_test.py::test_percent_format_noop["%(and)s" tests/pyupgrade_test.py::test_percent_format_noop_if_bug_16806 tests/pyupgrade_test.py::test_percent_format["trivial" tests/pyupgrade_test.py::test_percent_format["%s" tests/pyupgrade_test.py::test_percent_format["%s%% tests/pyupgrade_test.py::test_percent_format["%3f" tests/pyupgrade_test.py::test_percent_format["%-5s" tests/pyupgrade_test.py::test_percent_format["%9s" tests/pyupgrade_test.py::test_percent_format["brace tests/pyupgrade_test.py::test_percent_format["%(k)s" tests/pyupgrade_test.py::test_percent_format["%(to_list)s" tests/pyupgrade_test.py::test_fix_super_noop[x(] tests/pyupgrade_test.py::test_fix_super_noop[class tests/pyupgrade_test.py::test_fix_super_noop[def tests/pyupgrade_test.py::test_fix_super[class tests/pyupgrade_test.py::test_fix_classes_noop[x tests/pyupgrade_test.py::test_fix_classes_noop[class tests/pyupgrade_test.py::test_fix_classes[class tests/pyupgrade_test.py::test_fix_classes[import tests/pyupgrade_test.py::test_fix_classes[from tests/pyupgrade_test.py::test_fix_six_noop[x tests/pyupgrade_test.py::test_fix_six_noop[from tests/pyupgrade_test.py::test_fix_six_noop[@mydec\nclass tests/pyupgrade_test.py::test_fix_six_noop[print(six.raise_from(exc, tests/pyupgrade_test.py::test_fix_six_noop[print(six.b("\xa3"))] tests/pyupgrade_test.py::test_fix_six_noop[print(six.b( tests/pyupgrade_test.py::test_fix_six_noop[class tests/pyupgrade_test.py::test_fix_six_noop[six.reraise(*err)] tests/pyupgrade_test.py::test_fix_six_noop[six.b(*a)] tests/pyupgrade_test.py::test_fix_six_noop[six.u(*a)] tests/pyupgrade_test.py::test_fix_six_noop[@six.add_metaclass(*a)\nclass tests/pyupgrade_test.py::test_fix_six[isinstance(s, tests/pyupgrade_test.py::test_fix_six[weird tests/pyupgrade_test.py::test_fix_six[issubclass(tp, tests/pyupgrade_test.py::test_fix_six[STRING_TYPES tests/pyupgrade_test.py::test_fix_six[from tests/pyupgrade_test.py::test_fix_six[six.b("123")-b"123"] tests/pyupgrade_test.py::test_fix_six[six.b(r"123")-br"123"] tests/pyupgrade_test.py::test_fix_six[six.b("\\x12\\xef")-b"\\x12\\xef"] tests/pyupgrade_test.py::test_fix_six[six.byte2int(b"f")-b"f"[0]] tests/pyupgrade_test.py::test_fix_six[@six.python_2_unicode_compatible\nclass tests/pyupgrade_test.py::test_fix_six[@six.python_2_unicode_compatible\n@other_decorator\nclass tests/pyupgrade_test.py::test_fix_six[six.get_unbound_method(meth)\n-meth\n] tests/pyupgrade_test.py::test_fix_six[six.indexbytes(bs, tests/pyupgrade_test.py::test_fix_six[six.assertCountEqual(\n tests/pyupgrade_test.py::test_fix_six[six.raise_from(exc, tests/pyupgrade_test.py::test_fix_six[six.reraise(tp, tests/pyupgrade_test.py::test_fix_six[six.reraise(\n tests/pyupgrade_test.py::test_fix_six[class tests/pyupgrade_test.py::test_fix_six[basic tests/pyupgrade_test.py::test_fix_six[add_metaclass, tests/pyupgrade_test.py::test_fix_classes_py3only[class tests/pyupgrade_test.py::test_fix_classes_py3only[from tests/pyupgrade_test.py::test_fix_yield_from[def tests/pyupgrade_test.py::test_fix_yield_from_noop[def tests/pyupgrade_test.py::test_fix_native_literals_noop[str(1)] tests/pyupgrade_test.py::test_fix_native_literals_noop[str("foo"\n"bar")] tests/pyupgrade_test.py::test_fix_native_literals_noop[str(*a)] tests/pyupgrade_test.py::test_fix_native_literals_noop[str("foo", tests/pyupgrade_test.py::test_fix_native_literals_noop[str(**k)] tests/pyupgrade_test.py::test_fix_native_literals[str("foo")-"foo"] tests/pyupgrade_test.py::test_fix_native_literals[str("""\nfoo""")-"""\nfoo"""] tests/pyupgrade_test.py::test_fix_encode["asd".encode("utf-8")-"asd".encode()] tests/pyupgrade_test.py::test_fix_encode["asd".encode("utf8")-"asd".encode()] tests/pyupgrade_test.py::test_fix_encode["asd".encode("UTF-8")-"asd".encode()] tests/pyupgrade_test.py::test_fix_encode[sys.stdout.buffer.write(\n tests/pyupgrade_test.py::test_fix_encode_noop["asd".encode("unknown-codec")] tests/pyupgrade_test.py::test_fix_encode_noop["asd".encode("ascii")] tests/pyupgrade_test.py::test_fix_encode_noop[x="asd"\nx.encode("utf-8")] tests/pyupgrade_test.py::test_fix_encode_noop["asd".encode("utf-8", tests/pyupgrade_test.py::test_fix_encode_noop["asd".encode(encoding="utf-8")] tests/pyupgrade_test.py::test_fix_py2_block_noop[if tests/pyupgrade_test.py::test_fix_py2_block_noop[from tests/pyupgrade_test.py::test_fix_py2_blocks[six.PY2] tests/pyupgrade_test.py::test_fix_py2_blocks[six.PY2, tests/pyupgrade_test.py::test_fix_py2_blocks[not tests/pyupgrade_test.py::test_fix_py2_blocks[six.PY3] tests/pyupgrade_test.py::test_fix_py2_blocks[indented tests/pyupgrade_test.py::test_fix_py2_blocks[six.PY2 tests/pyupgrade_test.py::test_fix_py2_blocks[six.PY3, tests/pyupgrade_test.py::test_fix_py2_blocks[sys.version_info tests/pyupgrade_test.py::test_fix_py2_blocks[from tests/pyupgrade_test.py::test_fix_fstrings_noop[(] tests/pyupgrade_test.py::test_fix_fstrings_noop["{}" tests/pyupgrade_test.py::test_fix_fstrings_noop["{}".format(\n tests/pyupgrade_test.py::test_fix_fstrings_noop["{} tests/pyupgrade_test.py::test_fix_fstrings_noop["{foo} tests/pyupgrade_test.py::test_fix_fstrings_noop["{0} tests/pyupgrade_test.py::test_fix_fstrings_noop["{x} tests/pyupgrade_test.py::test_fix_fstrings_noop["{x.y} tests/pyupgrade_test.py::test_fix_fstrings_noop[b"{} tests/pyupgrade_test.py::test_fix_fstrings_noop["{:{}}".format(x, tests/pyupgrade_test.py::test_fix_fstrings_noop["{a[b]}".format(a=a)] tests/pyupgrade_test.py::test_fix_fstrings_noop["{a.a[b]}".format(a=a)] tests/pyupgrade_test.py::test_fix_fstrings_noop["{}{}".format(a)] tests/pyupgrade_test.py::test_fix_fstrings_noop["{a}{b}".format(a=a)] tests/pyupgrade_test.py::test_fix_fstrings["{} tests/pyupgrade_test.py::test_fix_fstrings["{1} tests/pyupgrade_test.py::test_fix_fstrings["{x.y}".format(x=z)-f"{z.y}"] tests/pyupgrade_test.py::test_fix_fstrings["{.x} tests/pyupgrade_test.py::test_fix_fstrings["hello tests/pyupgrade_test.py::test_fix_fstrings["{}{{}}{}".format(escaped, tests/pyupgrade_test.py::test_fix_fstrings["{}{b}{}".format(a, tests/pyupgrade_test.py::test_main_trivial tests/pyupgrade_test.py::test_main_noop tests/pyupgrade_test.py::test_main_changes_a_file tests/pyupgrade_test.py::test_main_keeps_line_endings tests/pyupgrade_test.py::test_main_syntax_error tests/pyupgrade_test.py::test_main_non_utf8_bytes tests/pyupgrade_test.py::test_keep_percent_format tests/pyupgrade_test.py::test_py3_plus_argument_unicode_literals tests/pyupgrade_test.py::test_py3_plus_super tests/pyupgrade_test.py::test_py3_plus_new_style_classes tests/pyupgrade_test.py::test_py36_plus_fstrings tests/pyupgrade_test.py::test_noop_token_error tests/pyupgrade_test.py::test_targets_same tests/pyupgrade_test.py::test_fields_same
pyupgrade.py
pyupgrade.py