From: Nikita Sobolev Date: Sat, 25 Feb 2023 21:48:00 +0000 (+0300) Subject: gh-101100: Fix sphinx warnings in `typing` module docs (#102260) X-Git-Tag: v3.12.0a6~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a498de4c0ef9e264cab3320afbc4d38df6394800;p=thirdparty%2FPython%2Fcpython.git gh-101100: Fix sphinx warnings in `typing` module docs (#102260) --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 169f7196a74e..bbbf6920ddec 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -1588,7 +1588,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`.