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
chore: clean up no-unused-vars warnings in frontend (#11439)
Kiran Gadhave41a02168b638
diff --git a/frontend/src/components/chat/acp/__tests__/state.test.ts b/frontend/src/components/chat/acp/__tests__/state.test.tsindex 7fe0e6813d..f052901be0 100644--- a/frontend/src/components/chat/acp/__tests__/state.test.ts+++ b/frontend/src/components/chat/acp/__tests__/state.test.ts@@ -74,7 +74,7 @@ describe("state utility functions", () => {const newState = addSession(initialState, session);// Remove the dynamic tabId for snapshot comparison- const { tabId, ...sessionWithoutId } = newState.sessions[0];+ const { tabId: _tabId, ...sessionWithoutId } = newState.sessions[0];expect({...newState,sessions: [sessionWithoutId],@@ -116,7 +116,7 @@ describe("state utility functions", () => {const newState = addSession(initialState, newSession);// Remove dynamic tabId for snapshot- const { tabId, ...sessionWithoutId } = newState.sessions[0];+ const { tabId: _tabId, ...sessionWithoutId } = newState.sessions[0];expect({...newState,sessions: [sessionWithoutId],diff --git a/frontend/src/components/data-table/cell-selection/feature.ts b/frontend/src/components/data-table/cell-selection/feature.tsindex 0af286160c..acdd0656fa 100644--- a/frontend/src/components/data-table/cell-selection/feature.ts+++ b/frontend/src/components/data-table/cell-selection/feature.ts@@ -98,7 +98,7 @@ export const CellSelectionFeature: TableFeature = {]);} else {// This cell becomes the single selected cell- table.setCellSelection((_) => [+ table.setCellSelection(() => [{rowId: rowId,columnName: columnName,@@ -115,7 +115,7 @@ export const CellSelectionFeature: TableFeature = {);} else {// Clear the selection- table.setCellSelection((_) => []);+ table.setCellSelection(() => []);}}};diff --git a/frontend/src/components/data-table/cell-selection/types.ts b/frontend/src/components/data-table/cell-selection/types.tsindex c316c6cfae..717fdbdb77 100644--- a/frontend/src/components/data-table/cell-selection/types.ts+++ b/frontend/src/components/data-table/cell-selection/types.ts@@ -30,7 +30,7 @@ export interface CellSelectionCell {}// These are additional properties add to the table instance in createTable-export interface CellSelectionInstance<TData extends RowData> {+export interface CellSelectionInstance {setCellSelection?: (updater: Updater<CellSelectionState>) => void;resetCellSelection?(defaultValue?: CellSelectionState): void;@@ -44,7 +44,7 @@ declare module "@tanstack/react-table" {TData extends RowData,> extends CellSelectionOptions {}- interface Table<TData extends RowData> extends CellSelectionInstance<TData> {}+ interface Table<TData extends RowData> extends CellSelectionInstance {}interface Cell<TData extends RowData, TValue> extends CellSelectionCell {}}diff --git a/frontend/src/components/data-table/column-summary/column-summary.tsx b/frontend/src/components/data-table/column-summary/column-summary.tsxindex d0936bbd61..cb8b033f28 100644--- a/frontend/src/components/data-table/column-summary/column-summary.tsx+++ b/frontend/src/components/data-table/column-summary/column-summary.tsx@@ -16,7 +16,7 @@ export const ColumnChartContext = React.createContext<ColumnChartSpecModel<unknown>>(ColumnChartSpecModel.EMPTY);-interface Props<TData, TValue> {+interface Props {columnId: string;}@@ -24,9 +24,7 @@ interface Props<TData, TValue> {// for all calls with the same key.const batchedLoader = createBatchedLoader();-export const TableColumnSummary = <TData, TValue>({- columnId,-}: Props<TData, TValue>) => {+export const TableColumnSummary = ({ columnId }: Props) => {const { locale } = useLocale();const chartSpecModel = React.use(ColumnChartContext);diff --git a/frontend/src/components/editor/SortableCell.tsx b/frontend/src/components/editor/SortableCell.tsxindex 5acc778ec1..bab11dbc58 100644--- a/frontend/src/components/editor/SortableCell.tsx+++ b/frontend/src/components/editor/SortableCell.tsx@@ -71,7 +71,6 @@ export const SortableCell = React.forwardRef(return (<SortableCellInternalref={ref}- cellId={cellId}canMoveX={canMoveX}{...props}attributes={attributes}@@ -86,7 +85,7 @@ export const SortableCell = React.forwardRef();SortableCell.displayName = "SortableCell";-interface SortableCellInternalProps extends Props {+interface SortableCellInternalProps extends Omit<Props, "cellId"> {children: React.ReactNode;attributes: DraggableAttributes;listeners: SyntheticListenerMap | undefined;@@ -99,7 +98,6 @@ interface SortableCellInternalProps extends Props {const SortableCellInternal = React.forwardRef(({- cellId,canMoveX,children,attributes,diff --git a/frontend/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsx b/frontend/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsxindex a500841dd3..3ab5efb2c5 100644--- a/frontend/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsx+++ b/frontend/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsx@@ -26,13 +26,7 @@ import { isWasm } from "@/core/wasm/utils";import { cn } from "@/utils/cn";import { FooterItem } from "../footer-item";-interface RuntimeSettingsProps {- className?: string;-}--export const RuntimeSettings: React.FC<RuntimeSettingsProps> = ({- className,-}) => {+export const RuntimeSettings: React.FC = () => {const { saveUserConfig } = useRequestClient();const [config, setUserConfig] = useResolvedMarimoConfig();diff --git a/frontend/src/components/editor/chrome/wrapper/storage.ts b/frontend/src/components/editor/chrome/wrapper/storage.tsindex dfaa403a73..dc11ab399c 100644--- a/frontend/src/components/editor/chrome/wrapper/storage.ts+++ b/frontend/src/components/editor/chrome/wrapper/storage.ts@@ -15,7 +15,7 @@ let storedValue: string | null = null;*/export function createStorage(location: "left" | "bottom"): PanelGroupStorage {return {- getItem(name) {+ getItem(_name) {if (!storedValue) {return storedValue ?? null;}diff --git a/frontend/src/components/editor/output/MarimoTracebackOutput.tsx b/frontend/src/components/editor/output/MarimoTracebackOutput.tsxindex a97a6cb7f8..de7e240949 100644--- a/frontend/src/components/editor/output/MarimoTracebackOutput.tsx+++ b/frontend/src/components/editor/output/MarimoTracebackOutput.tsx@@ -274,7 +274,7 @@ export const replaceTracebackFilenames = (domNode: DOMNode) => {return (<divclassName="inline-block cursor-pointer text-destructive hover:underline"- onClick={(_) => {+ onClick={() => {getRequestClient().openFile({path: info.filePath,lineNumber: info.lineNumber,diff --git a/frontend/src/components/icons/spinner.tsx b/frontend/src/components/icons/spinner.tsxindex 881c7b18e5..2842325c7d 100644--- a/frontend/src/components/icons/spinner.tsx+++ b/frontend/src/components/icons/spinner.tsx@@ -25,7 +25,7 @@ const spinnerVariants = cva("animate-spin", {const Spinner = React.forwardRef<SVGSVGElement,React.SVGProps<SVGSVGElement> & VariantProps<typeof spinnerVariants>->(({ className, children, centered, size, ...props }, ref) => (+>(({ className, children: _children, centered, size, ...props }, ref) => (<Loader2Iconref={ref}className={cn(spinnerVariants({ centered, size }), className)}diff --git a/frontend/src/components/ui/alert-dialog.tsx b/frontend/src/components/ui/alert-dialog.tsxindex 6ed69d2adb..a01ca3b56f 100644--- a/frontend/src/components/ui/alert-dialog.tsx+++ b/frontend/src/components/ui/alert-dialog.tsx@@ -28,7 +28,7 @@ AlertDialogPortal.displayName = AlertDialogPrimitive.Portal.displayName;const AlertDialogOverlay = React.forwardRef<React.ElementRef<typeof AlertDialogPrimitive.Overlay>,React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>->(({ className, children, ...props }, ref) => (+>(({ className, children: _children, ...props }, ref) => (<AlertDialogPrimitive.OverlayclassName={cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-xs transition-opacity animate-in fade-in",diff --git a/frontend/src/core/ai/context/providers/datasource.ts b/frontend/src/core/ai/context/providers/datasource.tsindex 9c282673c7..37a3c88ed6 100644--- a/frontend/src/core/ai/context/providers/datasource.ts+++ b/frontend/src/core/ai/context/providers/datasource.ts@@ -98,8 +98,12 @@ export class DatasourceContextProvider extends AIContextProvider<DatasourceContepublic formatContext(item: DatasourceContextItem): string {const data = item.data;// Remove certain fields that are not needed in the context- const { name, display_name, source, ...filteredDatasource } =- data.connection;+ const {+ name,+ display_name: _displayName,+ source: _source,+ ...filteredDatasource+ } = data.connection;let datasource = filteredDatasource;const isInternalEngine = INTERNAL_SQL_ENGINES.has(name as ConnectionName);diff --git a/frontend/src/core/cells/session.ts b/frontend/src/core/cells/session.tsindex 4b84d4c46a..47fac79417 100644--- a/frontend/src/core/cells/session.ts+++ b/frontend/src/core/cells/session.ts@@ -56,7 +56,7 @@ function mergeSessionAndNotebookCells(return {cellIds,sessionCellData: new Map(- cellIds.map((id, idx) => [id, null] as [CellId, SessionCell | null]),+ cellIds.map((id) => [id, null] as [CellId, SessionCell | null]),),notebookCellData: new Map(cellIds.map(diff --git a/frontend/src/core/codemirror/__tests__/setup.test.ts b/frontend/src/core/codemirror/__tests__/setup.test.tsindex e86fe029b3..d4533a28cd 100644--- a/frontend/src/core/codemirror/__tests__/setup.test.ts+++ b/frontend/src/core/codemirror/__tests__/setup.test.ts@@ -100,7 +100,7 @@ function getDuplicateKeymaps(state: EditorState) {(keymap) => keymap,);const duplicates = Objects.fromEntries(- Object.entries(groupBy).filter(([key, value]) => value.length > 1),+ Object.entries(groupBy).filter(([_key, value]) => value.length > 1),);return duplicates;}diff --git a/frontend/src/core/codemirror/keymaps/vim.ts b/frontend/src/core/codemirror/keymaps/vim.tsindex 65758d26b9..09041a2ec5 100644--- a/frontend/src/core/codemirror/keymaps/vim.ts+++ b/frontend/src/core/codemirror/keymaps/vim.ts@@ -369,7 +369,7 @@ class CodeMirrorVimSync {// We use onIdle to keep the focused editor snappyonIdle(() => {if (!skipBroadcast) {- this.broadcastModeChange(instance, e.mode, e.subMode);+ this.broadcastModeChange(instance, e.mode);}this.isBroadcasting = false;});@@ -380,11 +380,7 @@ class CodeMirrorVimSync {this.instances.delete(instance);}- public broadcastModeChange(- originInstance: EditorView,- mode: string,- subMode?: string,- ) {+ public broadcastModeChange(originInstance: EditorView, mode: string) {invariant("exitInsertMode" in Vim,"Vim does not have an exitInsertMode method",diff --git a/frontend/src/core/codemirror/language/languages/markdown.ts b/frontend/src/core/codemirror/language/languages/markdown.tsindex dd934ef959..0e3596be3f 100644--- a/frontend/src/core/codemirror/language/languages/markdown.ts+++ b/frontend/src/core/codemirror/language/languages/markdown.ts@@ -73,7 +73,7 @@ export class MarkdownLanguageAdapter implements LanguageAdapter<MarkdownLanguage_cellId: CellId,_completionConfig: CompletionConfig,hotkeys: HotkeyProvider,- _: PlaceholderType,+ _placeholderType: PlaceholderType,): Extension[] {const markdownLanguageData = markdown().language.data;let view: EditorView | undefined;diff --git a/frontend/src/core/codemirror/language/languages/python.ts b/frontend/src/core/codemirror/language/languages/python.tsindex a94c7e1176..4c1368cb17 100644--- a/frontend/src/core/codemirror/language/languages/python.ts+++ b/frontend/src/core/codemirror/language/languages/python.ts@@ -157,7 +157,7 @@ const pylspClient = once((lspConfig: LSPConfig) => {return notebookClient;});-const tyLspClient = once((_: LSPConfig) => {+const tyLspClient = once((_config: LSPConfig) => {// oxlint-disable-next-line prefer-const -- reassigned after closure capturelet resyncCallback: (() => Promise<void>) | undefined;@@ -176,7 +176,7 @@ const tyLspClient = once((_: LSPConfig) => {const notebookClient = new NotebookLanguageServerClient(new LanguageServerClient({...lspClientOpts,- getWorkspaceConfiguration: (_) => [{ disableLanguageServices: true }],+ getWorkspaceConfiguration: () => [{ disableLanguageServices: true }],}),{},);@@ -226,7 +226,7 @@ const pyreflyClient = once(},);-const pyrightClient = once((_: LSPConfig) => {+const pyrightClient = once((_config: LSPConfig) => {// oxlint-disable-next-line prefer-const -- reassigned after closure capturelet resyncCallback: (() => Promise<void>) | undefined;diff --git a/frontend/src/core/kernel/__tests__/RuntimeState.test.ts b/frontend/src/core/kernel/__tests__/RuntimeState.test.tsindex 7639af6a54..b999630ee6 100644--- a/frontend/src/core/kernel/__tests__/RuntimeState.test.ts+++ b/frontend/src/core/kernel/__tests__/RuntimeState.test.ts@@ -25,7 +25,7 @@ describe("RuntimeState", () => {beforeEach(() => {vi.clearAllMocks();- mockSendComponentValues = vi.fn((args) => Promise.resolve(null));+ mockSendComponentValues = vi.fn(() => Promise.resolve(null));uiElementRegistry = UIElementRegistry.INSTANCE;uiElementRegistry.entries.clear();diff --git a/frontend/src/core/wasm/bridge.ts b/frontend/src/core/wasm/bridge.tsindex 9aa2ca80fd..30e1e9b668 100644--- a/frontend/src/core/wasm/bridge.ts+++ b/frontend/src/core/wasm/bridge.ts@@ -407,7 +407,7 @@ export class PyodideBridge implements RunRequests, EditRequests {return response as Snippets;};- public openFile: EditRequests["openFile"] = async ({ path }) => {+ public openFile: EditRequests["openFile"] = async () => {const url = createShareableLink({code: null,baseUrl: window.location.origin,@@ -451,7 +451,7 @@ export class PyodideBridge implements RunRequests, EditRequests {return null;};- public sendInstantiate: RunRequests["sendInstantiate"] = async (request) => {+ public sendInstantiate: RunRequests["sendInstantiate"] = async () => {return null;};diff --git a/frontend/src/core/wasm/store.ts b/frontend/src/core/wasm/store.tsindex c2ffa970bd..d2bbe979db 100644--- a/frontend/src/core/wasm/store.ts+++ b/frontend/src/core/wasm/store.ts@@ -41,7 +41,7 @@ const urlFileStore: FileStore = {};export const domElementFileStore: FileStore = {- saveFile(contents: string) {+ saveFile(_contents: string) {// Do nothing},readFile() {@@ -54,7 +54,7 @@ export const domElementFileStore: FileStore = {};const remoteDefaultFileStore: FileStore = {- saveFile(contents: string) {+ saveFile(_contents: string) {// Do nothing},readFile() {@@ -79,7 +79,7 @@ export const mountConfigFileStore: FileStore = {};const emptyFileStore: FileStore = {- saveFile(contents: string) {+ saveFile(_contents: string) {// Do nothing},readFile() {diff --git a/frontend/src/core/wasm/worker/bootstrap.ts b/frontend/src/core/wasm/worker/bootstrap.tsindex a504ebf45d..1cc9707338 100644--- a/frontend/src/core/wasm/worker/bootstrap.ts+++ b/frontend/src/core/wasm/worker/bootstrap.ts@@ -85,7 +85,7 @@ export class DefaultWasmController implements WasmController {packages: ["micropip","msgspec",- getMarimoWheel(opts.version),+ getMarimoWheel(),"Markdown","pymdown-extensions","narwhals",diff --git a/frontend/src/core/wasm/worker/getMarimoWheel.ts b/frontend/src/core/wasm/worker/getMarimoWheel.tsindex 881cad5784..27a89f0532 100644--- a/frontend/src/core/wasm/worker/getMarimoWheel.ts+++ b/frontend/src/core/wasm/worker/getMarimoWheel.ts@@ -1,6 +1,6 @@/* Copyright 2026 Marimo. All rights reserved. */-export function getMarimoWheel(version: string) {+export function getMarimoWheel() {if (import.meta.env.DEV && import.meta.env.VITE_WASM_MARIMO_PREBUILT_WHEEL) {return "marimo-base";}diff --git a/frontend/src/plugins/impl/CodeEditorPlugin.tsx b/frontend/src/plugins/impl/CodeEditorPlugin.tsxindex 11331782ed..d48fe2c2c7 100644--- a/frontend/src/plugins/impl/CodeEditorPlugin.tsx+++ b/frontend/src/plugins/impl/CodeEditorPlugin.tsx@@ -71,7 +71,7 @@ const CodeEditorComponent = (props: CodeEditorComponentProps) => {});const handleChange = useEvent((newValue: string) => {- setLocalValue((_) => newValue);+ setLocalValue(newValue);if (typeof props.debounce === "number") {setValueDebounced(newValue);} else if (!props.debounce) {diff --git a/frontend/src/plugins/impl/RangeSliderPlugin.tsx b/frontend/src/plugins/impl/RangeSliderPlugin.tsxindex 538169d45f..3e056e46eb 100644--- a/frontend/src/plugins/impl/RangeSliderPlugin.tsx+++ b/frontend/src/plugins/impl/RangeSliderPlugin.tsx@@ -74,7 +74,6 @@ const RangeSliderComponent = ({start,stop,step,- steps,debounce,orientation,showValue,diff --git a/frontend/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx b/frontend/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsxindex 68fabfc6c8..48a7a1f6e0 100644--- a/frontend/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx+++ b/frontend/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx@@ -47,7 +47,7 @@ const ConnectedDataExplorerComponent = (props: DataTableProps): JSX.Element => {// Subscribe to the storeconst unsub = store.sub(chartSpecAtom, () => {const value = store.get(chartSpecAtom);- const { schema, ...withoutSchema } = value;+ const { schema: _schema, ...withoutSchema } = value;props.setValue(withoutSchema);});diff --git a/frontend/src/plugins/impl/data-explorer/state/reducer.ts b/frontend/src/plugins/impl/data-explorer/state/reducer.tsindex 0c87585c85..ec926c6cba 100644--- a/frontend/src/plugins/impl/data-explorer/state/reducer.ts+++ b/frontend/src/plugins/impl/data-explorer/state/reducer.ts@@ -47,7 +47,7 @@ const { valueAtom: chartSpecAtom, useActions } = createReducerAndAtoms(},set: (state, next: ChartSpec) => {// remove schema- const { schema, ...rest } = next;+ const { schema: _schema, ...rest } = next;return { ...state, ...rest };},},diff --git a/frontend/src/plugins/impl/data-frames/DataFramePlugin.tsx b/frontend/src/plugins/impl/data-frames/DataFramePlugin.tsxindex 886147372e..7a8ea0dcca 100644--- a/frontend/src/plugins/impl/data-frames/DataFramePlugin.tsx+++ b/frontend/src/plugins/impl/data-frames/DataFramePlugin.tsx@@ -192,7 +192,6 @@ const EMPTY: Transformations = {export const DataFrameComponent = memo(({columns,- dataframeName,pageSize,showDownload,lazy,diff --git a/frontend/src/plugins/impl/panel/PanelPlugin.tsx b/frontend/src/plugins/impl/panel/PanelPlugin.tsxindex 98d87c9368..0347c2b63d 100644--- a/frontend/src/plugins/impl/panel/PanelPlugin.tsx+++ b/frontend/src/plugins/impl/panel/PanelPlugin.tsx@@ -78,7 +78,7 @@ type T = Record<string, unknown>;// oxlint-disable-next-line typescript/consistent-type-definitionstype PluginFunctions = {- send_to_widget: <T>(req: {+ send_to_widget: (req: {message?: unknown;buffers?: unknown;}) => Promise<null | undefined>;diff --git a/frontend/src/plugins/impl/vega/make-selectable.ts b/frontend/src/plugins/impl/vega/make-selectable.tsindex 8631bac47b..f70f5afc80 100644--- a/frontend/src/plugins/impl/vega/make-selectable.ts+++ b/frontend/src/plugins/impl/vega/make-selectable.ts@@ -219,7 +219,7 @@ function removeSpecificParamsFromNestedSpecs(}if (filteredParams.length === 0) {- const { params, ...rest } = spec;+ const { params: _params, ...rest } = spec;return rest as SpecWithParams;}diff --git a/frontend/src/plugins/layout/RoutesPlugin.tsx b/frontend/src/plugins/layout/RoutesPlugin.tsxindex 1796f385ba..382b4eabd1 100644--- a/frontend/src/plugins/layout/RoutesPlugin.tsx+++ b/frontend/src/plugins/layout/RoutesPlugin.tsx@@ -56,7 +56,7 @@ const RoutesComponent = ({useEffect(() => {// Listen for route changes- const listener = (e: PopStateEvent | HashChangeEvent) => {+ const listener = () => {handleFindMatch(window.location);};window.addEventListener("hashchange", listener);diff --git a/frontend/src/stories/form-wrapper.stories.tsx b/frontend/src/stories/form-wrapper.stories.tsxindex 575fa94cc3..e4bc5fe3a8 100644--- a/frontend/src/stories/form-wrapper.stories.tsx+++ b/frontend/src/stories/form-wrapper.stories.tsx@@ -20,7 +20,7 @@ type Story = StoryObj<typeof FormWrapper>;const props: FormWrapperProps<string> = {currentValue: "currentValue",newValue: "currentValue",- setValue: (v) => {+ setValue: () => {toast({title: "Form submitted",});@@ -133,7 +133,7 @@ export const Validate: Story = {<FormWrapper{...props}shouldValidate={true}- validate={async ({ value }) => {+ validate={async () => {const random = Math.random();if (random < 0.8) {return `Failed to validate. Random number was ${random}`;diff --git a/frontend/src/stories/select.stories.tsx b/frontend/src/stories/select.stories.tsxindex b90f9ca79f..a9de78e347 100644--- a/frontend/src/stories/select.stories.tsx+++ b/frontend/src/stories/select.stories.tsx@@ -24,7 +24,7 @@ export default meta;type Story = StoryObj;export const Primary: Story = {- render: (args, ctx) => (+ render: () => (<Select><SelectTrigger className="w-64"><SelectValue placeholder="Select a fruit" />@@ -63,7 +63,7 @@ export const Primary: Story = {};export const Clearable: Story = {- render: (args, ctx) => {+ render: () => {const [value, setValue] = useState<string>("");return (<>diff --git a/frontend/src/stories/switchable-multi-select.stories.tsx b/frontend/src/stories/switchable-multi-select.stories.tsxindex 32a904f2ec..64dd02c46d 100644--- a/frontend/src/stories/switchable-multi-select.stories.tsx+++ b/frontend/src/stories/switchable-multi-select.stories.tsx@@ -15,7 +15,7 @@ export default meta;type Story = StoryObj;export const Primary: Story = {- render: (args, ctx) => {+ render: () => {const [value, setValue] = useState<string[]>([]);return (<TooltipProvider>diff --git a/frontend/src/utils/__tests__/batch-requests.test.ts b/frontend/src/utils/__tests__/batch-requests.test.tsindex b9dd407d90..124b1e11d6 100644--- a/frontend/src/utils/__tests__/batch-requests.test.ts+++ b/frontend/src/utils/__tests__/batch-requests.test.ts@@ -8,7 +8,7 @@ async function sleep(ms: number) {describe("batch", () => {it("should return the same promise for calls with the same key", async () => {- const loader = vi.fn().mockImplementation(async (arg) => {+ const loader = vi.fn().mockImplementation(async () => {await sleep(10);return "response";});@@ -25,7 +25,7 @@ describe("batch", () => {});it("should call loader again after the first promise resolves", async () => {- const loader = vi.fn().mockImplementation(async (arg) => {+ const loader = vi.fn().mockImplementation(async () => {await sleep(10);return "response";});@@ -40,7 +40,7 @@ describe("batch", () => {});it("should handle different keys separately", async () => {- const loader = vi.fn().mockImplementation(async (arg) => {+ const loader = vi.fn().mockImplementation(async () => {await sleep(10);return "response";});diff --git a/frontend/src/utils/blob.ts b/frontend/src/utils/blob.tsindex 0e3d1eaf2c..1019257f2e 100644--- a/frontend/src/utils/blob.ts+++ b/frontend/src/utils/blob.ts@@ -5,7 +5,7 @@ import {type DataURLString,} from "./json/base64";-export function serializeBlob<T>(blob: Blob): Promise<DataURLString> {+export function serializeBlob(blob: Blob): Promise<DataURLString> {return new Promise<DataURLString>((resolve, reject) => {const reader = new FileReader();reader.onload = (event) => {diff --git a/frontend/src/utils/zod-utils.ts b/frontend/src/utils/zod-utils.tsindex 905e79252d..0bee733c70 100644--- a/frontend/src/utils/zod-utils.ts+++ b/frontend/src/utils/zod-utils.ts@@ -2,9 +2,7 @@import z from "zod";-export function isZodArray<T>(- schema: z.ZodType,-): schema is z.ZodArray<z.ZodType> {+export function isZodArray(schema: z.ZodType): schema is z.ZodArray<z.ZodType> {return schema instanceof z.ZodArray;}