Skip to content

Commit ebad6f9

Browse files
committed
Fixed class highlights
1 parent f2fc877 commit ebad6f9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
<body>
5656
<header>
57-
<aside>August 13, 2024</aside>
57+
<aside>August 15, 2024</aside>
5858
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
5959
</header>
6060

@@ -833,10 +833,10 @@
833833
<span class="hljs-keyword">raise</span> Exception(&lt;obj&gt;)
834834
</code></pre></div>
835835

836-
<div><h4 id="expressionsthatcallthereprmethod">Expressions that call the repr() method:</h4><pre><code class="python language-python hljs"><span class="hljs-keyword">print</span>/str/repr([&lt;obj&gt;])
837-
<span class="hljs-keyword">print</span>/str/repr({&lt;obj&gt;: &lt;obj&gt;})
836+
<div><h4 id="expressionsthatcallthereprmethod">Expressions that call the repr() method:</h4><pre><code class="python language-python hljs">print/str/repr([&lt;obj&gt;])
837+
print/str/repr({&lt;obj&gt;: &lt;obj&gt;})
838838
<span class="hljs-string">f'<span class="hljs-subst">{&lt;obj&gt;!r}</span>'</span>
839-
Z = dataclasses.make_dataclass(<span class="hljs-string">'Z'</span>, [<span class="hljs-string">'a'</span>]); <span class="hljs-keyword">print</span>/str/repr(Z(&lt;obj&gt;))
839+
Z = dataclasses.make_dataclass(<span class="hljs-string">'Z'</span>, [<span class="hljs-string">'a'</span>]); print/str/repr(Z(&lt;obj&gt;))
840840
<span class="hljs-meta">&gt;&gt;&gt; </span>&lt;obj&gt;
841841
</code></pre></div>
842842

@@ -2932,7 +2932,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
29322932

29332933

29342934
<footer>
2935-
<aside>August 13, 2024</aside>
2935+
<aside>August 15, 2024</aside>
29362936
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
29372937
</footer>
29382938

parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ function fixHighlights() {
827827
$(`code:contains(<int> = ±0b<bin>)`).html(BIN_HEX);
828828
$(`code:contains(@lru_cache(maxsize=None))`).html(LRU_CACHE);
829829
$(`code:contains(@debug(print_result=True))`).html(PARAMETRIZED_DECORATOR);
830-
$(`code:contains(print/str/repr([obj]))`).html(REPR_USE_CASES);
830+
$(`code:contains(print/str/repr([<obj>]))`).html(REPR_USE_CASES);
831831
$(`code:contains((self, a=None):)`).html(CONSTRUCTOR_OVERLOADING);
832832
$(`code:contains(make_dataclass(\'<class_name>\')`).html(DATACLASS);
833833
$(`code:contains(shutil.copy)`).html(SHUTIL_COPY);

0 commit comments

Comments
 (0)