Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mscolnick committed Jan 6, 2025
1 parent d5affaa commit 97648b5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/core/cells/__tests__/runs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const { reducer, initialState, isPureMarkdown } = exportedForTesting;

function first<T>(map: Map<string, T> | undefined): T {
invariant(map, "Map is undefined");
return map.values().next().value;
return map.values().next().value as T;
}

describe("RunsState Reducer", () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/_runtime/snapshots/docstrings_class.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="codehilite"><pre><span></span><code><span class="k">class</span> <span class="nc">MyClass</span><span class="p">()</span>
<div class="codehilite"><pre><span></span><code><span class="k">class</span><span class="w"> </span><span class="nc">MyClass</span><span class="p">()</span>
</code></pre></div>

<span class="paragraph">Some docstring for the class.</span>
Expand Down
2 changes: 1 addition & 1 deletion tests/_runtime/snapshots/docstrings_function.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="codehilite"><pre><span></span><code><span class="k">def</span> <span class="nf">my_func</span><span class="p">(</span><span class="n">arg1</span><span class="p">,</span> <span class="n">arg2</span><span class="p">)</span>
<div class="codehilite"><pre><span></span><code><span class="k">def</span><span class="w"> </span><span class="nf">my_func</span><span class="p">(</span><span class="n">arg1</span><span class="p">,</span> <span class="n">arg2</span><span class="p">)</span>
</code></pre></div>

<span class="paragraph">This is a simple docstring for a function.</span>
2 changes: 1 addition & 1 deletion tests/_runtime/snapshots/docstrings_function_external.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="codehilite"><pre><span></span><code><span class="k">def</span> <span class="nf">my_func</span><span class="p">(</span><span class="n">arg1</span><span class="p">,</span> <span class="n">arg2</span><span class="p">)</span>
<div class="codehilite"><pre><span></span><code><span class="k">def</span><span class="w"> </span><span class="nf">my_func</span><span class="p">(</span><span class="n">arg1</span><span class="p">,</span> <span class="n">arg2</span><span class="p">)</span>
</code></pre></div>

<div class='external-docs'><div class="document">
Expand Down
2 changes: 1 addition & 1 deletion tests/_runtime/snapshots/docstrings_function_google.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="codehilite"><pre><span></span><code><span class="k">def</span> <span class="nf">my_func</span><span class="p">(</span><span class="n">arg1</span><span class="p">,</span> <span class="n">arg2</span><span class="p">)</span>
<div class="codehilite"><pre><span></span><code><span class="k">def</span><span class="w"> </span><span class="nf">my_func</span><span class="p">(</span><span class="n">arg1</span><span class="p">,</span> <span class="n">arg2</span><span class="p">)</span>
</code></pre></div>

<h1 id="arguments">Arguments</h1>
Expand Down

0 comments on commit 97648b5

Please sign in to comment.