A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
internal: fix import from vitest (#7255)
Myles Scolnicka03ac2a5a5d5
diff --git a/frontend/src/core/codemirror/editing/commands.ts b/frontend/src/core/codemirror/editing/commands.tsindex 6e308dddae..7c05fc3026 100644--- a/frontend/src/core/codemirror/editing/commands.ts+++ b/frontend/src/core/codemirror/editing/commands.ts@@ -1,16 +1,17 @@/* Copyright 2024 Marimo. All rights reserved. */import { foldAll, unfoldAll } from "@codemirror/language";import type { Command, EditorView } from "@codemirror/view";-import type { Nullable } from "vitest";-export type BulkCommand = (targets: Nullable<EditorView>[]) => boolean;+type MaybeEditorView = EditorView | undefined | null;++export type BulkCommand = (targets: MaybeEditorView[]) => boolean;/*** Make a bulk command from a single {@type Command} that applies* the given command to all targets.*/export function makeBulkCommand(command: Command) {- return (targets: Nullable<EditorView>[]) => {+ return (targets: MaybeEditorView[]) => {let changed = false;for (const target of targets) {if (target) {