]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533)
authorHynek Schlawack <hs@ox.cx>
Fri, 12 Nov 2021 09:47:55 +0000 (10:47 +0100)
committerGitHub <noreply@github.com>
Fri, 12 Nov 2021 09:47:55 +0000 (11:47 +0200)
Since `.. module:: contextvars` sets the module using `.. class:: contextvars.Token`, intersphinx records it as `contextvars.contextvars.Token`.

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