From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 12 Nov 2021 10:19:52 +0000 (-0800) Subject: bpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533) (GH-29535) X-Git-Tag: v3.10.1~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=628667ac9a634c7a7fa7f681dd2f98ff5841c843;p=thirdparty%2FPython%2Fcpython.git bpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533) (GH-29535) 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 Co-authored-by: Hynek Schlawack --- diff --git a/Doc/library/contextvars.rst b/Doc/library/contextvars.rst index 14ac47f4c9eb..be1dd0c9eb57 100644 --- a/Doc/library/contextvars.rst +++ b/Doc/library/contextvars.rst @@ -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