From e501d70b347c5093018d12482c30a7a98aab86d0 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Fri, 12 Nov 2021 10:47:55 +0100 Subject: [PATCH] bpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533) Since `.. module:: contextvars` sets the module using `.. class:: contextvars.Token`, intersphinx records it as `contextvars.contextvars.Token`. --- Doc/library/contextvars.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/contextvars.rst b/Doc/library/contextvars.rst index 14ac47f4c9e..be1dd0c9eb5 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