From 1b88b718016b30b419943eb5f1de78c1f7774759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 9 Jan 2020 15:50:18 +0100 Subject: [PATCH] Type --- README.md | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 913b842..e4ed78b 100644 --- a/README.md +++ b/README.md @@ -246,8 +246,8 @@ Type * **Type and class are synonymous.** ```python - = type() # Or: .__class__ - = isinstance(, ) # Or: issubclass(type(), ) + = type() # Or: .__class__ + = isinstance(, ) # Or: issubclass(type(), ) ``` ```python diff --git a/index.html b/index.html index 1f8a60a..aa591e6 100644 --- a/index.html +++ b/index.html @@ -378,8 +378,8 @@ to_exclusive = <range>.stop
  • Everything is an object.
  • Every object has a type.
  • Type and class are synonymous.
  • -
    <type> = type(<el>)                          # Or: <el>.__class__
    -<bool> = isinstance(<el>, <type>)            # Or: issubclass(type(<el>), <type>)
    +
    <type> = type(<el>)                            # Or: <el>.__class__
    +<bool> = isinstance(<el>, <type>)              # Or: issubclass(type(<el>), <type>)