Commit 6bcfff9
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 dbf7695 commit 6bcfff9
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
245 | 247 | | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
| |||
0 commit comments