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
fix: preserve types in shared collection helpers (#11540)
Shahmir Varqhaa873dbd4afaa
diff --git a/frontend/src/utils/arrays.ts b/frontend/src/utils/arrays.tsindex a6c7e0709d..dea0a9bf54 100644--- a/frontend/src/utils/arrays.ts+++ b/frontend/src/utils/arrays.ts@@ -53,8 +53,7 @@ export function arrayShallowEquals<T>(a: T[], b: T[]): boolean {}export const Arrays = {- // oxlint-disable-next-line typescript/no-explicit-any- EMPTY: [] as any,+ EMPTY: [],/** Keep values present in both arrays, preserving the first array's order and duplicates. */intersection<T>(values: readonly T[], included: readonly T[]): T[] {const includedSet = new Set(included);diff --git a/frontend/src/utils/maps.ts b/frontend/src/utils/maps.tsindex 0dc758700e..88bb2fe09c 100644--- a/frontend/src/utils/maps.ts+++ b/frontend/src/utils/maps.ts@@ -1,10 +1,7 @@/* Copyright 2026 Marimo. All rights reserved. */-/* oxlint-disable typescript/no-explicit-any */import { Logger } from "./Logger";-type NoInfer<T> = [T][T extends any ? 0 : never];-export const Maps = {/*** keyBy for Map, with duplicate key detection.diff --git a/frontend/src/utils/objects.ts b/frontend/src/utils/objects.tsindex e128038c5a..b44043aebc 100644--- a/frontend/src/utils/objects.ts+++ b/frontend/src/utils/objects.ts@@ -102,8 +102,7 @@ export const Objects = {return Objects.filter(obj, (_, key) => !set.has(key));},- // oxlint-disable-next-line typescript/no-explicit-any- pick<V extends Record<string, any>, K extends string>(+ pick<V extends Record<string, unknown>, K extends string>(obj: V,keys: readonly K[],): Pick<V, K & keyof V> {