We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e84a2cc commit bc8102cCopy full SHA for bc8102c
Doc/reference/datamodel.rst
@@ -2965,7 +2965,11 @@ ABCs.
2965
2966
Return true if *instance* should be considered a (direct or indirect)
2967
instance of *class*. If defined, called to implement ``isinstance(instance,
2968
- class)``.
+ cls)``.
2969
+
2970
+ .. note::
2971
+ If ``type(instance) is cls`` then ``isinstance(instance, cls)`` is
2972
+ always ``True`` and ``__instancecheck__`` is not called.
2973
2974
2975
.. method:: type.__subclasscheck__(self, subclass)
0 commit comments