@@ -92,7 +92,7 @@ Functions and classes provided:
9292 it creates can be used as decorators as well as in :keyword: `with ` statements.
9393 When used as a decorator, a new generator instance is implicitly created on
9494 each function call (this allows the otherwise "one-shot" context managers
95- created by :func : `contextmanager ` to meet the requirement that context
95+ created by :deco : `contextmanager ` to meet the requirement that context
9696 managers support multiple invocations in order to be used as decorators).
9797
9898 .. versionchanged :: 3.2
@@ -101,7 +101,7 @@ Functions and classes provided:
101101
102102.. decorator :: asynccontextmanager
103103
104- Similar to :func : `~contextlib.contextmanager `, but creates an
104+ Similar to :deco : `~contextlib.contextmanager `, but creates an
105105 :ref: `asynchronous context manager <async-context-managers >`.
106106
107107 This function is a :term: `decorator ` that can be used to define a factory
@@ -128,7 +128,7 @@ Functions and classes provided:
128128
129129 .. versionadded :: 3.7
130130
131- Context managers defined with :func : `asynccontextmanager ` can be used
131+ Context managers defined with :deco : `asynccontextmanager ` can be used
132132 either as decorators or with :keyword: `async with ` statements::
133133
134134 import time
@@ -148,11 +148,11 @@ Functions and classes provided:
148148
149149 When used as a decorator, a new generator instance is implicitly created on
150150 each function call. This allows the otherwise "one-shot" context managers
151- created by :func : `asynccontextmanager ` to meet the requirement that context
151+ created by :deco : `asynccontextmanager ` to meet the requirement that context
152152 managers support multiple invocations in order to be used as decorators.
153153
154154 .. versionchanged :: 3.10
155- Async context managers created with :func : `asynccontextmanager ` can
155+ Async context managers created with :deco : `asynccontextmanager ` can
156156 be used as decorators.
157157
158158
@@ -399,7 +399,7 @@ Functions and classes provided:
399399 ``__enter__ `` and ``__exit__ `` as normal. ``__exit__ `` retains its optional
400400 exception handling even when used as a decorator.
401401
402- ``ContextDecorator `` is used by :func : `contextmanager `, so you get this
402+ ``ContextDecorator `` is used by :deco : `contextmanager `, so you get this
403403 functionality automatically.
404404
405405 Example of ``ContextDecorator ``::
@@ -653,7 +653,7 @@ Functions and classes provided:
653653
654654 Similar to :meth: `ExitStack.close ` but properly handles awaitables.
655655
656- Continuing the example for :func : `asynccontextmanager `::
656+ Continuing the example for :deco : `asynccontextmanager `::
657657
658658 async with AsyncExitStack() as stack:
659659 connections = [await stack.enter_async_context(get_connection())
@@ -911,7 +911,7 @@ Files are an example of effectively single use context managers, since
911911the first :keyword: `with ` statement will close the file, preventing any
912912further IO operations using that file object.
913913
914- Context managers created using :func : `contextmanager ` are also single use
914+ Context managers created using :deco : `contextmanager ` are also single use
915915context managers, and will complain about the underlying generator failing
916916to yield if an attempt is made to use them a second time::
917917
0 commit comments