1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
string "\"\"\"The module's doc,"
string "over two lines.\"\"\""
keyword "import"
keyword "from"
keyword "import"
type "Optional"
attribute "@dataclass"
punctuation "("
operator "="
constant.language "True"
punctuation ")"
keyword "class"
type "Note"
punctuation "("
type "Base"
punctuation ")"
operator ":"
operator ":"
operator "="
string "r\"raw\\n\""
operator ":"
operator "="
number "0x1F"
keyword "def"
function "render"
punctuation "("
variable.builtin "self"
punctuation ","
operator "="
number "80"
punctuation ")"
operator "->"
type "Optional"
punctuation "["
punctuation "]"
operator ":"
keyword.control "if"
variable.builtin "self"
keyword "is"
constant.language "None"
keyword "or"
keyword "not"
operator ":"
keyword.control "return"
constant.language "None"
keyword.control "return"
string "f\"{self.title}: {width:>4}\""
operator "+"
string "b'"
string.escape "\\x00"
string "'"
function "decode"
punctuation "()"
comment "# done"