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

from gettext import NullTranslations
from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from collections.abc import Iterable
    from io import StringIO


class Foo:
    attr1: StringIO


def spam(ham: Iterable[str]) -> tuple[NullTranslations, bool]:
    pass