Skip to content

fix: typing for numpy as indices - #10014

Merged
dmadisetti merged 2 commits into
mainfrom
dm/type-fix
Jun 29, 2026
Merged

dmadisetti merged 2 commits into
mainfrom
dm/type-fix

Conversation

@dmadisetti

@dmadisetti dmadisetti commented Jun 29, 2026 •

Copy link
Copy Markdown
Member

📝 Summary

CI is currently broken due to a numpy update (e.g. https://github.com/marimo-team/marimo/actions/runs/28386107852/job/84108138102)

This uses .tolist() which returns numbers opposed to numpy primitives for indexing

Review in cubic

Copilot AI review requested due to automatic review settings June 29, 2026 16:49
@vercel

vercel Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Jun 29, 2026 4:51pm

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts Plotly selection extraction logic to avoid NumPy scalar indices (e.g., np.int64) leaking into list/sequence indexing, which can break type-checking after NumPy typing/stub updates.

Changes:

  • Iterate over NumPy-produced index arrays via .tolist() in _extract_bars_numpy.
  • Iterate over np.where(mask)[0] via .tolist() in _extract_funnel_stages_numpy, and remove the now-redundant int(i) cast when calling _build_funnel_stage_point.

@dmadisetti dmadisetti added the bug Something isn't working label Jun 29, 2026
@dmadisetti
dmadisetti merged commit a0b996c into main Jun 29, 2026
41 of 45 checks passed
@dmadisetti
dmadisetti deleted the dm/type-fix branch June 29, 2026 17:20
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.23.12-dev14

williambdean pushed a commit to williambdean/marimo that referenced this pull request Sep 6, 2026
## 📝 Summary

CI is currently broken due to a numpy update (e.g.
https://github.com/marimo-team/marimo/actions/runs/28386107852/job/84108138102)

This uses `.tolist()` which returns numbers opposed to numpy primitives
for indexing

<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/marimo-team/marimo/pull/10014?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview — ca127a0a Deployed Jun 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants