Selected changesmerged Sep 30, 2026
fix(next/image): Pin DNS resolution when fetching external images TypeScript · 362 + / 55 −
Introduces 13 new declarations in packages/next/src/server/image-optimizer.ts.
Adds new framework internals rather than adjusting what was there. Tests changed with it, with code of their own.
packages/next/src/server/image-optimizer.ts ↗ · 5 files
@@ -518,24 +537,286 @@ function isRedirect(statusCode: number) { return [301, 302, 303, 307, 308].includes(statusCode) } +function upstreamTimedOut(href: string): ImageError {+ Log.error('upstream image response timed out for', href)+ return new ImageError(+ 504,+ '"url" parameter is valid but upstream response timed out'+ )+}++const agentOptions = {+ keepAlive: true,+ timeout: 7_000,+}+type ImageRequestOptions = HttpRequestOptions & { imageLookupKey?: string }+type AgentGetName = (options?: HttpRequestOptions) => string++const getHttpAgentName = (+ HttpAgent.prototype as HttpAgent & { getName: AgentGetName }+).getName+const getHttpsAgentName = (+ HttpsAgent.prototype as HttpsAgent & { getName: AgentGetName }+).getName++class ImageHttpAgent extends HttpAgent {+ getName(options: ImageRequestOptions = {}): string {+ return `${getHttpAgentName.call(this, options)}:${options.imageLookupKey ?? ''}`+ }+}++class ImageHttpsAgent extends HttpsAgent {+ getName(options: ImageRequestOptions = {}): string {
model: Add GTE to TransformersPython · 1050 + / 0 −
Introduces 67 new declarations in src/transformers/models/gte/modeling_gte.py.
Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.
src/transformers/models/gte/modeling_gte.py ↗ · 13 files
@@ -0,0 +1,660 @@+# 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨+# This file was automatically generated from src/transformers/models/gte/modular_gte.py.+# Do NOT edit this file manually as any edits will be overwritten by the generation of+# the file from the modular. If any change should be done, please apply the change to the+# modular_gte.py file directly. One of our CI enforces this.+# 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨+# Copyright 2026 the HuggingFace Team. All rights reserved.+#+# 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.++from collections.abc import Callable++import torch+import torch.nn as nn+from torch.nn import BCEWithLogitsLoss, CrossEntropyLoss, MSELoss++from ...activations import ACT2FN, gelu+from ...integrations import use_kernel_forward_from_hub, use_kernelized_func+from ...masking_utils import create_bidirectional_mask+from ...modeling_layers import GradientCheckpointingLayer+from ...modeling_outputs import (+ BaseModelOutputWithPooling,+ MaskedLMOutput,
Use ListOptions for request arguments but panic on unsupported combinationsGo · 262 + / 19 −
Introduces 5 new declarations in staging/src/k8s.io/apiserver/pkg/storage/testing/correctness/correctness.go.
Adds new systems design rather than adjusting what was there. Tests changed with it, with code of their own.
staging/src/k8s.io/apiserver/pkg/storage/testing/correctness/correctness.go ↗ · 8 files
@@ -1111,6 +1113,146 @@ func correctnessTestSteps() []testStep { {Object: nil, Err: nil}, }, },+ {+ Name: "49. Create pod1 with ResourceVersion set returns ErrResourceVersionSetOnCreate",+ Request: Request{+ Op: OpCreate,+ Key: pod1Key,+ Create: CreateRequest{Object: withRV(pod1, "5")},+ },+ CorrectResponse: Response{Err: storage.ErrResourceVersionSetOnCreate},+ InvalidResponses: []Response{+ {Object: withRV(pod1, "19")},+ {Object: nil, Err: nil},+ },+ },+ {+ Name: "50. Create with empty key returns empty key error",+ Request: Request{+ Op: OpCreate,+ Key: "",+ Create: CreateRequest{Object: pod1},+ },+ CorrectResponse: Response{Err: fmt.Errorf("empty key: %q", "")},+ InvalidResponses: []Response{+ {Object: withRV(pod1, "19")},+ {Object: nil, Err: nil},+ },+ },+ {+ Name: "51. Get with key escaping the prefix returns invalid key error",+ Request: Request{+ Op: OpGet,
[TTS] Validate MagpieTTS evalset configs and centralize per-dataset evaluation overridesPython · 281 + / 139 −
Introduces 4 new declarations in nemo/collections/tts/modules/magpietts_inference/evaluation_config.py.
Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.
nemo/collections/tts/modules/magpietts_inference/evaluation_config.py ↗ · 9 files
@@ -0,0 +1,157 @@+# SPDX-FileCopyrightText: Copyright (c) 2025, 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.+"""+Evaluation configuration for MagpieTTS inference: the ``EvaluationConfig`` dataclass and the helpers that validate and+apply the per-dataset overrides of an evalset config entry.++This module has no heavy dependencies so that both ``evaluation`` and ``evaluate_generated_audio`` can import it+without an import cycle.+"""+from __future__ import annotations++from dataclasses import dataclass, replace+from typing import Optional++# Supported ASR backends: the values of --asr_model_type and of the "type" field of an evalset "asr_model" entry.+ASR_MODEL_TYPES = ("nemo", "nemo_with_prompt", "whisper")+# Keys of an evalset config entry that the inference/evaluation scripts read. Any other key is rejected, so that a+# misspelled override (e.g. "langauge") cannot silently leave the CLI-level value in force; training-only DatasetMeta+# fields such as "feature_dir" or "sample_weight" do not belong in an evaluation config.+EVALSET_ENTRY_KEYS = frozenset(+ {
TYP: new ``numpy.typing`` shape-typed array aliasesPython · 159 + / 18 −
Introduces 14 new declarations in numpy/_typing/_add_docstring.py.
Adds new language design rather than adjusting what was there. Read the linked PR for the surrounding test context.
numpy/_typing/_add_docstring.py ↗ · 9 files
@@ -150,4 +149,109 @@ def _parse_docstrings() -> str: """) +add_newdoc('Array0D[ST: generic]', None,+ """+ A 0-d `NDArray` generic type alias.++ .. code-block:: python++ type Array0D[ST: generic] = ndarray[tuple[()], dtype[ST]]++ .. versionadded:: 2.6++ Examples+ --------+ .. code-block:: python++ >>> import numpy as np+ >>> import numpy.typing as npt++ >>> x: npt.Array0D[np.float64] = np.array(3.14)++ """)++add_newdoc('Array1D[ST: generic]', None,+ """+ A 1-d `NDArray` generic type alias.++ .. code-block:: python++ type Array1D[ST: generic] = ndarray[tuple[int], dtype[ST]]++ .. versionadded:: 2.6