summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-ext-autodoc/target/pep604.py
blob: 9b1f94a59fdfbb0d4ccd7ab4dfb5283464f8bcad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from __future__ import annotations

attr: int | str  #: docstring


def sum(x: int | str, y: int | str) -> int | str:
    """docstring"""


class Foo:
    """docstring"""

    attr: int | str  #: docstring

    def meth(self, x: int | str, y: int | str) -> int | str:
        """docstring"""