]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533) (GH-29537)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 16 Nov 2021 09:56:56 +0000 (01:56 -0800)
committerGitHub <noreply@github.com>
Tue, 16 Nov 2021 09:56:56 +0000 (10:56 +0100)
Since `.. module:: contextvars` sets the module using `.. class:: contextvars.Token`, intersphinx records it as `contextvars.contextvars.Token`.
(cherry picked from commit e501d70b347c5093018d12482c30a7a98aab86d0)

Co-authored-by: Hynek Schlawack <hs@ox.cx>
Doc/library/contextvars.rst

index 14ac47f4c9eb164050749ff5b7431b720c11145d..be1dd0c9eb57e8a8a4a9f4a60e8aebdf42d7baf9 100644 (file)
@@ -94,7 +94,7 @@ Context Variables
           # var.get() would raise a LookupError.
 
 
-.. class:: contextvars.Token
+.. class:: Token
 
    *Token* objects are returned by the :meth:`ContextVar.set` method.
    They can be passed to the :meth:`ContextVar.reset` method to revert