Debian Codegraph @

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

raw
1 from __future__ import annotations
2
3 from contextlib import contextmanager
4 from functools import lru_cache
5 from typing import Generator # NoQA: TC003,UP035
6
7
8 @lru_cache(maxsize=None) # NoQA: UP033
9 def slow_function(message, timeout):
10 """This function is slow."""
11 print(message)
12
13
14 @contextmanager
15 def feeling_good(x: int, y: int) -> Generator:
16 """You'll feel better in this context!"""
17 yield