Debian Codegraph @

tests/roots/test-ext-autodoc/target/TYPE_CHECKING.py

raw
1 # NoQA: N999
2 from __future__ import annotations
3
4 from gettext import NullTranslations # NoQA: TC003
5 from typing import TYPE_CHECKING
6
7 if TYPE_CHECKING:
8 from collections.abc import Iterable
9 from io import StringIO
10
11
12 class Foo:
13 attr1: StringIO
14
15
16 def spam(ham: Iterable[str]) -> tuple[NullTranslations, bool]:
17 pass