Commit a903a44
committed
ai(rules[AGENTS]): Update async doctest pattern to top-level await
why: Document the new capability enabled by AsyncDocTestRunner
what:
- Replace asyncio.run() boilerplate with top-level await syntax
- Show that await works directly in doctests now1 parent fecd38d commit a903a44
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
| 253 | + | |
| 254 | + | |
253 | 255 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
258 | 259 | | |
259 | 260 | | |
260 | 261 | | |
| |||
0 commit comments