from __future__ import annotations


def function_with_py310_annotations(self, x: bool, y: int, z: str | None = None) -> str:  # noqa: U100
    """
    Method docstring.

    :param x: foo
    :param y: bar
    :param z: baz
    """
