Option C Tools
Loading...
Searching...
No Matches
async_func.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3# oct/tests/tests_linter/fixtures/async_func.py
4
5"""
6Purpose
7-------
8Fixture demonstrating correct func = "..." pattern with async functions.
9
10Responsibilities
11----------------
12- Provide a compliant example with async def.
13
14Diagnostics
15-----------
16Domain: TEST
17L2: lifecycle events
18L3: semantic details
19L4: deep tracing
20
21Contracts
22---------
23Inputs: none
24Outputs: none
25"""
26
27from oc_diagnostics import _dbg
28
29
30async def fetch_data():
31 func = "fetch_data"
32 _dbg("L3", "Fetching data", domain="TEST", func=func)
33 return {"status": "ok"}