@@ -17,7 +17,7 @@ a suspended *future*.  These utilities and the underlying machinery
1717can be used by users in their Python code or by external profilers
1818and debuggers.
1919
20- .. versionadded :: 3.14 
20+ .. versionadded :: next 
2121
2222
2323.. function :: print_call_graph(*, future=None, file=None, depth=1) 
@@ -44,11 +44,11 @@ and debuggers.
4444      import  asyncio 
4545
4646      async  def  test (): 
47-          asyncio.print_call_graph() 
47+            asyncio.print_call_graph() 
4848
4949      async  def  main (): 
50-          async  with  asyncio.TaskGroup() as  g: 
51-             g.create_task(test()) 
50+            async  with  asyncio.TaskGroup() as  g: 
51+                g.create_task(test()) 
5252
5353      asyncio.run(main()) 
5454
@@ -77,23 +77,23 @@ and debuggers.
7777   current task, the function returns ``None ``.
7878
7979   If the function is called on *the current task *, the optional
80-    keyword-only `` depth ``  argument can be used to skip the specified
80+    keyword-only * depth *  argument can be used to skip the specified
8181   number of frames from top of the stack.
8282
8383   Returns a ``FutureCallGraph `` data class object:
8484
8585   * ``FutureCallGraph(future, call_stack, awaited_by) ``
8686
87-       Where ' future'  is a reference to a * Future *  or a * Task * 
88-       (or their subclasses.)
87+       Where * future *  is a reference to a :class: ` Future `  or
88+       a  :class: ` Task `  (or their subclasses.)
8989
9090      ``call_stack `` is a list of ``FrameCallGraphEntry `` objects.
9191
9292      ``awaited_by `` is a list of ``FutureCallGraph `` objects.
9393
9494   * ``FrameCallGraphEntry(frame) ``
9595
96-       Where `` frame ``  is a frame object of a regular Python function
96+       Where * frame *  is a frame object of a regular Python function
9797      in the call stack.
9898
9999
@@ -102,7 +102,7 @@ Low level utility functions
102102
103103To introspect an async call graph asyncio requires cooperation from
104104control flow structures, such as :func: `shield ` or :class: `TaskGroup `.
105- Any time an intermediate `` Future ` ` object with low-level APIs like
105+ Any time an intermediate :class: ` Future ` object with low-level APIs like
106106:meth: `Future.add_done_callback() <asyncio.Future.add_done_callback> ` is
107107involved, the following two functions should be used to inform *asyncio *
108108about how exactly such intermediate future objects are connected with
@@ -114,11 +114,11 @@ the tasks they wrap or control.
114114   Record that *future * is awaited on by *waiter *.
115115
116116   Both *future * and *waiter * must be instances of
117-    :class: `asyncio. Future <Future>  ` or :class: `asyncio. Task <Task>  ` or
118-    their subclasses,  otherwise the call would have no effect.
117+    :class: `Future ` or :class: `Task ` or their subclasses, 
118+    otherwise the call would have no effect.
119119
120120   A call to ``future_add_to_awaited_by() `` must be followed by an
121-    eventual call to the `` future_discard_from_awaited_by()  ` ` function
121+    eventual call to the :func: ` future_discard_from_awaited_by ` function
122122   with the same arguments.
123123
124124
@@ -127,5 +127,5 @@ the tasks they wrap or control.
127127   Record that *future * is no longer awaited on by *waiter *.
128128
129129   Both *future * and *waiter * must be instances of
130-    :class: `asyncio. Future <Future>  ` or :class: `asyncio. Task <Task>  ` or
131-    their subclasses, otherwise  the call would have no effect.
130+    :class: `Future ` or :class: `Task ` or their subclasses, otherwise 
131+    the call would have no effect.
0 commit comments