diff --git a/README.md b/README.md index 5504567..8120958 100644 --- a/README.md +++ b/README.md @@ -261,7 +261,7 @@ from types import FunctionType, MethodType, LambdaType, GeneratorType ``` ### Abstract Base Classes -**Each abstract base class specifies a set of virtual subclasses. These classes are then recognized by isinstance() and issubclass() as subclasses of the ABC, although they are really not. ABC can also manually decide whether or not a specific class is its virtual subclass.** +**Each abstract base class specifies a set of virtual subclasses. These classes are then recognized by isinstance() and issubclass() as subclasses of the ABC, although they are really not. ABC can also manually decide whether or not a specific class is its virtual subclass, usually based on which methods the class has implemented (Collection, Iterable).** ```python >>> from collections.abc import Sequence, Collection, Iterable @@ -2337,7 +2337,7 @@ Progress Bar >>> from time import sleep >>> for el in tqdm([1, 2, 3], desc='Processing'): ... sleep(1) -Processing: 100%|██████████████████| 3/3 [00:03<00:00, 1.00s/it] +Processing: 100%|████████████████████| 3/3 [00:03<00:00, 1.00s/it] ``` diff --git a/index.html b/index.html index c6f8276..6d09b8c 100644 --- a/index.html +++ b/index.html @@ -402,7 +402,7 @@ to_exclusive = <range>.stop
from types import FunctionType, MethodType, LambdaType, GeneratorType
Each abstract base class specifies a set of virtual subclasses. These classes are then recognized by isinstance() and issubclass() as subclasses of the ABC, although they are really not. ABC can also manually decide whether or not a specific class is its virtual subclass.
>>> from collections.abc import Sequence, Collection, Iterable
+Abstract Base Classes
Each abstract base class specifies a set of virtual subclasses. These classes are then recognized by isinstance() and issubclass() as subclasses of the ABC, although they are really not. ABC can also manually decide whether or not a specific class is its virtual subclass, usually based on which methods the class has implemented (Collection, Iterable).
>>> from collections.abc import Sequence, Collection, Iterable
>>> isinstance([1, 2, 3], Iterable)
True
@@ -2041,7 +2041,7 @@ curses.wrapper(main)
>>> from time import sleep
>>> for el in tqdm([1, 2, 3], desc='Processing'):
... sleep(1)
-Processing: 100%|███████████████████| 3/3 [00:03<00:00, 1.00s/it]
+Processing: 100%|████████████████████| 3/3 [00:03<00:00, 1.00s/it]