From 823f7f679895c112d8441b938c62ec96226ee210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 13 Apr 2019 03:12:21 +0200 Subject: [PATCH] Metaprograming --- README.md | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 68da7fe..52d4829 100644 --- a/README.md +++ b/README.md @@ -1541,7 +1541,7 @@ class MyClass(metaclass=MyMetaClass): ('abcde', 12345) ``` -#### Type diagram ('abc' is a str, str is a type, ...): +#### Type diagram (str is an instance of type, ...): ```text +---------+-------------+ | classes | metaclasses | @@ -1554,7 +1554,7 @@ class MyClass(metaclass=MyMetaClass): +---------+-------------+ ``` -#### Inheritance diagram (str inherits from object, ...): +#### Inheritance diagram (str is a subclass of object, ...): ```text +---------+-------------+ | classes | metaclasses | diff --git a/index.html b/index.html index ed3489a..e384294 100644 --- a/index.html +++ b/index.html @@ -1264,7 +1264,7 @@ param_names = list(<sig>.parameters.keys())
>>> MyClass.a, MyClass.b
 ('abcde', 12345)
 
-

Type diagram ('abc' is a str, str is a type, …):

+

Type diagram (str is an instance of type, …):

┏━━━━━━━━━┯━━━━━━━━━━━━━┓
 ┃ classes │ metaclasses ┃
 ┠─────────┼─────────────┨
@@ -1275,7 +1275,7 @@ param_names  = list(<sig>.parameters.keys())
 ┃   str ───────╯        ┃
 ┗━━━━━━━━━┷━━━━━━━━━━━━━┛
 
-

Inheritance diagram (str inherits from object, …):

+

Inheritance diagram (str is a subclass of object, …):

┏━━━━━━━━━┯━━━━━━━━━━━━━┓
 ┃ classes │ metaclasses ┃
 ┠─────────┼─────────────┨