Skip to content

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.

fix: preserve types in shared collection helpers (#11540)

Shahmir Varqhaa873dbd4afaa
diff --git a/frontend/src/utils/arrays.ts b/frontend/src/utils/arrays.ts
index 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.ts
index 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.ts
index 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> {