We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b133ab commit 17f94e2Copy full SHA for 17f94e2
1 file changed
Doc/library/typing.rst
@@ -1232,8 +1232,13 @@ These are not used in annotations. They are building blocks for creating generic
1232
1233
.. note::
1234
1235
- :func:`runtime_checkable` will check only the presence of the required methods,
1236
- not their type signatures.
+ :func:`runtime_checkable` will check only the presence of the required
+ methods, not their type signatures. For example, :class:`ssl.SSLObject`
1237
+ is a class, therefore it passes an :func:`issubclass`
1238
+ check against :data:`Callable`. However, the
1239
+ :meth:`ssl.SSLObject.__init__` method exists only to raise a
1240
+ :exc:`TypeError` with a more informative message, therefore making
1241
+ it impossible to call (instantiate) :class:`ssl.SSLObject`.
1242
1243
.. versionadded:: 3.8
1244
0 commit comments