diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index a6348eda3891cc..6be4fe5ce1c5e3 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1109,8 +1109,10 @@ have the following two methods available: .. doctest:: - >>> int.__subclasses__() - [, , , , ] + >>> class A: pass + >>> class B(A): pass + >>> A.__subclasses__() + [] Class instances ---------------