Typo fix
This commit is contained in:
parent
a684ab6aaa
commit
d3d971a6c9
|
@ -242,7 +242,7 @@ serves as an ABC support framework. It defines a metaclass
|
|||
|
||||
The ``ABCMeta`` class overrides ``__instancecheck__`` and
|
||||
``__subclasscheck__`` and defines a ``register`` method. The
|
||||
``register`` method takes one argument, which much be a class; after
|
||||
``register`` method takes one argument, which must be a class; after
|
||||
the call ``B.register(C)``, the call ``issubclass(C, B)`` will return
|
||||
True, by virtue of ``B.__subclasscheck__(C)`` returning True.
|
||||
Also, ``isinstance(x, B)`` is equivalent to ``issubclass(x.__class__,
|
||||
|
|
Loading…
Reference in New Issue