From f1827a610725641c179aff72769af81942998508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 14 Apr 2019 17:49:21 +0200 Subject: [PATCH] Classes diagram --- README.md | 4 ++-- index.html | 4 ++-- parse.js | 8 ++++---- web/script_2.js | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 645b0ba..adf40a1 100644 --- a/README.md +++ b/README.md @@ -1548,7 +1548,7 @@ class MyClass(metaclass=MyMetaClass): #### Type diagram (str is an instance of type, ...): ```text +---------+-------------+ -| classes | metaclasses | +| Classes | Metaclasses | +---------+-------------| | MyClass > MyMetaClass | | | v | @@ -1561,7 +1561,7 @@ class MyClass(metaclass=MyMetaClass): #### Inheritance diagram (str is a subclass of object, ...): ```text +---------+-------------+ -| classes | metaclasses | +| Classes | Metaclasses | +---------+-------------| | MyClass | MyMetaClass | | v | v | diff --git a/index.html b/index.html index 89fdb16..382752f 100644 --- a/index.html +++ b/index.html @@ -1268,7 +1268,7 @@ param_names = list(<sig>.parameters.keys())

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

┏━━━━━━━━━┯━━━━━━━━━━━━━┓
-┃ classes │ metaclasses ┃
+┃ Classes │ Metaclasses ┃
 ┠─────────┼─────────────┨
 ┃ MyClass → MyMetaClass ┃
 ┃         │     ↓       ┃
@@ -1279,7 +1279,7 @@ param_names  = list(<sig>.parameters.keys())
 

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

┏━━━━━━━━━┯━━━━━━━━━━━━━┓
-┃ classes │ metaclasses ┃
+┃ Classes │ Metaclasses ┃
 ┠─────────┼─────────────┨
 ┃ MyClass │ MyMetaClass ┃
 ┃    ↓    │     ↓       ┃
diff --git a/parse.js b/parse.js
index 3b19bd7..307a1ac 100755
--- a/parse.js
+++ b/parse.js
@@ -32,7 +32,7 @@ const TOC =
 
 const DIAGRAM_1_A = 
   '+---------+-------------+\n' +
-  '| classes | metaclasses |\n' +
+  '| Classes | Metaclasses |\n' +
   '+---------+-------------|\n' +
   '| MyClass > MyMetaClass |\n' +
   '|         |     v       |\n' +
@@ -43,7 +43,7 @@ const DIAGRAM_1_A =
 
 const DIAGRAM_1_B =
   '┏━━━━━━━━━┯━━━━━━━━━━━━━┓\n' +
-  '┃ classes │ metaclasses ┃\n' +
+  '┃ Classes │ Metaclasses ┃\n' +
   '┠─────────┼─────────────┨\n' +
   '┃ MyClass → MyMetaClass ┃\n' +
   '┃         │     ↓       ┃\n' +
@@ -54,7 +54,7 @@ const DIAGRAM_1_B =
 
 const DIAGRAM_2_A =
   '+---------+-------------+\n' +
-  '| classes | metaclasses |\n' +
+  '| Classes | Metaclasses |\n' +
   '+---------+-------------|\n' +
   '| MyClass | MyMetaClass |\n' +
   '|    v    |     v       |\n' +
@@ -65,7 +65,7 @@ const DIAGRAM_2_A =
 
 const DIAGRAM_2_B =
   '┏━━━━━━━━━┯━━━━━━━━━━━━━┓\n' +
-  '┃ classes │ metaclasses ┃\n' +
+  '┃ Classes │ Metaclasses ┃\n' +
   '┠─────────┼─────────────┨\n' +
   '┃ MyClass │ MyMetaClass ┃\n' +
   '┃    ↓    │     ↓       ┃\n' +
diff --git a/web/script_2.js b/web/script_2.js
index 84a858a..e7f73b9 100644
--- a/web/script_2.js
+++ b/web/script_2.js
@@ -1,6 +1,6 @@
 const DIAGRAM_1_A = 
   '+---------+-------------+\n' +
-  '| classes | metaclasses |\n' +
+  '| Classes | Metaclasses |\n' +
   '+---------+-------------|\n' +
   '| MyClass > MyMetaClass |\n' +
   '|         |     v       |\n' +
@@ -11,7 +11,7 @@ const DIAGRAM_1_A =
 
 const DIAGRAM_1_B =
   '┏━━━━━━━━━┯━━━━━━━━━━━━━┓\n' +
-  '┃ classes │ metaclasses ┃\n' +
+  '┃ Classes │ Metaclasses ┃\n' +
   '┠─────────┼─────────────┨\n' +
   '┃ MyClass → MyMetaClass ┃\n' +
   '┃         │     ↓       ┃\n' +
@@ -22,7 +22,7 @@ const DIAGRAM_1_B =
 
 const DIAGRAM_2_A =
   '+---------+-------------+\n' +
-  '| classes | metaclasses |\n' +
+  '| Classes | Metaclasses |\n' +
   '+---------+-------------|\n' +
   '| MyClass | MyMetaClass |\n' +
   '|    v    |     v       |\n' +
@@ -33,7 +33,7 @@ const DIAGRAM_2_A =
 
 const DIAGRAM_2_B =
   '┏━━━━━━━━━┯━━━━━━━━━━━━━┓\n' +
-  '┃ classes │ metaclasses ┃\n' +
+  '┃ Classes │ Metaclasses ┃\n' +
   '┠─────────┼─────────────┨\n' +
   '┃ MyClass │ MyMetaClass ┃\n' +
   '┃    ↓    │     ↓       ┃\n' +