File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1232,8 +1232,13 @@ These are not used in annotations. They are building blocks for creating generic
1232
1232
1233
1233
.. note ::
1234
1234
1235
- :func: `runtime_checkable ` will check only the presence of the required methods,
1236
- not their type signatures.
1235
+ :func: `runtime_checkable ` will check only the presence of the required
1236
+ 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 `.
1237
1242
1238
1243
.. versionadded :: 3.8
1239
1244
You can’t perform that action at this time.
0 commit comments