From cda9febe4f68db3d5b0595a7560a6e7570347ff5 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sun, 26 Feb 2023 00:48:00 +0300 Subject: [PATCH] gh-101100: Fix sphinx warnings in `typing` module docs (GH-102260) (cherry picked from commit a498de4c0ef9e264cab3320afbc4d38df6394800) Co-authored-by: Nikita Sobolev --- Doc/library/typing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 276133653376f4..5deaa7adbe1e80 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -1356,7 +1356,7 @@ These are not used in annotations. They are building blocks for creating generic methods, not their type signatures. For example, :class:`ssl.SSLObject` is a class, therefore it passes an :func:`issubclass` check against :data:`Callable`. However, the - :meth:`ssl.SSLObject.__init__` method exists only to raise a + ``ssl.SSLObject.__init__`` method exists only to raise a :exc:`TypeError` with a more informative message, therefore making it impossible to call (instantiate) :class:`ssl.SSLObject`.