Selected changesmerged Nov 20, 2026 – Nov 26, 2026
fix: Apply Plotly relayouts and restyles sent before renderTypeScript · 173 + / 8 −
Introduces 3 new declarations in panel/models/plotly.ts.
Adds new framework internals rather than adjusting what was there. Tests changed with it, with code of their own.
panel/models/plotly.ts ↗ · 3 files
@@ -79,6 +79,99 @@ const decodeUndefined = (obj: any): any => { return obj } +type PlotlyUpdate = {[key: string]: unknown}++/**+ * A relayout, or a restyle of a single trace, sent before the plot rendered.+ * Applied in order once plotted, they leave the plot as it would be had they+ * been applied as they arrived.+ */+type PendingUpdate = {kind: "relayout", data: PlotlyUpdate} | {kind: "restyle", trace: number, data: PlotlyUpdate}++const is_descendant = (key: string, of: string): boolean => {+ return key.startsWith(`${of}.`) || key.startsWith(`${of}[`)+}++const parent_path = (key: string): string => {+ const index = Math.max(key.lastIndexOf("."), key.lastIndexOf("["))+ return index < 0 ? "" : key.slice(0, index)+}++/**+ * The array an item-level key such as `annotations[0]` writes to. Plotly+ * treats such a write as an insert (or, with null, a removal) that shifts+ * the items after it, so it is never superseded and orders later writes.+ */+const item_array = (key: string): string | null => {+ return key.endsWith("]") ? key.slice(0, key.lastIndexOf("[")) : null+}++const within = (key: string, path: string): boolean => key == path || is_descendant(key, path)++/**
fix: Fire Tabulator on_edit when its edit event arrives after the data patchPython · 51 + / 7 −
Introduces 4 new declarations in panel/widgets/tables.py.
Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.
panel/widgets/tables.py ↗ · 3 files
@@ -1879,17 +1912,28 @@ def _process_event(self, event) -> None: for cb in self._on_click_callbacks.get(event_col, []): state.execute(partial(cb, event), schedule=False) + def _edit_applied(self, event: TableEditEvent, column: str, indexed: bool) -> bool:+ if _values_equal(event.old, event.value) or not (0 <= event.row < len(self.value)):+ return False+ if indexed:+ current = self.value[column].iloc[event.row]+ else:+ current = to_narwhals(self.value).item(event.row, column)+ return _values_equal(current, event.value)+ def _fire_pending_edits(self, column: str, index) -> None: if not self._pending_edits: return for ind in index: events = self._pending_edits.pop((column, ind), None)- if not events:- continue- for event in events:- for cb in self._on_edit_callbacks:- state.execute(partial(cb, event), schedule=False)- self._update_style()+ if events:+ self._fire_edits(events)++ def _fire_edits(self, events: list[TableEditEvent]) -> None:+ for event in events:+ for cb in self._on_edit_callbacks:+ state.execute(partial(cb, event), schedule=False)+ self._update_style() def _get_theme(self, theme, resources=None):
TST: fix flaky memory growth testsPython · 47 + / 20 −
Introduces 5 new declarations in numpy/testing/_private/utils.py.
Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.
numpy/testing/_private/utils.py ↗ · 3 files
@@ -2924,24 +2924,42 @@ def run_subprocess(cmd, cwd=None, **kwargs): return res +def run_function_with_args_in_subprocess(func, *args):+ """Call ``func(*args)`` in a new Python subprocess, failing the test if+ it raises.++ ``func`` must be a module-level function and ``args`` must survive a+ round trip through `repr`.+ """+ import pytest++ if not HAS_SUBPROCESSES:+ pytest.skip("requires subprocesses")+ location = (func.__module__,+ getattr(sys.modules[func.__module__], "__file__", None),+ func.__qualname__)+ code = ("from numpy.testing._private.utils import _load_function; "+ f"_load_function(*{location!r})(*{args!r})")+ run_subprocess([sys.executable, "-c", code])++ def run_with_memory_limit(func, make_args, limit): """Fail the test if any call needs more than ``limit`` bytes of address space beyond what the process already uses. ``make_args()`` returns a mapping of labels to argument tuples, and ``func(*args)`` runs for each of them. Both run in a fresh subprocess, so they must be module-level functions, and each call runs in its own forked- child of that subprocess. Runs on Linux and on arm64 macOS 26 or later.+ child of that subprocess. Runs on Linux only. """ import pytest
make `ReturnsVisitor` more accurate Rust · 56 + / 27 −
Introduces 3 new declarations in compiler/rustc_trait_selection/src/error_reporting/traits/suggestions.rs.
Adds new language design rather than adjusting what was there. Tests changed with it, with code of their own.
compiler/rustc_trait_selection/src/error_reporting/traits/suggestions.rs ↗ · 3 files
@@ -6915,51 +6915,80 @@ impl<'v> Visitor<'v> for SelfVisitor<'v> { #[derive(Default)] pub struct ReturnsVisitor<'v> { pub returns: Vec<&'v hir::Expr<'v>>,- in_block_tail: bool,+ /// The set of items in tail position that can be targeted with a break (loops and blocks).+ /// A break to such an item is a return.+ break_targets_in_tail_position: FxHashSet<HirId>, } impl<'v> Visitor<'v> for ReturnsVisitor<'v> { fn visit_expr(&mut self, ex: &'v hir::Expr<'v>) {- // Visit every expression to detect `return` paths, either through the function's tail- // expression or `return` statements. We walk all nodes to find `return` statements, but- // we only care about tail expressions when `in_block_tail` is `true`, which means that- // they're in the return path of the function body. match ex.kind {- hir::ExprKind::Ret(Some(ex)) => {- self.returns.push(ex);+ hir::ExprKind::Ret(Some(val)) => self.returns.push(val),+ hir::ExprKind::Break(dest, Some(val)) if let Ok(id) = dest.target_id => {+ // If this is a break to a block/loop in tail position, this is a return.+ if self.break_targets_in_tail_position.contains(&id) {+ self.returns.push(val)+ }+ }+ hir::ExprKind::Become(_) => {+ // A become is like a return, but for diagnostics it is not useful to treat it as+ // one. Often suggestions will break the tail call. }- hir::ExprKind::Block(block, _) if self.in_block_tail => {- self.in_block_tail = false;+ _ => {}+ }
fmt: Improve `Debug` for `FormattingOptions`Rust · 68 + / 1 −
Introduces 3 new declarations in library/core/src/fmt/mod.rs.
Adds new language design rather than adjusting what was there. Tests changed with it, with code of their own.
library/core/src/fmt/mod.rs ↗ · 2 files
@@ -535,6 +535,49 @@ impl FormattingOptions { pub const fn create_formatter<'a>(self, write: &'a mut (dyn Write + 'a)) -> Formatter<'a> { Formatter { options: self, buf: write } }++ /// Recreate a format specifier like `-<04x` matching these options. Public only for testing.+ #[doc(hidden)]+ #[unstable(feature = "fmt_internals", issue = "none")]+ pub fn write_fmt_specifier(&self, f: &mut Formatter<'_>, str_escape: bool) -> Result {+ let fill = self.get_fill();+ if fill != ' ' {+ if str_escape {+ write!(f, "{}", fill.escape_debug())?;+ } else {+ write!(f, "{fill}")?;+ }+ }+ match self.get_align() {+ Some(Alignment::Left) => write!(f, "<")?,+ Some(Alignment::Right) => write!(f, ">")?,+ Some(Alignment::Center) => write!(f, "^")?,+ None => (),+ }+ match self.get_sign() {+ Some(Sign::Plus) => write!(f, "+")?,+ Some(Sign::Minus) => write!(f, "-")?,+ None => (),+ }+ if self.get_alternate() {+ write!(f, "#")?;+ }+ if self.get_sign_aware_zero_pad() {+ write!(f, "0")?;+ }
Implement RangeIntersect on core::range typesRust · 450 + / 71 −
Introduces 60 new declarations in library/core/src/range.rs.
Adds new language design rather than adjusting what was there. Tests changed with it, with code of their own.
library/core/src/range.rs ↗ · 4 files
@@ -759,3 +760,452 @@ where (OneSidedRangeBound::EndInclusive, self.last) } }++/// Computes the intersection of two ranges, returning the most specific range type possible.+///+/// This trait is not implemented for all combinations, only the ones with a good+/// `Self::Intersection` type available.+///+/// However, because `(Bound<T>, Bound<T>): RangeIntersect`, you can always use+/// `a.into_bounds().intersect(b.into_bounds())` for any two [`IntoBounds`] types if needed.+///+/// # Examples+///+/// ```+/// #![feature(range_intersect)]+/// use core::range::{Range, RangeFrom, RangeInclusive, RangeIntersect};+///+/// assert_eq!(+/// Range::from(-12..387).intersect(Range::from(0..256)),+/// Range::from(0..256),+/// );+/// assert_eq!(+/// RangeFrom::from(3..).intersect(..5),+/// Range::from(3..5),+/// );+/// assert_eq!(+/// RangeInclusive::from(1..=9).intersect(RangeFrom::from(5..)),+/// RangeInclusive::from(5..=9),+/// );+/// ```+///+/// Combine with `is_empty` to determine if two ranges overlap:
sqlite: enforce permission model on file accessC++ · 847 + / 15 −
Introduces 11 new declarations in src/node_sqlite_vfs.cc.
Adds new runtime rather than adjusting what was there. Tests changed with it, with code of their own.
src/node_sqlite_vfs.cc ↗ · 9 files
@@ -0,0 +1,671 @@+#include "node_sqlite_vfs.h"++#include "env-inl.h"+#include "path.h"+#include "permission/permission.h"++#include <algorithm>+#include <atomic>+#include <cctype>+#include <cstring>+#include <string>+#include <string_view>+#include <utility>++namespace node {+namespace sqlite {++namespace {++std::atomic<uint64_t> next_vfs_id{0};++bool IsSidecarPath(std::string_view path, std::string* database_path) {+ constexpr std::string_view suffixes[] = {"-journal", "-wal", "-shm"};+ for (const std::string_view suffix : suffixes) {+ if (path.size() > suffix.size() && path.ends_with(suffix)) {+ *database_path = path.substr(0, path.size() - suffix.size());+ return true;+ }+ }++ // SQLite names super-journals as <database>-mjXXXXXX9XX, where X is a hex+ // digit (see pagerIsSuperJrnlName()). A permission granted for the+ // database also covers its super-journal.
Turbopack: diff server HMR pulls against a Rust-owned loaded-module setRust · 666 + / 505 −
Introduces 44 new declarations in crates/next-api/src/aggregate_hmr.rs.
Adds new framework internals rather than adjusting what was there. Tests changed with it, with code of their own.
crates/next-api/src/aggregate_hmr.rs ↗ · 27 files
@@ -199,321 +422,251 @@ impl CompilationEvent for ServerHmrChunkListDiffEvent { } } -async fn diff_chunks_against(- chunk_lists: &[ServerHmrChunkList],- from: &ServerHmrChunkListVersion,-) -> Result<DiffResult> {- let current_chunk_list_paths = chunk_lists- .iter()- .map(|chunk_list| &chunk_list.relative_path)- .collect::<FxIndexSet<_>>();- let has_removed_chunk_lists = from- .versions_by_chunk_list_path- .keys()- .any(|path| !current_chunk_list_paths.contains(path));- let mut has_new_chunk_lists = false;- let chunk_updates = chunk_lists- .iter()- .filter_map(- |ServerHmrChunkList {- relative_path,- versioned_content,- }| {- if *TRACE_DIFFING {- turbo_tasks().send_compilation_event(Arc::new(ServerHmrChunkListDiffEvent {- chunk_list_path: relative_path.clone(),- }));- }- let Some(prev) = from.versions_by_chunk_list_path.get(relative_path).cloned()- else {- has_new_chunk_lists = true;- return None;- };
TST: fix incorrect memory growth testPython · 23 + / 12 −
Introduces 4 new declarations in numpy/testing/_private/utils.py.
Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.
numpy/testing/_private/utils.py ↗ · 3 files
@@ -3079,30 +3079,41 @@ def growth(): tracemalloc.stop() -def assert_memory_growth_below(func, limit, repeat=10):+def assert_memory_growth_below(func, limit, repeat=10, make_args=None): """Fail if more than ``limit`` bytes are still allocated after calling ``func()`` ``repeat`` times. ``func`` is called once before the measurement starts. It runs in a- new subprocess, so it must be a module-level function.+ new subprocess, so it must be a module-level function. If ``make_args``+ is given, it must be a module-level function too. It is called once in+ the subprocess before the measurement starts and returns a tuple of+ arguments that is passed to every call of ``func``. """ import pytest # not available on PyPy pytest.importorskip("tracemalloc")- location = (func.__module__,- getattr(sys.modules[func.__module__], "__file__", None),- func.__qualname__)+ locations = [+ None if f is None else (+ f.__module__,+ getattr(sys.modules[f.__module__], "__file__", None),+ f.__qualname__)+ for f in (func, make_args)] run_function_with_args_in_subprocess(- _assert_memory_growth_below, location, limit, repeat)+ _assert_memory_growth_below, *locations, limit, repeat)
feat(asr): Triton kernel for the sequence-packed relative-position attentionPython · 1130 + / 66 −
Introduces 35 new declarations in nemo/collections/asr/parts/triton/rel_pos_attention.py.
Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.
nemo/collections/asr/parts/triton/rel_pos_attention.py ↗ · 12 files
@@ -0,0 +1,914 @@+# SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.+# SPDX-License-Identifier: Apache-2.0+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.++"""Transformer-XL self-attention over sequence-packed activations, with dropout on the attention weights.++The utterances of a batch are concatenated along the token axis;+``seq_starts`` and ``seq_lens`` say where each one lies, so gaps between them are allowed,+and a program of the kernels never reads or writes a row outside its utterance.+Queries, keys and values have shape ``(T_total, H, D)``.+The score of query position ``i`` and key position ``j`` of one utterance is+``scale * q_i . k_j + scale * pos_query_i . pos_emb[c - (i - j)]`` with ``c = max_seqlen - 1``,+the convention of ``RelPositionMultiHeadAttention`` (``rel_shift`` selects the same entries in the padded forward).++The position term ``(T_total, H, 2 * max_seqlen - 1)`` is computed from ``pos_query`` and ``pos_emb``+inside the custom ops, in the forward and again in the backward,+so it is never saved for the backward and no layer retains one;+the kernels read it through 64-bit offsets,+since ``H * T_total * (2 * max_seqlen - 1)`` passes 2**31 at large packed batches.+Its buffer is ``(H, T_total, R)`` with ``R`` rounded up to a multiple of eight,+because an odd leading dimension sends the GEMMs to slow unaligned kernels;+the kernels take the strides of the ``(T_total, H, R)`` view.
feat(CodeEditor): add line markers and style the read-only tooltipTypeScript · 119 + / 5 −
Introduces 6 new declarations in panel/models/ace.ts.
Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.
panel/models/ace.ts ↗ · 7 files
@@ -119,6 +140,53 @@ export class AcePlotView extends HTMLBoxView { } } + _update_readonly(): void {+ this._editor.setReadOnly(this.model.readonly)+ // Ace creates the "Editing is disabled" tooltip on document.body, outside+ // the shadow root holding Ace's CSS, unless the editor already has one.+ // It drops the tooltip whenever read-only is turned off, so attach a new+ // one to the shadow root each time it is turned on.+ const editor = this._editor as any+ if (this.model.readonly && editor.hoverTooltip == null) {+ const {HoverTooltip} = (ace as any).require("ace/tooltip")+ editor.hoverTooltip = new HoverTooltip(this.shadow_el)+ }+ }++ _update_markers(): void {+ const session = this._editor.session+ for (const id of this._marker_ids) {+ session.removeMarker(id)+ }+ for (const [row, cls] of this._gutter_marks) {+ session.removeGutterDecoration(row, cls)+ }+ this._marker_ids = []+ this._gutter_marks = []+ const {Range} = (ace as any).require("ace/range")+ for (const marker of this.model.markers as Marker[]) {+ const start = marker.start_row+ if (typeof start !== "number") {+ continue+ }+ const end = marker.end_row ?? start
test_runner: junit fixesJavaScript · 76 + / 22 −
Introduces 5 new declarations in lib/internal/test_runner/reporter/junit.js.
Adds new runtime rather than adjusting what was there. Tests changed with it, with code of their own.
lib/internal/test_runner/reporter/junit.js ↗ · 5 files
@@ -64,17 +77,56 @@ function isSkipped(node) { return (node?.children && ArrayPrototypeSome(node.children, (c) => c.tag === 'skipped')) || node?.attrs?.skipped; } +function setSuiteAttrs(node, tests) {+ node.tag = 'testsuite';+ node.attrs.disabled = 0;+ node.attrs.errors = 0;+ node.attrs.tests = tests;+ node.attrs.failures = ArrayPrototypeFilter(node.children, isFailure).length;+ node.attrs.skipped = ArrayPrototypeFilter(node.children, isSkipped).length;+}++// Give a test that started but never reported a result (e.g. because a test+// child process exited before all of its output was read) a valid element.+// A leaf is reported as a failure so that lost results don't look green.+function closeIncomplete(node) {+ const tests = ArrayPrototypeFilter(node.children, (c) => c.comment == null).length;+ if (tests > 0) {+ setSuiteAttrs(node, tests);+ node.attrs.hostname = HOSTNAME;+ return;+ }+ const message = 'test did not report a result';+ node.tag = 'testcase';+ node.attrs.classname = 'test';+ node.attrs.failure = message;+ ArrayPrototypePush(node.children, {+ __proto__: kEmptyObject, nesting: node.nesting + 1, tag: 'failure',+ attrs: { __proto__: kEmptyObject, type: 'incomplete', message },+ });+}+ module.exports = async function* junitReporter(source) {