From 3784fb931d1c80aef674672decf48b422f1d68a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 21 Jan 2020 22:03:50 +0100 Subject: [PATCH] Type --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 70b9d99..1326b83 100644 --- a/README.md +++ b/README.md @@ -261,7 +261,7 @@ from types import FunctionType, MethodType, LambdaType, GeneratorType ``` ### ABC -**An abstract base class introduces virtual subclasses, that don’t inherit from it but are still recognized by isinstance() and issubclass().** +**An abstract base class introduces virtual subclasses that don’t inherit from it, but are still recognized by isinstance() and issubclass().** ```python >>> from collections.abc import Sequence, Collection, Iterable diff --git a/index.html b/index.html index 459db5a..b205614 100644 --- a/index.html +++ b/index.html @@ -389,7 +389,7 @@ to_exclusive = <range>.stop

Some types do not have built-in names, so they must be imported:

from types import FunctionType, MethodType, LambdaType, GeneratorType
 
-

ABC

An abstract base class introduces virtual subclasses, that don’t inherit from it but are still recognized by isinstance() and issubclass().

>>> from collections.abc import Sequence, Collection, Iterable
+

ABC

An abstract base class introduces virtual subclasses that don’t inherit from it, but are still recognized by isinstance() and issubclass().

>>> from collections.abc import Sequence, Collection, Iterable
 >>> isinstance([1, 2, 3], Iterable)
 True