fix(deps): update all non-major dependencies #116

Open
renovate-bot wants to merge 1 commit from renovate/all-minor-patch into main
Collaborator

This PR contains the following updates:

Package Change Age Confidence Type Update Pending
panel ==1.9.4 → ==1.10.0 age confidence project.optional-dependencies minor
pydantic (changelog) ==2.11.4 → ==2.14.3 age confidence project.dependencies minor
pydantic-settings (changelog) ==2.10.1 → ==2.16.2 age confidence project.dependencies minor 2.16.3
pymupdf (changelog) ==1.25.5 → ==1.28.2 age confidence project.optional-dependencies minor
pytest (changelog) ==9.0.3 → ==9.2.0 age confidence project.optional-dependencies minor
pytest-asyncio (changelog) ==1.4.1.post1 → ==1.5.0 age confidence project.optional-dependencies minor
python 3.12 → 3.15 age confidence uses-with minor
selenium ==4.32.0 → ==4.52.0 age confidence project.optional-dependencies minor
webdriver-manager ==4.0.2 → ==4.1.2 age confidence project.optional-dependencies minor

Release Notes

holoviz/panel (panel)

v1.10.0

Compare Source

Panel 1.10.0 is a major step towards Panel 2.0. The headline is panel.ui, a single namespace that combines the Material UI components from panel-material-ui with the classic Panel components that have no Material equivalent, together with a panel migrate codemod that rewrites existing apps to use it. Panel now also ships its own native ASGI server, replacing bokeh-fastapi and bokeh-django, so panel serve --server fastapi|asgi works out of the box and OAuth behaves identically across transports.

Components no longer have to be declared up front: a component that wraps a JavaScript library now loads its resources on demand the first time it renders, so forgetting pn.extension('tabulator') no longer results in a blank component. The server pages (index, login, logout and error pages) and the /admin dashboard have been restyled to match panel-material-ui and can be branded with the new pn.config.page_config, and the admin dashboard can now be secured independently of the apps it monitors.

The release also contains significant performance improvements: rendering of JSComponent and ReactComponent (and therefore all of panel-material-ui) no longer scales quadratically with the number of components, streaming into Markdown and HTML panes has a roughly constant rendering cost per token so long responses stream at a steady rate, and Tabulator no longer pulls in the 500 KB bokeh-tables bundle. It also includes a long list of robustness fixes, including for Tabulator edits, busy state tracking, notebook resource loading under RequireJS, caching and periodic callbacks.

This release requires Bokeh 3.10 and drops support for Python 3.10 and 3.11, while adding support for Python 3.15. It also deprecates the REST providers, pn.state.publish and pn.widgets.DataFrame, and removes the long-deprecated LangChain callback handler.

Many thanks to the contributors to this release: @​philippjfr, @​hoxbro, @​chiruu12, @​MohammadHijjawi97, @​ebarkhordar, @​Kayvan-Zahiri, @​ghostiee-11, @​Azaya89, @​rimsha152007-dotcom, @​EltonChang1, @​Bortlesboat, @​ATL2001, @​ZainnQureshii, @​vignesh-chaturvedi, @​IDavinciCode, @​mvanhorn, @​SatvikMishra08, @​YashAnand69, @​Cherith1222, @​anshurajbisoyi98-ctrl, @​Coderambling, @​Jojoussef and @​wolfgang-aura.

🚀 Features
  • Add the panel.ui namespace, which exports every Material component from panel-material-ui and the classic components without a Material equivalent (e.g. Tabulator, CodeEditor, Terminal), both at the top level (pn.ui.Button) and through widgets, layout, pane, chat, indicators, template and wrappers submodules. The namespace is loaded lazily so import panel stays as light-weight as before, and using it selects the MaterialUIDesign for the current session unless a design was chosen explicitly (#​8752, #​8877)
  • Add Material implementations of Modal, WidgetBox and Debugger that retain the classic API (#​8752)
  • Add pn.ui.Param, pn.ui.HoloViews and pn.ui.panel, which always generate Material UI widgets regardless of the active design, while pn.Param and pn.pane.HoloViews keep generating widgets for the active design (#​8883)
  • Add the panel migrate command (installed with the panel[migrate] extra), which rewrites classic imports to pn.ui, name= to label=, button_type/button_style to color/variant, MenuButton(split=True) to SplitButton and compatible templates to pn.ui.Page, and reports anything it cannot rewrite safely. --check and --diff preview the changes without writing them (#​8752)
  • Add native ASGI server implementations for FastAPI and Django built on Bokeh 3.10's transport-neutral server layer, dropping the bokeh-fastapi and bokeh-django dependencies. panel serve gains a --server option accepting tornado (the default), fastapi and asgi, and wildcard routes, pn.state.route_params, static directories and OAuth work the same on every server (#​8722)
  • Load component resources on demand, so components such as Tabulator, ECharts or Perspective render without first being declared via pn.extension(...), including when they are created in a callback after the page has loaded. Declaring an extension is now only a preloading and bundling hint (#​8745)
  • Support template="page" in pn.extension and pn.config.template, resolving to pn.ui.Page, with .servable(target=...) routing into its main, sidebar, header and contextbar areas (#​8808)
  • Add pn.config.page_config (also settable with panel serve --page-config and the PANEL_PAGE_CONFIG environment variable) to enable branding of the server index, login, logout and error pages with the same theme, logo, favicon and title options as pn.ui.Page. Pages also fall back to the class defaults of Page, so a brand module passed to --setup themes apps and server pages at once (#​8802)
  • Add access control for the admin dashboard with --admin-password (PANEL_ADMIN_PASSWORD), which secures only the admin endpoint behind a login page, and --admin-users (PANEL_ADMIN_USERS), which restricts it to specific users of --basic-auth or --oauth-provider (#​8805)
  • Render any DataFrame-like object supported by Narwhals (polars, pyarrow, modin, cuDF, ...) in the DataFrame pane (#​8744)
  • Add a Jupyter server extension resource endpoint so notebooks running a plain kernel can load Panel and component resources without access to a public CDN, falling back to the CDN with a visible warning if the endpoint is unreachable (#​8762)
  • Allow configuring the CDN that converted apps load Pyodide from with pn.config.pyodide_cdn_root and the PANEL_PYODIDE_CDN_ROOT environment variable, enabling panel convert apps in air-gapped environments (#​8784)
  • Add an approximate argument to pn.cache; setting approximate=False hashes all of a large DataFrame or array instead of a sample of 100,000 rows (#​8759)
✨ Enhancements
  • Rebuild the /admin dashboard with panel.ui as a Page with sidebar navigation, lazily built pages, per-session log filters, literal case-insensitive text filtering, Clear filters and Download log buttons, and page_config theming (#​8805)
  • Add Design.component_mapping and Design.widget_mapping so designs can substitute the widgets Panel generates in Param, interact and HoloViews widgets (#​8752)
  • Route the loading indicator through the Design, allowing designs to declare their own spinner, and add a material spinner whose overlay follows the theme so dark themes no longer flash white (#​8752)
  • Add config.set_if_unset(), panel.theme.resolve_design() and string values for config.design (e.g. config.design = 'material-ui') (#​8752)
  • Select the MaterialUIDesign per session when an app uses panel.ui, so classic apps served from the same process keep their design, and resolve the design and theme of components without an explicit design when they render rather than when they are created (#​8877)
  • Expose the generate_palette and linear_gradient palette helpers in panel.ui.theme (#​8868)
  • Rename size to icon_size on ToggleIcon and ButtonIcon in panel migrate, flagging calls that size the icon through width or height for review (#​8854)
  • Theme classic components such as Tabulator, CodeEditor, JSONEditor, Markdown, Terminal, Dial, Gauge and LinearGauge from the MUI palette under the MaterialUIDesign (#​8752)
  • Share and reference count a single model per root when the same component is rendered in several places, so every view keeps receiving updates and removing it from one parent no longer breaks the others (#​8830)
  • Serve session info from a built-in /session_info endpoint on every server implementation instead of via the param REST provider (#​8828)
  • Update value_throttled when a slider value is set from Python (#​8712)
  • Yield to the event loop when a periodic callback overruns its period (#​8755)
  • Keep the count and timeout budgets of a periodic callback across a period change (#​8757)
  • Converted Pyodide apps no longer install and patch pyodide-http, since current Pyodide supports requests and urllib3 natively; the --disable-http-patch option was removed (#​8777)
⚡ Performance
  • Speed up ReactiveESM and ReactComponent rendering, eliminating layout work that scaled with the square of the number of components and React subtree remounts on re-render; this benefits every panel-material-ui app (#​8795)
  • Make streaming into Markdown and HTML panes roughly constant in rendering cost per token by coalescing updates, re-rendering only the trailing Markdown block and sending HTML splices rather than re-sending the tail (#​8800)
  • Render Tabulator without the bokeh-tables bundle (507 KB minified), which is now only loaded when a DataTable or DataCube is rendered, in notebooks or when requested with pn.extension('bokeh-tables') (#​8837)
  • Lay out ESM children once per mount instead of once per child (#​8786)
  • Replace the gl-matrix dependency in the VTK axes with two small helpers (#​8835)
🎨 UI Improvements
  • Restyle the server index, panel convert index, error, kernel error, login and logout pages to match panel-material-ui, so they share one stylesheet that follows the operating system's dark mode. Search on the index page now also matches paths and ?search= is applied on load (#​8802)
  • Restyle the DataFrame pane following Material Design table conventions with theme-aware hover and divider colors (#​8744)
  • Improve Dial rendering and theming (#​8796)
  • Keep Tabulator hidden until it is built and styled to avoid a flash of unstyled content (#​8799)
  • Use a single loading indicator in converted apps (#​8827)
🐛 Bug Fixes
  • Make Tabulator edits robust by sending the edited value and old value with the edit event, fixing on_edit callbacks that reported stale values and edits under remote pagination that could corrupt a sibling row (#​8731)
  • Ignore stale Tabulator data and server-side stream echoes (#​8797)
  • Prevent Tabulator page reset when clicking Last on a shrunk container (#​8738)
  • Fix the Tabulator keywords header filter raising an error when header_filters=True (#​8726)
  • Honor matchAll in Tabulator keywords header filters when pagination is not remote (#​8842)
  • Show the Tabulator loading spinner when the table has no columns (#​8807)
  • Re-measure Tabulator columns once web fonts have loaded, so headers are no longer truncated in apps with a custom font, and stop the container_popup spacer column from showing a sort arrow (#​8896)
  • Fix component libraries (Tabulator, ECharts, Vega, KaTeX, DeckGL, JSONEditor) failing to load in notebooks with RequireJS, i.e. classic Jupyter notebook and VS Code, including on networks that block the public CDNs, where the bundled copies of the libraries are now loaded instead (#​8762, #​8848)
  • Stop busy state from echoing between server and client and from leaking across threads, which left busy indicators such as the Page progress bar visible while the server was idle (#​8780)
  • Make busy state cleanup robust to state resets, missing event loops and failed submits (#​8838)
  • Fix several cache hashing collisions: reordered DataFrame rows, frames differing only in dtypes, same-named closures and scalars of different types (e.g. 0 and False) no longer share cache entries (#​8759)
  • Hash value-type arguments such as UUID, Decimal, Fraction, IP addresses, enums and dataclasses by value in pn.cache instead of by id(), which could return another call's result (#​8821, #​8843)
  • Cache functions that have no module file (#​8770)
  • Ensure stylesheet models are not reused across sessions (#​8740)
  • Scope reactive stylesheets to their document (#​8769)
  • Keep notebook stylesheets inline after updates (#​8787)
  • Stop shared ESM watchers when they are no longer used (#​8775)
  • Stop the reset of a param.Event on a ReactiveESM component from re-triggering watchers, which made functions bound to a pn.ui.Button run a second time with False (#​8890)
  • Freeze ReactiveHTML _scripts at class creation so instances no longer share and overwrite each other's scripts (#​8861)
  • Skip JS callbacks on properties the rendered model does not have (#​8825)
  • Ignore click events on disabled buttons (#​8823)
  • Notify MenuButton callbacks when the same item is selected repeatedly (#​8810)
  • Keep TextInput value_input in sync when value is set from Python, so pressing Enter no longer reverts the value (#​8782)
  • Fix DatetimeSlider when start and end fall on the same day (#​8743)
  • Allow setting DateRangeSlider and DatetimeRangeSlider value to None (#​8901)
  • Serialize string values of LiteralInput as JSON when serializer='json' (#​8894)
  • Restore rejected boundary values on repeated throttled Param slider changes (#​8851)
  • Fix nested Plotly arrays being lost when syncing across clients (#​8758)
  • Clean up GridSpec children when deleting cells (#​8736)
  • Parse negative integers in URL query parameters as integers (#​8790)
  • Keep URL query values as strings when syncing String parameters (#​8814)
  • Raise a ValueError when pn.state.location.sync is asked to sync a constant parameter such as value_throttled, instead of silently ignoring the URL value (#​8902)
  • Abbreviate Parameterized objects inside lists in reprs (#​8792)
  • Reject unparsable schedule_task periods instead of looping (#​8812)
  • Strip IPython line magics when serving notebooks (#​8781)
  • Use CDN resources in exported notebooks (#​8776)
  • Treat converted Pyodide apps as served (#​8833)
  • Deliver every message, including binary data, to Python in apps converted with --to pyodide-worker (#​8844)
  • Handle the Windows ProactorEventLoop (#​8815)
  • Ensure the server thread shuts down fully before exiting (#​8741)
  • Resolve the design from the document each model was rendered into when a parameter changes, so a component shown in sessions with different designs no longer receives another session's stylesheets (#​8879)
  • Only load resources from the Jupyter server extension endpoint when Panel's server extension launched the kernel, fixing 404s for Panel's JS and component resources in other notebook frontends such as nteract (#​8863)
  • Dispatch changes made inside hold() to subscribers of a sessionless Document, so embedders that sync the Document over their own transport receive updates to ReactiveESM components and layout children (#​8862)
  • Detect the format of raw image bytes from the file signature, so JPEG, GIF and WebP bytes passed to pn.pane.Image are no longer encoded as PNG with nonsensical dimensions, and fix the dimensions of lossy WebP images (#​8875)
  • Detect local media files with uppercase extensions, e.g. pn.pane.Video('CLIP.MP4') (#​8867)
  • Fix an off-by-one error in Player in notebooks (#​8860)
  • Fix the inverted apple_icon condition in the base template that emitted an empty apple-touch-icon link (#​8752)
⚙️ Compatibility
  • Add compatibility with Bokeh 3.10, which is now the minimum supported version, and drop support for Python 3.10 and 3.11 (#​8716)
  • Add compatibility with the upcoming Bokeh 3.10.2 (#​8898)
  • Require panel-material-ui 0.16.6 or later (#​8899)
  • Add support for Python 3.15 (#​8767, #​8850)
  • Upgrade to the latest JupyterLite and Pyodide (v314.0.7) (#​8763)
  • Ignore the NumPy 2.5 ndarray.shape deprecation warning raised by VTK (#​8729)
  • Annotate subclasses in _descendents for mypy with Param 2.4 (#​8801)
⚠️ Deprecations and Removals
  • --rest-provider, --rest-endpoint, pn.state.publish and the panel.io.rest module are deprecated and will be removed in Panel 2.0; use --plugins to add custom endpoints instead. /rest/session_info is kept as a deprecated alias of /session_info, and --rest-provider is not supported on the ASGI servers (#​8828)
  • pn.widgets.DataFrame is deprecated in favor of Tabulator and will be removed in Panel 2.0; Param now always maps param.DataFrame parameters to Tabulator (#​8752)
  • The LangChain callback handler, deprecated since 1.8.0, has been removed (#​8689)
  • The bokeh-fastapi and bokeh-django dependencies have been dropped; see the upgrade guide for migrating Django integrations (#​8722)
  • The --disable-http-patch option of panel convert has been removed (#​8777)
  • PercentEditor and TimeEditor on Tabulator now use Tabulator's native input editor, and in served apps a DataFrame widget or hv.Table that first appears after the page has loaded requires pn.extension('bokeh-tables') (#​8837)
  • Components without an explicit design now have design=None and use the configured design when they render, so a design configured after a component is created but before it is rendered applies to it (#​8877)
  • Calling .servable() with an unknown target on the page template now raises a ValueError instead of being silently dropped (#​8808)
📚 Documentation
  • Add a new homepage and versioned documentation (#​8753)
  • Use pn.ui throughout the docs and gallery, generate the Component Gallery from the panel-material-ui reference notebooks and move the classic reference to reference/classic/ (#​8752)
  • Move the narrative docs to pn.ui.Page and rewrite the getting started, core concepts and templates guides around it (#​8808)
  • Migrate the tutorials to pn.ui and fix broken examples (#​8891)
  • Add pn.ui how-to guides for theming, palettes, typography, dark mode, branding, icons and building Material UI components (#​8892)
  • Modernize the gallery examples and add new apps, including a Gaia million star atlas, a model serving monitor and a storm surge studio (#​8798)
  • Add a how-to guide for theming server pages with page_config (#​8802)
  • Document the admin dashboard pages, plugins and access control (#​8805)
  • Document the --server option and per-server differences for endpoints, wildcard routes and static files (#​8722)
  • Document approximate hashing of large inputs in the caching guide (#​8759)
  • Document the Markdown docs and llms.txt (#​8715, #​8730)
  • Add a note on configuring the Param mypy plugin (#​8734)
  • Surface the guide on using Panel with an AI assistant in the How-to section (#​8846)
  • Explain running UI tests with Firefox and WebKit in the developer guide (#​8809)
  • Note that cell editing takes precedence over row-click selection in the Tabulator reference (#​8817)
  • Bring the parameter lists of the pane and layout reference notebooks in line with the code and add examples for many undocumented features (#​8882)
  • Only show the Material version banner on classic reference pages (#​8845)
  • Fix links to the Tabler icons site (#​8765)
  • Fix dead Extensions links in the gallery and use label= in the README example (#​8855)
  • Fix broken relative links in how-to guides (#​8773)
  • Fix unresolved cross-page anchor links (#​8836)
  • Fix the broken Troubleshooting card icon (#​8865)
pydantic/pydantic (pydantic)

v2.14.3

Compare Source

GitHub release

What's Changed
Packaging
Fixes

v2.14.2: 2026-10-29

Compare Source

v2.14.2 (2026-10-29)

This release addresses 2 security issues, https://github.com/pydantic/pydantic/security/advisories/GHSA-qpmf-fgh3-ff25 and https://github.com/pydantic/pydantic/security/advisories/GHSA-3r8g-cqwr-jr29.

Packaging
Performance
Fixes

Full Changelog: https://github.com/pydantic/pydantic/compare/v2.14.1...v2.14.2

v2.14.1

Compare Source

GitHub release

The code released in v2.5.0 is functionally identical to that of v2.5.0b1.

What's Changed
Packaging
  • Update pydantic-core from 2.10.1 to 2.14.1, significant changes from these updates are described below, full changelog here
  • Update to pyright==1.1.335 by @​Viicos in #​8075
New Features
Changes
  • Significant Change: replace ultra_strict with new smart union implementation, the way unions are validated has changed significantly to improve performance and correctness, we have worked hard to absolutely minimise the number of cases where behaviour has changed, see the PR for details - by @​davidhewitt in pydantic/pydantic-core#867
  • Add support for instance method reassignment when extra='allow' by @​sydney-runkle in #​7683
  • Support JSON schema generation for Enum types with no cases by @​sydney-runkle in #​7927
  • Warn if a class inherits from Generic before BaseModel by @​alexmojaki in #​7891
Performance
Fixes
New Contributors
pydantic
pydantic-core

v2.14.0

Compare Source

GitHub release

What's Changed

The highlights of the v2.14 release are available in the blog post.
Several minor changes (considered non-breaking changes according to our versioning policy)
are also included in this release. Make sure to look into them before upgrading.

This release drops support for Python 3.9 and adds support for Python 3.15.

New Features
Changes
Fixes
New Contributors

v2.13.5: 2026-08-28

Compare Source

v2.13.5 (2026-08-28)

What's Changed
Fixes

v2.13.4

Compare Source

GitHub release

What's Changed
Packaging
Fixes

v2.13.3

Compare Source

GitHub release

What's Changed
Fixes

v2.13.2

Compare Source

GitHub release

What's Changed
Fixes

v2.13.1

Compare Source

GitHub release

What's Changed
Fixes

v2.13.0

Compare Source

GitHub release

The highlights of the v2.13 release are available in the blog post.
Several minor changes (considered non-breaking changes according to our versioning policy)
are also included in this release. Make sure to look into them before upgrading.

This release contains the updated pydantic.v1 namespace, matching version 1.10.26 which includes support for Python 3.14.

What's Changed

See the beta releases for all changes sinces 2.12.

New Features
  • Allow default factories of private attributes to take validated model data by @​Viicos in #​13013
Changes
Fixes
  • Change type of Any when synthesizing _build_sources for BaseSettings.__init__() signature in the mypy plugin by @​Viicos in #​13049
  • Fix model equality when using runtime extra configuration by @​Viicos in #​13062
Packaging
New Contributors

v2.12.5

Compare Source

GitHub release

This is the fifth 2.12 patch release, addressing an issue with the MISSING sentinel and providing several documentation improvements.

The next 2.13 minor release will be published in a couple weeks, and will include a new polymorphic serialization feature addressing
the remaining unexpected changes to the serialize as any behavior.

  • Fix pickle error when using model_construct() on a model with MISSING as a default value by @​ornariece in #​12522.
  • Several updates to the documentation by @​Viicos.

v2.12.4

Compare Source

GitHub release

This is the fourth 2.12 patch release, fixing more regressions, and reverting a change in the build() method
of the AnyUrl and Dsn types.

This patch release also fixes an issue with the serialization of IP address types, when serialize_as_any is used. The next patch release
will try to address the remaining issues with serialize as any behavior by introducing a new polymorphic serialization feature, that
should be used in most cases in place of serialize as any.

v2.12.3

Compare Source

GitHub release

What's Changed

This is the third 2.12 patch release, fixing issues related to the FieldInfo class, and reverting a change to the supported
after model validator function signatures.

  • Raise a warning when an invalid after model validator function signature is raised by @​Viicos in #​12414.
    Starting in 2.12.0, using class methods for after model validators raised an error, but the error wasn't raised concistently. We decided
    to emit a deprecation warning instead.
  • Add FieldInfo.asdict() method, improve documentation around FieldInfo by @​Viicos in #​12411.
    This also add back support for mutations on FieldInfo classes, that are reused as Annotated metadata. However, note that this is still
    not a supported pattern. Instead, please refer to the added example in the documentation.

The blog post section on changes was also updated to document the changes related to serialize_as_any.

v2.12.2

Compare Source

GitHub release

What's Changed
Fixes
  • Release a new pydantic-core version, as a corrupted CPython 3.10 manylinux2014_aarch64 wheel got uploaded (pydantic-core#1843).
  • Fix issue with recursive generic models with a parent model class by @​Viicos in #​12398

v2.12.1

Compare Source

GitHub release

What's Changed

This is the first 2.12 patch release, addressing most (but not all yet) regressions from the initial 2.12.0 release.

Fixes
New Contributors

v2.12.0

Compare Source

GitHub release

This is the final 2.12 release. It features the work of 20 external contributors and provides useful new features, along with initial Python 3.14 support.
Several minor changes (considered non-breaking changes according to our versioning policy)
are also included in this release. Make sure to look into them before upgrading.

Note that Pydantic V1 is not compatible with Python 3.14 and greater.

What's Changed

See the beta releases for all changes sinces 2.11.

New Features
Fixes
Packaging
New Contributors

v2.11.10

Compare Source

GitHub release

What's Changed
Fixes

v2.11.9

Compare Source

GitHub release

What's Changed
Fixes

v2.11.8

Compare Source

GitHub release

What's Changed
Fixes

v2.11.7

Compare Source

GitHub release

What's Changed
Fixes

v2.11.6

Compare Source

GitHub release

What's Changed
Fixes

v2.11.5

Compare Source

GitHub release

What's Changed
Fixes
pydantic/pydantic-settings (pydantic-settings)

v2.16.2

Compare Source

Highlights

This patch release fixes env decoding of nested dictionary values, CliApp handling of AliasPath, nested secrets directory precedence and discriminated union defaults with nested_model_default_partial_update.

Behavior changes
  • An explicit secrets_dir on NestedSecretsSettingsSource now takes precedence (#​1093). Previously it was ignored when the wrapped SecretsSettingsSource inherited a directory from model config, and an explicit empty list was masked too. The order is now: the wrapper's secrets_dir argument, then the wrapped source's directory, then model config. If you pass both Settings(_secrets_dir=...) and NestedSecretsSettingsSource(..., secrets_dir=...), the wrapper's argument now wins.
Bug fixes

Env and dotenv sources

  • Dictionary values typed as a union, such as dict[str, list[str] | str] or dict[str, list[str] | None], now JSON-decode values set through env_nested_delimiter (#​1089, #​1097). Only JSON arrays and objects are decoded, so plain values like 123, true or "quoted" are kept as strings. Decoding follows enable_decoding and the NoDecode/ForceDecode of the field that holds the dict, and type aliases and Annotated value types are resolved.
  • Nested dictionary values such as dict[str, list[dict[str, str]]] are decoded at the right level again (#​1109), so APP_VALUES__X='[{"k":"v"}]' no longer reaches validation as a string.

CLI

  • CliApp.run now rebuilds AliasPath inputs for BaseModel and pydantic dataclass commands (#​1096). A supplied path used to be reduced to the field name, which failed validation. AliasChoices priority is respected and unsupplied path defaults are left to the model.

Discriminated union defaults

  • With nested_model_default_partial_update=True, inner discriminated unions written as Annotated[..., Field(discriminator='...')] are now detected (#​1076). When the incoming tag selects another member, the default's fields are no longer merged into it.
  • A stdlib dataclass default on a discriminated union field no longer raises NameError when another field of the dataclass has a string annotation naming a local class (#​1077). Only the discriminator's own annotation is resolved now.
All changes (including dependency bumps and internal maintenance)

What's Changed

New Contributors

Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.16.1...v2.16.2

v2.16.1

Compare Source

Highlights

This patch release fixes two CLI regressions introduced in 2.16.0.

Bug fixes

CLI

  • Fixed-length tuple positionals such as CliPositionalArg[tuple[int, int]] and NamedTuples are single-valued again (#​1069). Since 2.16.0 they were treated as variadic, so a CLI either refused to start with a SettingsError or put the wrong argument into the tuple. Variable-length tuples (tuple[int, ...] and bare Tuple) are still variadic.
  • A field typed as an alias of a list of dicts, e.g. type ListOfDict = list[dict[str, int]], accepts a JSON list again (#​1049). Since 2.16.0, --xx '[{"a":1},{"b":2}]' was merged into the single dict {"a": 1, "b": 2} and failed validation.
All changes (including dependency bumps and internal maintenance)

What's Changed

Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.16.0...v2.16.1

v2.16.0

Compare Source

Highlights

Breaking changes and behavior changes
  • Python 3.10 is no longer supported (#​1003). pydantic-settings now requires Python 3.11+, since 3.10 reaches end of life this month. The tomli fallback is gone in favor of stdlib tomllib; the toml extra is kept as an empty extra so pip install pydantic-settings[toml] keeps working.
  • python-dotenv>=1.2.2 is now required (#​971) to pick up the fix for CVE-2026-28684.
  • Aliases are ignored in every source when validate_by_alias=False (#​1033). Env vars, secrets, CLI flags and defaults now use only field names, matching pydantic. An env var named after the alias is now ignored instead of raising extra_forbidden, and the CLI exposes --apple rather than --pomo.
  • validation_alias takes precedence over alias (#​1038). When the two differ, values from JSON/YAML/TOML files and the CLI were silently ignored; they now load. CLI help lists the validation_alias flag first, and CliApp.serialize emits it.
  • CLI case-insensitivity only lowercases registered options (#​1036). With case_sensitive=False, args after -- and those captured by CliUnknownArgs keep their case (-Xmx4G no longer becomes -xmx4g). Unrecognized options are now reported as typed (--NOPE instead of --nope).
  • JSON and YAML config files are read as UTF-8 by default (#​955) instead of the locale encoding, completing the secrets-file fix from 2.15.0. json_file_encoding/yaml_file_encoding still override it.
  • Discriminated union defaults are partially updated again (#​997). This reverts the 2.15.0 regression with nested_model_default_partial_update=True: the default is only dropped when the incoming value selects a different union member.
New features
  • Python 3.15 and pydantic 2.14 support (#​1026, #​1029, #​1022). pydantic 2.14 broke CliApp.run and validate_by_alias=False handling; both are fixed.
  • Cached settings instances via Settings.settings_cached() and Settings.settings_clear_cache() (#​952). These give you a process-local singleton per settings class without hand-rolling lru_cache wrappers. Calling the class directly still builds a fresh instance.
  • AWS Systems Manager Parameter Store source — AWSSystemsManagerSettingsSource (#​941). It recursively reads every parameter under an ssm_path, with / mapping onto nested models. Install it with the new aws-systems-manager extra.
  • env_file_depth (#​940) lets a relative env_file be found in parent directories, mirroring pyproject_toml_depth. This is useful when scripts run from a subdirectory of a monorepo. It defaults to 0, which keeps the current behavior.
  • CliVariadicArg for named variadic options (#​949, #​958). It accepts --param a b c in addition to repeated --param a --param b. Required fields need at least one value.
Bug fixes

CLI

  • CliApp.serialize output now round-trips through CliApp.run for enums, tuples, dates and Decimals (#​988), explicit None values (#​981), empty containers (#​1008), CliVariadicArg values (#​976) and populated CliUnknownArgs fields, which previously raised IndexError (#​992).
  • Empty JSON arrays (--items []) now give an empty list instead of [''] (#​994).
  • Tuples, frozenset, MutableSequence and other collection subtypes are now treated as repeatable/variadic options (#​972), and so are named collection type aliases such as TypeAliasType('Addrs', list[IPvAnyAddress]) (#​1032).
  • cli_exit_on_error=False is now honored in CliSubCommand parsers, which raise SettingsError instead of exiting (#​977).
  • CliSubCommand aliases keep their case with case_sensitive=False (#​989).
  • Each CliUnknownArgs field now receives only its own subcommand's leftover args (#​1004).
  • CliApp.format_help no longer crashes when cli_prefix is set in model_config (#​945).

Type aliases and parsing

  • Named union type aliases (TypeAliasType('V', list[int] | str)) now decode like their inline equivalents in env and dotenv sources, including under Optional, Annotated and custom validation aliases (#​1006, #​1030, #​1041).
  • Resolving a named Annotated type alias no longer mutates shared FieldInfo metadata, which made validators run twice on subclasses or after model_rebuild() (#​979).
  • A bare single-segment AliasPath('SOME_KEY') no longer tries to JSON-decode plain string values (#​980).
  • collections.abc.Set/MutableSet/typing.AbstractSet fields now JSON-decode env values (#​973).
  • A bare typing.Dict field with env_nested_delimiter no longer raises IndexError, which was a regression in 2.13.0 (#​1009).
  • Case-insensitive matching now works for nested pydantic dataclasses (#​1010).

Dotenv, secrets and config files

  • With extra='allow', a non-lowercase env_prefix is now stripped from dotenv extras (#​959, #​968).
  • secrets_case_sensitive=True is now honored on Windows (#​1001).
  • An empty JSON config file is treated as an empty mapping instead of crashing (#​947), matching YAML and TOML.
  • TOML table headers: ~ paths are now expanded when checking that the file exists (#​1034), and an explicit toml_table_header=() now overrides the model config to read the file root (#​1027).

Cloud sources

  • Azure Key Vault and GCP Secret Manager now honor env_parse_none_str (#​1019, #​1040).
  • Azure Key Vault: dash_to_underscore=True now works for nested model fields (#​1025).
  • NestedSecretsSettingsSource now validates its specific constructor arguments (#​975).
  • DotenvFiltering is exported from pydantic_settings.sources.types (#​944).
Documentation
  • Document that runtime validation arguments (strict, extra, context) passed to model_validate() are not applied to BaseSettings, and give a workaround (#​1017).
  • Explain why extra='forbid' doesn't reject misspelled top-level env vars (#​986).
  • Clarify alias plus nested model env lookup with populate_by_name (#​933), and add a nested model example for env_prefix_target (#​953).
  • Fix assorted typos (#​942, #​964).
All changes (including dependency bumps and internal maintenance)

What's Changed

New Contributors

Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.15.0...v2.16.0

v2.15.0

Compare Source

Highlights

Behavior changes
  • case_sensitive now applies to init kwargs and config-file sources (#​900). InitSettingsSource and the JSON/TOML/YAML config sources previously ignored case_sensitive. Since it defaults to False, case-insensitive matching is now the default for these sources — e.g. Settings(TeSt=...) now populates a test field where it previously did not. Nested keys are still matched case-sensitively.
  • Fields with unresolved forward references now emit a warning (#​901). Settings sources can silently fail to resolve such fields; they now raise IncompleteFieldDefinitionWarning telling you to call model_rebuild(). If you have filterwarnings = error configured, this may surface as a new failure.
  • Non-JSON env values for strict fields now raise ValidationError (#​926) instead of a less specific error.
New features
  • Show environment variable names in CLI help via cli_show_env_vars=True (#​860), so generated --help output doubles as configuration documentation.
  • PYDANTIC_SETTINGS_DEBUG for debugging settings resolution (#​906, #​913). Set it to a truthy value with DEBUG logging enabled to see each source's contribution in priority order, which source won for each value, and which env_file/secret files were probed, loaded, or skipped — the long-standing "why isn't my .env being picked up?" question.
  • toml_table_header for regular TOML files (#​882, #​886, #​887), letting you root settings at a nested table in any TOML file, not just pyproject.toml.
  • Traversable support for JSON/TOML/YAML file sources (#​902), so you can load config packaged inside a distribution — including files inside a zip or wheel — via importlib.resources.files(...) without casting to Path.
  • GCP: project_id can come from an earlier settings source (#​878), rather than only from the constructor or GOOGLE_CLOUD_PROJECT.
Bug fixes
  • Fix env vars not loading on Windows with case_sensitive=True (#​894). Windows upper-cases os.environ keys, so fields raised Field required instead of picking up their values.
  • Read secret files as UTF-8 instead of the platform locale encoding (#​917). On Windows code pages such as cp1252 this silently corrupted non-ASCII secrets.
  • Fix AliasPath on nested model fields not JSON-decoding env values (#​898).
  • Fix case-insensitive matching for optional nested models (#​905).
  • Fix dotenv extras being wrongly claimed by a complex field sharing a name prefix (#​912) — e.g. dbx_token being swallowed by a db: dict field.
  • Fix nested_model_default_partial_update=True corrupting discriminated unions (#​876).
  • Fix Secret subclasses crashing when loaded from the environment (#​920).
  • Fix enum names not parsing through nested annotations such as Optional[Annotated[MyEnum, ...]] with env_parse_enums=True (#​910).
  • An empty yaml_config_section now falls back to defaults instead of raising AttributeError: 'NoneType' object has no attribute 'keys' (#​914).
  • NestedSecretsSettingsSource no longer follows symlinks pointing outside secrets_dir (#​889).
  • GCP: skip the list_secrets call when case_sensitive=True (#​862), lowering the required IAM permissions to just roles/secretmanager.secretAccessor.
  • AWS: types-boto3[secretsmanager] is no longer required at runtime (#​880).
Documentation
  • Document JSON parsing of complex env values, plus a comma-separated-values recipe (#​919).
  • Recommend an async settings loading pattern (#​908).
  • Clarify behavior when an unprefixed value is present in a dotenv file (#​895).
  • Clarify environment variable helper descriptions (#​867) and fix assorted typos (#​904).
All changes (including dependency bumps and internal maintenance)

What's Changed

New Contributors

Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.14.1...v2.15.0

v2.14.2

Compare Source

What's Changed

This is a security patch release.

Security

Fixes GHSA-4xgf-cpjx-pc3j: NestedSecretsSettingsSource with secrets_nested_subdir=True could follow a symbolic link inside secrets_dir pointing outside it, reading out-of-tree files into settings values and bypassing the secrets_dir_max_size cap. Affected versions: >= 2.12.0, < 2.14.2.

Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.14.1...v2.14.2

v2.14.1

Compare Source

What's Changed

Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.14.0...v2.14.1

v2.14.0

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.13.1...v2.14.0

v2.13.1

Compare Source

What's Changed

Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.13.0...v2.13.1

v2.13.0

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.12.0...v2.13.0

v2.12.0

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.11.0...v2.12.0

v2.11.0

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/pydantic/pydantic-settings/compare/2.10.1...v2.11.0

pymupdf/pymupdf (pymupdf)

v1.28.2: PyMuPDF-1.28.2 released

Compare Source

Wheels for Windows, Linux and MacOS, and the sdist, are available on
https://pypi.org and can be installed in the usual way, for example:

python -m pip install --upgrade pymupdf

Changes in version 1.28.2 ()

Fixed issues:

Other:

  • Use MuPDF-1.28.2.
  • Output warning when legacy fitz module is imported.
  • Cope better with markdown containing illegal utf8 sequences.
  • Fixed building with PYMUPDF_SETUP_MUPDF_VS_UPGRADE.
  • pymupdf.Page.find_tables():
    • new args use_layout: bool = True union: bool = False refine: bool = False.
    • Improved speed.
  • Retrospectively added fix for #​4936 in release 1.28.0 below.

v1.28.0: PyMuPDF-1.28.0 released.

Compare Source

Wheels for Windows, Linux and MacOS, and the sdist, are available on
https://pypi.org and can be installed in the usual way, for example:

python -m pip install --upgrade pymupdf

Changes in version 1.28.0

Fixed issues:

Other:

  • Use MuPDF-1.28.0.
  • pymupdf.Document.init(): new arg archive to support documents with archives.
  • pymupdf.Document.convert_to_pdf(): also generate links.
  • Fixed MacOS x64 platform tag - used to be macosx_10_9_x86_64, but we actually
    require MacOS 10.15, so platform tag is now macosx_10_15_x86_64.
  • Support Windows builds with free thread python.
  • pymupdf.Document.save() now saves non-PDF documents in PDF format.
  • New method pymupdf.Document.apply_css().

v1.27.2.3: PyMuPDF-1.27.2.3 released

Compare Source

Wheels for Windows, Linux and MacOS, and the sdist, are available on
https://pypi.org and can be installed in the usual way, for example:

python -m pip install --upgrade pymupdf

Changes in version 1.27.2.3

  • Fixed issues:

  • Other:

    • Fixed incorrect generation of lineJoin j in PDF content, introduced in 1.27.2.2.
    • Allow build to (incorrectly) claim to be thread-safe, for #​4760. See setup.py for details.
    • Use pypi.org's pipcl package instead of our own pipcl.py file.

v1.27.2.2: PyMuPDF-1.27.2.2 released

Compare Source

Wheels for Windows, Linux and MacOS, and the sdist, are available on
https://pypi.org and can be installed in the usual way, for example:

python -m pip install --upgrade pymupdf

Changes in version 1.27.2.2

v1.27.2: PyMuPDF-1.27.2 released

Compare Source

Wheels for Windows, Linux and MacOS, and the sdist, are available on https://pypi.org and can be installed in the usual way, for example:

python -m pip install --upgrade pymupdf

Changes in version 1.27.2

  • Use MuPDF-1.27.2.

  • Fixed issues:

  • Other:

    • Retrospectively marked #​4907 as fixed in pymupdf-1.27.1.

    • Improved get_textpage_ocr().

      For partial OCR, all page areas outside legible text are now OCRed, not
      just those within images. This means that OCR will now also be performed
      for vector graphics, and for text containing illegible characters.

v1.27.1: PyMuPDF-1.27.1 released

Compare Source

Wheels for Windows, Linux and MacOS, and the sdist, are available on
https://pypi.org and can be installed in the usual way, for example:

python -m pip install --upgrade pymupdf

[Linux-aarch64 wheels will be built and uploaded later.]

Changes in version 1.27.1 (2026-02-11)

  • Use MuPDF-1.27.1.

  • Fixed issues:

  • Other:

    • Added pymupdf.TEXT_CLIP.
    • Removed support for mupdf < 1.26.
    • New arg raise_on_repair in Document.save().
    • New method Document.repair().

v1.26.7: PyMuPDF-1.26.7 released

Compare Source

Wheels for Windows, Linux and MacOS, and the sdist, are available on pypi.org and can be installed in the usual way, for example:

python -m pip install --upgrade pymupdf

[Linux-aarch64 wheels will be built and uploaded later.]

Changes in version 1.26.7

  • Use MuPDF-1.26.12.

Other:

  • Retrospectively mark #​4756 as fixed in 1.26.6.
  • Improved safety of pymupdf embed-extract. This now refuses to write to
    an existing file or outside current directory, unless -output or new flag
    -unsafe is specified.

v1.26.6: PyMuPDF-1.26.6 released

Compare Source

Wheels for Windows, Linux and MacOS, and the sdist, are available on pypi.org and can be installed in the usual way, for example:

python -m pip install --upgrade pymupdf

[Linux-aarch64 wheels will be built and uploaded later.]

Changes in version 1.26.6

v1.26.5: PyMuPDF-1.26.5 released

Compare Source

Wheels for Windows, Linux and MacOS, and the sdist, are available on pypi.org and can be installed in the usual way, for example:

python -m pip install --upgrade pymupdf

[Linux-aarch64 wheels will be built and uploaded later.]

Changes in version 1.26.5

  • Use MuPDF-1.26.10.

  • Fixed issues:

  • Other:

    • Supported Python versions are now 3.9-3.14.
    • We now define all class methods explicitly instead of with dynamic assignment; this improves type hints.
    • Removed pymupdf.utils.Shape class, was duplicate of pymupdf.Shape.
    • Allow use of cibuildwheel to build and test on Pyodide.
    • Fixed various Pyodide bugs.
    • In documentation, added section about Linux wheels and glibc compatibility.
    • Improved documentation of pymupdf.open()'s arg.
    • Retrospectively mark 4544 <https://github.com/pymupdf/PyMuPDF/issues/4544>_ as fixed in 1.26.4.

v1.26.4: PyMuPDF-1.26.4 released

Compare Source

Wheels for Windows, Linux and MacOS, and the sdist, are available on pypi.org and can be installed in the usual way, for example:

python -m pip install --upgrade pymupdf

[Linux-aarch64 wheels will be built and uploaded later.]

Changes in version 1.26.4

v1.26.3: PyMuPDF-1.26.3 released

Compare Source

PyMuPDF-1.26.3 has been released.

Wheels for Windows, Linux and MacOS, and the sdist, are available on pypi.org and can be installed in the usual way, for example:

python -m pip install --upgrade pymupdf

[Linux-aarch64 wheels will be built and uploaded later.]

Changes in version 1.26.3

  • Use MuPDF-1.26.3.

  • Fixed issues:

  • Other:

    • Class Shape is now available as pymupdf.Shape.
    • Added table cell markdown support.

v1.26.1: PyMuPDF-1.26.1 released

Compare Source

PyMuPDF-1.26.1 has been released.

Wheels for Windows, Linux and MacOS, and the sdist, are available on pypi.org and can be installed in the usual way, for example:

python -m pip install --upgrade pymupdf

[Linux-aarch64 wheels will be built and uploaded later.]

Changes in version 1.26.1

  • Use MuPDF-1.26.2.

  • Fixed issues:

  • Other:

    • Partial fix for #​4503.
    • New method Document.rewrite_images(), useful for reducing file size, changing image formats, or converting color spaces.
    • Page.get_text(): restrict positional args to match docs.
    • Removed bogus definition of class Shape.
    • Removed release date from module, docs and changelog.
      • pymupdf.pymupdf_date and pymupdf.VersionDate are now both None.
      • They will be removed in a future release.

v1.26.0: PyMuPDF-1.26.0 released

Compare Source

PyMuPDF-1.26.0 has been released.

Wheels for Windows, Linux and MacOS, and the sdist, are available on pypi.org and can be installed in the usual way, for example:

python -m pip install --upgrade pymupdf

[Linux-aarch64 wheels will be built and uploaded later.]

Changes in version 1.26.0 (2025-05-22)

  • Use MuPDF-1.26.1.

  • Fixed issues:

  • Other:

    • Partial fixed for #​4457.
    • Support image stamp annotations.
    • Support recoloring pages.
    • Added example of using Django's file storage API to open files with pymupdf.
    • Clarified FreeText annotation color options.
      We now raise an exception if an attempt is made to set attributes that can not be supported.
    • Fixed potential segv in Pixmap.is_unicolor().
    • Added runtime assert that that PyMuPDF and MuPDF were built with compatible
      NDEBUG settings (related to 4390 <https://github.com/pymupdf/PyMuPDF/issues/4390>_).
    • Simplified handling of filename/filetype when opening documents.
pytest-dev/pytest (pytest)

v9.2.0

Compare Source

pytest 9.2.0 (2026-10-27)

Removals and backward incompatible breaking changes

  • #​14716: -c now raises a usage error for a path that does not exist, is a directory, or is in a format pytest has no loader for. Such paths were previously either ignored or reported as an unhandled FileNotFoundError.

  • #​8593: The indirect, ids and scope arguments of Metafunc.parametrize() <pytest.Metafunc.parametrize> -- and therefore of @pytest.mark.parametrize <pytest.mark.parametrize ref> -- are now keyword-only.

    Passing them positionally was a common source of confusing errors, e.g. parametrize("arg1", "arg2", [(1, 2)]) made the argvalues land in indirect and failed with indirect fixture '(1, 2)' doesn't exist; such mistakes now fail with an understandable TypeError. The type annotations have always declared these arguments as keyword-only.

  • #​993: Plugin import failures at startup are now reported and classified instead of escaping as a raw traceback with the accidental exit code 1:

    • a plugin that cannot be found -- via -p, pytest_plugins or PYTEST_PLUGINS -- exits with pytest.ExitCode USAGE_ERROR (4), like a conftest.py that fails to import;
    • a plugin that is found but raises while importing -- including a broken pytest11 entry point or a missing plugin dependency -- exits with pytest.ExitCode INTERNAL_ERROR (3), with the traceback preserved.

    pytest.main now returns these codes instead of raising ImportError. Also fixed an IndexError from pytest's own internals when the plugin raised an exception with no arguments.

Deprecations (removal in next major release)

  • #​14742: The private _pytest.python.CallSpec2 name has been renamed to CallSpec.
    The old CallSpec2 alias remains available for now and will be removed in pytest 10 or 11.

  • #​14755: Schedule yield_fixture decorator for removal in pytest 10 or 11.

  • #​14774: Similarly to the deprecation of class-scoped fixtures defined as instance methods in pytest 9.1,
    all higher-scoped fixtures (module, package, and session) defined
    as instance methods are now deprecated.

    They suffer from the same issue the original deprecation only fixed for
    class-scoped fixtures, see 10819 and 14011.

  • #​14808: Passing a non-string value to a string-typed ini option now emits a pytest.PytestRemovedIn10Warning. This affects [tool.pytest.ini_options] in pyproject.toml. In pytest 10 this will raise a TypeError, matching the behavior of the corresponding TOML config path.

  • #​7323: Passing bytes to TerminalReporter.write_line() is now deprecated, pass a str instead.

New features

  • #​14743: Full diff: now contains a legend explaining the + & - symbols in diff output.
  • #​2781: When strict_markers is enabled, marker names used in -m expressions are now validated against registered markers.
  • #​6881: Added the parametrize_long_str_id_strategy configuration option to control how long str/bytes parameter values are handled in auto-generated test IDs. Explicit IDs set via ids=[...] or pytest.param(..., id=...) are not affected. Available strategies: short (default, values over 100 chars fall back to argname+index), sha256 (SHA-256 hex digest), legacy (keep full value), and disallow (error requesting explicit IDs).

Improvements in existing functionality

  • #​10745: A RecursionError whose recursion origin cannot be located now shows only the
    first and last 10 stack frames, matching what pytest already did when locating
    the origin failed outright. Previously the full traceback -- often around a
    thousand near-identical frames -- was rendered, which was both slow and
    unreadable. Pass --full-trace to see every frame.

  • #​10745: The line numbers of a module's statements are now computed once per traceback
    instead of once per traceback entry, which noticeably speeds up rendering
    failures raised from large test modules.

  • #​11418: The cached rewritten modules in __pycache__ are now invalidated by a hash of
    the source instead of its modification time, using the checked-hash pyc format
    from 552.

    Timestamps make the cache useless wherever source files get fresh modification
    times, most notably in CI: a checkout gives every file a new mtime, so a
    restored cache is discarded in full and every test module is rewritten again.
    Hashing the source costs roughly 15 microseconds per file and makes the cache
    survive that.

    Existing timestamp based caches are ignored and rewritten once.

  • #​12624: The pytest_plugins variable and the PYTEST_PLUGINS environment variable now also accept entry point names of installed plugins (e.g. xdist), in addition to importable module names, matching the behavior of the -p command-line option.

    As part of this change, plugins specified by entry point name through these mechanisms are now also listed in the plugins: line of the terminal header (12615).

    Based on the original implementation by Marcel Telka in 12616.

  • #​12697: Warnings emitted while importing plugins through -p, PYTEST_PLUGINS, or entry point autoloading are now captured, filtered, and reported like other warnings.

  • #​12860: Assertion diffs for dict.items() and dict.keys() comparisons (>=, <=, >, <, ==) now show which items are missing, the same way set comparisons do.

  • #​13354: Node.get_closest_marker <_pytest.nodes.Node.get_closest_marker> now also accepts a ~pytest.MarkDecorator as its default, for example item.get_closest_marker("foo", pytest.mark.foo(1)), and returns the wrapped ~pytest.Mark.

    Previously the only way to build a default was to instantiate ~pytest.Mark directly, which is private and warns.

  • #​13369: Improved the error from pytest.RunResult.assert_outcomes when a plugin changes or removes pytest's standard terminal summary, and documented how to isolate output-changing plugins.

  • #​13431: Exposed pytest.ParameterSet as the type of the return value of pytest.param().
    This can be used in type annotations and isinstance checks.

  • #​13564: Issue a warning when fixtures are wrapped with a decorator that prevents
    correct discovery, including @classmethod above @pytest.fixture and
    @staticmethod above @pytest.fixture. Put @pytest.fixture above
    those decorators on test classes.

  • #​14164: Exposed pytest.Approx as the type of the return value of pytest.approx().
    This can be used in type annotations and isinstance checks.

  • #​14463: Assertion diffs for mappings now match up keys the way the compared mappings match them themselves.

    Key comparison goes through the mappings' key views instead of plain sets of their keys, so a mapping
    with its own notion of key equivalence, such as case-insensitive header mappings, no longer
    reports its common keys as missing on either side.

  • #​14523: Large assertion comparison diffs are now built lazily and capped to the
    truncation budget, so a huge diff is no longer formatted in full just to
    be truncated. As a consequence, the truncation footer no longer
    reports the exact number of hidden lines.

  • #​14687: The default fd-level output capturing (--capture=fd) now skips reading the capture buffer for tests which produce no output, reducing per-test overhead in large test suites.

  • #​14724: --no-summary now only applies directly to pytest's own summary.

    The flag no longer skips the pytest_terminal_summary hook, so third-party
    plugins (for example coverage) can still write their terminal summaries.

  • #​14751: parser.addini <pytest.Parser.addini> now also accepts type expressions for its type argument, in addition to the existing string tags: the plain Python types str, bool, int, float, a Literal of strings, and unions of these (for example int | str or int | Literal["auto"]).

  • #​14754: pytest.approx() now rejects infinite relative tolerances for datetime.timedelta values with a clear ValueError instead of raising OverflowError.

  • #​14791: The junit_family, junit_logging, junit_duration_report, console_output_style, empty_parameter_set_mark, assertion_text_diff_style and tmp_path_retention_policy configuration options are now registered with the set of values they accept: an invalid value now fails with a clean usage error instead of being silently ignored or crashing later, and pytest --help lists the accepted values.

    config.getini <pytest.Config.getini> now raises pytest.UsageError instead of TypeError or ValueError when the value read from the configuration file does not match the registered type, so a bad value is always reported as a short usage error message instead of an internal error traceback. Asking for an option name that was never registered still raises ValueError.

  • #​15006: pytest.approx now emits pytest.PytestApproxDecimalToleranceWarning when a rel or abs tolerance is given as a float that cannot be represented exactly for a ~decimal.Decimal comparison, since such a tolerance is widened to the float's exact binary value.

  • #​14675, #​14953, #​15153, #​15132: The truncation_limit_lines, truncation_limit_chars, max_warnings, verbosity_assertions, verbosity_test_cases, verbosity_subtests, tmp_path_retention_count, log_level, log_cli_level, log_file_level,log_auto_indent and faulthandler_timeout configuration options now accept native integer (and, for log_auto_indent, boolean) values in TOML configuration files, while still accepting strings for backward compatibility.
    log_file_mode now reports invalid values as a usage error.

  • #​15254: tmp_path and TempPathFactory.mktemp <pytest.TempPathFactory.mktemp> no longer list the whole base temporary directory on every call, which made sessions with many temporary directories quadratically slow. Numbers are now handed out from a per-prefix counter, skipping names that already exist.

  • #​4569: Node.add_marker <_pytest.nodes.Node.add_marker> now stores a ~pytest.Mark in node.keywords, matching what marks applied during collection store. Previously it stored a ~pytest.MarkDecorator.

  • #​9436: Avoided formatting tracebacks for tests marked with xfail(run=False).

Bug fixes

  • #​10128: Configured warning filters now apply to warnings emitted by pytest_configure hooks.

  • #​10210: pytest.approx now raises a TypeError for any nested container, not
    only for one of the same type as its parent. Previously approx([{"k": 1}])
    and approx({"k": [1]}) were accepted and then compared unequal to every
    value, silently ignoring the tolerance, while approx([[1]]) correctly
    reported that nesting is unsupported.

  • #​10644: monkeypatch.setattr() no longer leaves a new entry in the instance __dict__ when it patches an attribute that the instance inherits from its class.

    Previously undo() assigned the inherited value onto the instance, which shadowed the class attribute -- permanently freezing the result for descriptors that resolve dynamically.

  • #​1139: Fixed tracebacks showing ??? instead of source lines for code compiled with a filename relative to a directory other than the current working directory -- e.g. compiled Cython modules, when running pytest from a subdirectory of the project root.
    The source lookup now falls back to searching sys.path for such filenames, as the standard traceback module does.

  • #​11502: The rootdir is no longer derived from a configuration file that is not a regular file, such as --config-file=/dev/null.

  • #​11783: Plugins installed in editable mode (660) are marked for assertion rewriting again.

    Such installs do not record the package's Python files in the distribution metadata, so pytest found nothing to rewrite and assertions inside the plugin lost their introspection. The plugin's entry point is now used to locate the package in that case.

  • #​11933: pytest.warns no longer re-emits unmatched warnings with module="warnings", which caused module-based warning filters to be applied to the wrong warnings. Since warnings.WarningMessage does not record the module a warning was emitted with, re-emitted warnings now use the standard warnings.warn_explicit default of deriving the module from the warning's filename.

  • #​12175: ExceptionInfo.exconly(tryshort=True) <pytest.ExceptionInfo.exconly> now strips the AssertionError: prefix of failed assert statements for ~pytest.ExceptionInfo objects created by pytest.raises, and failures inside unittest.TestCase.subTest report the same short crash line as regular tests.

  • #​12223: The message attribute of <failure> and <error> elements in --junitxml reports is now shortened to whole lines within 500 characters. When something is dropped, it ends with a note pointing to the element text, which still holds the full report. Previously, very verbose assertion output (e.g. with -vv) produced attributes tens of thousands of characters long, which some XML parsers fail on.

  • #​12307: Fixed truncation of long collections (lists, dicts, sets, etc.) in the "message" part of failed assertions (as in assert condition, msg) when using -vv: the message now uses the same unlimited repr as the rest of the assertion output, instead of eliding collection elements with ....

  • #​12824: Custom command-line options now fail with a clear error when their implicit
    destination conflicts with an existing option, avoiding silent overrides of
    built-in options such as -k.

  • #​13292: Fixed a stale rewritten module being used when a test file is modified twice
    within the same second without changing its size -- the pyc header could only
    record whole-second timestamps. The cache is now keyed on a hash of the source.

  • #​14036: __tracebackhide__ is now respected in ExceptionGroup tracebacks, both for the group itself and for its sub-exceptions.

  • #​14189: Nested usage of caplog.filtering <pytest.LogCaptureFixture.filtering> no longer removes filters early if they were already present.

  • #​14412: Fixed incorrect timing information for subtests and parent tests when console_output_style = "times".

  • #​14445: Assertion rewriting no longer evaluates walrus operator (:=) expressions more than once, which reported results the test never computed when the expression had side effects.

    An operand evaluated before a later walrus is now reported with the value it actually saw, so assert value != identity(value := value.lower()) keeps Python's left-to-right order.

  • #​14552: Fixed stale co_filename values after a test module or directory is moved. Assertion-rewrite caches are reused when the source hash still matches, and in-memory code objects are pointed at the current path.

  • #​14586: Negative values passed to log_auto_indent now correctly fall back to no indentation, matching the documented behavior.

  • #​14619: Fixed a crash in pytest.mark.parametrize when a non-sequence value is passed for a parameter set. It now provides a clear error message during collection.

  • #​14635: Fixed fixture resolution failures when specifying multiple test paths on the command line that share common parent directories. Parametrized fixtures defined in a conftest.py could be silently dropped depending on the order of the specified paths.

  • #​14637: Pytest now correctly skips identical trailing characters in assertion text diffs even when the compared strings differ at the beginning.

  • #​14638: Top-level options in pytest.toml and .pytest.toml files now raise an error instead of being silently ignored when no [pytest] table is present.

  • #​14683: Fixed a regression in pytest 9.1 where a conftest.py located in the rootdir was no longer visible to tests and doctests collected from outside the rootdir (for example when passing a parent directory of the rootdir as a collection argument, or setting --rootdir to a subdirectory).

    As a result, fixtures defined in such a conftest -- including doctest_namespace injections -- were not available, causing errors such as NameError in doctests.

  • #​14700: Fixed an internal error on Python 3.12 when a doctest on a fixture-decorated function was skipped.

  • #​14705: TOML configuration files passed via -c now also read their configuration from the [pytest] table, the one pytest's own configuration files use. The [tool.pytest] and [tool.pytest.ini_options] tables such files were previously restricted to keep working; using both styles in one file is an error.

  • #​14828: Exception groups raised from another exception now print their cause chain only once in the traceback output.

  • #​14864: Fixed collection on Windows collecting the whole suite instead of the given path, on file systems which do not support file IDs (st_ino is 0 for every file, as seen for example on sshfs-win/WinFsp mounts).

  • #​14884: Cache.get(), Cache.set() and Cache.mkdir() now reject keys that resolve outside the cache directory, and --cache-show ignores glob matches outside it.

  • #​14909: Fixed MonkeyPatch.delattr <pytest.MonkeyPatch.delattr>, MonkeyPatch.setitem <pytest.MonkeyPatch.setitem> and MonkeyPatch.delitem <pytest.MonkeyPatch.delitem> recording a stale undo entry when the underlying mutation failed, which could cause spurious errors during teardown. The undo entry is now recorded only after the mutation succeeds, matching the behavior of MonkeyPatch.setattr <pytest.MonkeyPatch.setattr>.

  • #​14912: ~pytest.PytestWarning instances defined in _pytest.deprecated are no longer reused across warnings.warn calls, so warnings raised as errors (e.g. with -W error) no longer accumulate stale traceback frames from previous raises.

  • #​14942: Fixed a regression in 9.1.0 that made collection very slow (quadratic) when many fixtures are defined with the same name.
    This can happen particularly when many tests are defined in separate classes which inherit from a base class which defines fixtures (the fixtures are repeated per class).

  • #​15005: pytest.approx no longer treats finite ~decimal.Decimal values outside the float range (such as Decimal("1e400")) as infinite, which made in-tolerance comparisons fail.

  • #​15006: Restored the tolerance shown by pytest.approx for ~decimal.Decimal values, which since 9.0 displayed ??? for the default tolerance and reported the raw rel ratio instead of the absolute tolerance actually compared against.

  • #​15006: The failure message for pytest.approx comparisons of ~decimal.Decimal collections no longer reports Max absolute difference: -inf, or crashes for mappings, when the decimal.FloatOperation trap is set.

  • #​15006: pytest.approx no longer raises AttributeError when comparing numpy.ndarray instances with object dtype, such as arrays of ~decimal.Decimal.

  • #​15032: Help texts for command-line options and configuration options now keep their indentation
    and blank lines. Previously each line was stripped before wrapping, so a wrapped
    list item was indistinguishable from a new one and blank lines were dropped; configuration
    option help lost its line breaks entirely.

  • #​15043: Cache writes now emit pytest.PytestCacheWarning when writing or closing the cache file fails, consistent with errors opening the file.

  • #​15052: Fixed possible off-by-one line numbers in --fixtures and --fixtures-per-test output.

  • #​15145: With console_output_style set to times, durations just below a unit boundary are now shown in the next unit (e.g. 1.000ms instead of 1000.0us).

  • #​15172: Assertion diffs now pretty-print the built-in frozendict (Python 3.15+) across multiple lines, similarly to how dict is displayed.

  • #​4569: -k no longer matches attributes that end up in a test function's __dict__ without being meant as keywords, such as pytest's own pytestmark attribute and the bookkeeping left behind by functools.wraps and functools.lru_cache.

  • #​6750: Fix fixture argument discovery for custom collectors that pass bound methods to pytest.Function.

  • #​6997: XFAIL reports from teardown phases now include the phase in the short test
    summary.

  • #​7940: Fixed cleanup of temporary directories failing when subdirectories have their execute permission removed.

  • #​8321: Fixed exception chains being duplicated in the traceback output when an exception in the chain (__cause__/__context__) has no traceback of its own, and that exception is itself linked to further exceptions.

  • #​8914: Tests parametrized with higher-than-function scope are now reordered by
    parameter value rather than by parameter index, so that items using equal
    parameter values are grouped together and share a single fixture setup, even
    when they are parametrized by separate @pytest.mark.parametrize <pytest.mark.parametrize ref>
    calls. Previously, an expensive higher-scoped fixture could be set up and torn
    down repeatedly for the same parameter value.

    Unhashable parameter values (e.g. dicts) keep the previous index-based
    grouping behavior.

    As a consequence, the order in which parametrized tests run may change
    (fixture setup/teardown counts can only decrease, not increase).

  • #​9924: Fixed doctest option flags leaking between docstrings after a failure, skip, or expected failure.

Improved documentation

  • #​10721: Replaced setup.py usage with pyproject.toml in writing-plugins.
  • #​12658: Moved the fixture setup and finalizer hooks to the test running hooks section in the reference documentation.
  • #​12857: Documented how --confcutdir affects initial conftest.py discovery.
  • #​14157: Added the pytest-flakefighters plugin to the list of flaky test plugins in plugins.rst.
    Added flaky test papers published on the Test FLARE project to the list of flaky papers in plugins.rst.
  • #​15127: Added guidance on typing yield fixtures, including annotating fixture functions with their generator type and fixture consumers with the yielded value type.
  • #​15242: The installation instructions <installation> and install-package-with-pip now show how to install pytest into a virtual environment with venv and pip, uv or virtualenv, and explain the externally-managed-environment error.
  • #​4569: pytest --help, the -k reference entry and select-tests no longer describe -k as a Python expression matched against test names only; keyword expressions now shows marker names being matched as well. The examples that looked up a marker use Node.get_closest_marker <_pytest.nodes.Node.get_closest_marker> rather than item.keywords.
  • #​9614: Clarified that session.items and session.testscollected exclude deselected tests in the pytest_collection documentation.

Packaging updates and notes for downstreams

  • #​11680: Source archives of arbitrary commits -- the tarballs GitHub serves under
    /archive/, not just the ones for tags -- can now be built into an sdist or a
    wheel with a correct version. A .git_archival.txt file, expanded by git archive via export-subst, carries the describe output that
    setuptools-scm would otherwise have to ask git for.

    The archival file deliberately omits ref-names. Recording it would make the
    content of an archive -- and therefore its checksum -- change whenever a branch
    that points at the archived commit is moved afterwards, which is how the
    equivalent tarballs of tagged releases became unstable for other projects.
    Describe output alone depends only on the commit and on the tags reachable from
    it.

    The archival file is not shipped in the sdist -- an sdist carries its version
    in its metadata, and the template is only ever expanded by git archive.

    Building pytest from a git checkout now requires setuptools-scm >= 10.1.

  • #​9236: pluggy>=1.6 is now required.

    Older pluggy versions stopped running the remaining hook wrapper teardowns once an
    old-style hookwrapper raised in its own teardown. The logging plugin's wrapper was
    left suspended, and when it was finalised later it detached the handler that
    caplog of a subsequent test was recording through, so that test saw no records.

Contributor-facing changes

  • #​14813: Added a systematic coverage matrix for assertion rewriting.
  • #​14921: Added scripts/diff-assert-rewrite.py, which diffs the assert-rewritten form of a snippet between the plain source, this checkout and released pytest versions.
  • #​15190: Fixed the documentation build with Pluggy 1.7 by ignoring a reference to its undocumented DistFacade compatibility class.

Miscellaneous internal changes

  • #​13888: FixtureRequest.node <pytest.FixtureRequest.node> is now explicitly annotated as returning Any, so strict pyright no longer reports it as Unknown. The return type stays deliberately broad, see 13888.
  • #​14758: Internal node ids (the ::-separated strings identifying collected items, e.g. path/to/test_file.py::TestClass::test_method[param]) are now represented internally by a single structured ~_pytest.nodeid.NodeId dataclass instead of being repeatedly re-parsed as plain strings. The public nodeid: str attribute on nodes and reports is unchanged and remains fully backward compatible for plugins.

v9.1.1

Compare Source

pytest 9.1.1 (2026-06-19)

Bug fixes

  • #​14220: Fixed a logic bug in pytest.RaisesGroup which would might cause it to display incorrect "It matches FooError() which was paired with BarError" messages.
  • #​14591: Fixed a regression in pytest 9.1.0 which caused overriding a parametrized fixture with an indirect @​pytest.mark.parametrize to fail with "duplicate parametrization of '<fixture name>'".
  • #​14606: Fixed list-item typing errors from mypy in @pytest.mark.parametrize <pytest.mark.parametrize ref> argvalues parameter.
  • #​14608: Fixed a regression in pytest 9.1.0 where conftest.py files located in <invocation dir>/test* were no longer loaded as initial conftests when invoked without arguments.
    This could cause certain hooks (like pytest_addoption) in these files to not fire.

v9.1.0

Compare Source

pytest 9.1.0 (2026-06-13)

Removals and backward incompatible breaking changes

  • #​14533: When using --doctest-modules, autouse fixtures with module, package or session scope that are defined inline in Python test modules (not plugins or conftests) will now possibly execute twice.

    If this is undesirable, move the fixture definition to a conftest.py file if possible.

    Technical explanation for those interested:
    When using --doctest-modules, pytest possibly collects Python modules twice, once as pytest.Module and once as a DoctestModule (depending on the configuration).
    Due to improvements in pytest's fixture implementation, if e.g. the DoctestModule collects a fixture, it is now visible to it only, and not to the Module.
    This means that both need to register the fixtures independently.

Deprecations (removal in next major release)

  • #​10819: Added a deprecation warning for class-scoped fixtures defined as instance methods (without @classmethod). Such fixtures set attributes on a different instance than the test methods use, leading to unexpected behavior. Use @classmethod decorator instead -- by yastcher.

    See 10819 and 14011.

  • #​12882: Calling request.getfixturevalue() <pytest.FixtureRequest.getfixturevalue> during teardown to request a fixture that was not already requested is now deprecated and will become an error in pytest 10.

    See dynamic-fixture-request-during-teardown for details.

  • #​13409: Using non-~collections.abc.Collection iterables (such as generators, iterators, or custom iterable objects) for the argvalues parameter in @pytest.mark.parametrize <pytest.mark.parametrize ref> and metafunc.parametrize <pytest.Metafunc.parametrize> is now deprecated.

    These iterables get exhausted after the first iteration,
    leading to tests getting unexpectedly skipped in cases such as running pytest.main() multiple times,
    using class-level parametrize decorators,
    or collecting tests multiple times.

    See parametrize-iterators for details and suggestions.

  • #​13946: The private config.inicfg attribute is now deprecated.
    Use config.getini() <pytest.Config.getini> to access configuration values instead.

    See config-inicfg for more details.

  • #​14004: Passing baseid to ~pytest.FixtureDef or nodeid strings to fixture registration APIs is now deprecated. These are internal pytest APIs that are used by some plugins.

    Use the node parameter instead for fixture scoping. This enables more robust node-based
    matching instead of string prefix matching.
    If you've used nodeid=None, pass node=session instead.

    This will be removed in pytest 10.

  • #​14335: The method of configuring hooks using markers, deprecated since pytest 7.2, is now scheduled to be removed in pytest 10.
    See hook-markers for more details.

  • #​14434: The --pastebin option is now deprecated.
    The same functionality is now available in an external plugin, pytest-pastebin.
    See pastebin-deprecated for more details.

  • #​14513: The private FixtureDef.has_location attribute is now deprecated and will be removed in pytest 10.
    See fixturedef-has-location-deprecated for details.

  • #​1764: pytest.console_main is now deprecated and will be removed in pytest 10.
    It was never intended for programmatic use; use pytest.main instead.

New features

  • #​12376: Added pytest.register_fixture() to register fixtures using an imperative interface.

    This is an advanced function intended for use by plugins.

    Normally, fixtures should be registered declaratively using the @pytest.fixture <pytest.fixture> decorator.
    Pytest looks for these fixture definitions during the collection phase and registers them automatically.
    For some plugin usecases the declarative interface can be cumbersome or unviable, in which case this imperative interface can be used.

  • #​14023: Added --report-chars long CLI option.

  • #​14371: Added --max-warnings command-line option and max_warnings configuration option to fail the test run when the number of warnings exceeds a given threshold -- by miketheman.

  • #​6757: Added the assertion_text_diff_style configuration option, allowing
    string equality failures to be rendered as separate Left: and Right:
    blocks instead of ndiff output.

  • #​8395: Added support for ~datetime.datetime and ~datetime.timedelta comparisons with pytest.approx. An explicit abs or rel tolerance as a ~datetime.timedelta is required and relative tolerance is not supported for datetime comparisons -- by hamza-mobeen.

Improvements in existing functionality

  • #​11225: pytest.warns now shows "Regex pattern did not match" instead of "DID NOT WARN" when warnings were emitted but the match pattern did not match.

  • #​11295: Improved output of --fixtures-per-test by excluding internal-implementation fixtures generated by @pytest.mark.parametrize and similar.

  • #​13241: pytest.raises, pytest.warns and pytest.deprecated_call now uses ParamSpec for the type hint to the (old and not recommended) callable overload, instead of Any. This allows type checkers to raise errors when passing incorrect function parameters.
    func can now also be passed as a kwarg, which the type hint previously showed as possible but didn't accept.

  • #​13862: Improved the readability of "DID NOT RAISE" error messages by using the exception type's name instead of its repr.

  • #​14026: Added test coverage for compiled regex patterns in pytest.raises match parameter.

  • #​14137: pytest.ScopeName is now public to allow using it in function signatures.

  • #​14342: Marked yield_fixture as deprecated to type checkers using the deprecated decorator. Note it
    has originally been deprecated <yield-fixture-deprecated> in pytest 6.2 already.

  • #​14373: Added type annotations for pytest.approx.

  • #​14430: When using --setup-show, a space is now printed after the test name (and possibly used fixtures), to separate it from the test result.

  • #​14441: Reduced the default number of gc.collect() passes in the unraisableexception plugin from 5 to 1 on CPython, where reference counting makes a single pass sufficient. PyPy retains 5 passes due to object resurrection via __del__. This can noticeably speed up test suites that trigger many pytester runs.

  • #​14461: Improved assertion failure explanations for equality comparisons between mapping objects that are not dict instances.

  • #​14513: The order in which fixture definitions overriding each other are resolved is now determined first by their visibility in the collection tree rather than by the order in which they are registered.

    A fixture defined for a more specific node (e.g. a module or an item) now always takes precedence over one with the same name defined for a more general node (e.g. the session), even when the more general one was registered later.
    Fixtures with non-comparable visibility or the same visibility keep the existing behavior of "last registered wins".
    This change is supposed to only affect plugins which register multiple fixtures programmatically with the same name.

  • #​14524: Add official Python 3.15 support.

  • #​1764: Improved argparse program name to show pytest, python -m pytest, or pytest.main() based on how pytest was invoked, making help and error messages clearer.

  • #​8265: Emit a PytestCollectionWarning when a module-level __getattr__ returns None for pytestmark instead of raising AttributeError.

    Previously this caused a cryptic TypeError: got None instead of Mark error.
    Now pytest issues a helpful warning and continues collecting the module normally.

Bug fixes

  • #​13192: Fixed | (pipe) not being treated as a regex meta-character that needs escaping in pytest.raises(match=...) <pytest.raises>.

  • #​13484: Fixed -W option values being duplicated in Config.known_args_namespace.

  • #​13626: Fixed function-scoped fixture values being kept alive after a test was interrupted by KeyboardInterrupt or early exit,
    allowing them to potentially be released more promptly.

  • #​13784: Fixed capteesys producing doubled output when used with --capture=no (-s).

  • #​13817: Fixed a secondary AttributeError masking the original error when an option argument fails to initialize.

  • #​13884: Fixed rare internal IndexError caused by builtins.compile being overridden in client code.

  • #​13885: Fixed autouse fixtures defined inside a unittest.TestCase class running even when the class is decorated with unittest.skip or unittest.skipIf -- regression since pytest 8.1.0.

  • #​13917: unittest.SkipTest is no longer considered an interactive exception, i.e. pytest_exception_interact is no longer called for it.

  • #​13963: Fixed subtests running with pytest-xdist when their contexts contain objects that are not JSON-serializable.

    Fixes pytest-dev/pytest-xdist#1273.

  • #​14004: Fixed conftest.py fixture scoping when testpaths points outside of the rootdir <rootdir>.

    Previously, fixtures from nested conftest.py files would incorrectly leak to sibling directories
    when using a relative testpaths like ../tests/sdk.

    Conftest fixtures are now parsed during Directory <pytest.Directory> collection, using the Directory node for proper scoping.

  • #​14050: Display dictionary differences in assertion failures using the original key insertion order instead of sorted order.

  • #​14080: fix missing type annotations on Pytester.makepyfile and Pytester.maketxtfile methods.

  • #​14114: An exception from pytest_fixture_post_finalizer no longer prevents fixtures from being torn down, causing additional errors in the following tests.

  • #​14161: Fixed monkeypatch.setattr() <pytest.MonkeyPatch.setattr> leaving a stale entry on the undo stack when the underlying setattr() call fails (e.g. on immutable targets), causing an AttributeError crash during teardown.

  • #​14214: Fixed -v hint in pytest.raises match diff not working because assertion verbosity was not propagated.

  • #​14234: Allow pytest.HIDDEN_PARAM <hidden-param> in @pytest.mark.parametrize(ids=...) <pytest.mark.parametrize ref> typing.

  • #​14248: Fixed direct parametrization causing the static fixture closure (as reflected in request.fixturenames <pytest.FixtureRequest.fixturenames>) to omit fixtures that are requested transitively from overridden fixtures.

  • #​14263: Unraisable exceptions from finalizers are now collected during pytest_unconfigure, before pytest tears down the warning filters installed for the session. Previously the collection ran from a cleanup callback whose order relative to other plugins' cleanups was not guaranteed, so an active error filter could be removed before the exception surfaced and a late resource leak would pass silently. A -W error filter, or any filter matching pytest.PytestUnraisableExceptionWarning, now promotes these exceptions to failures regardless of plugin cleanup order.

  • #​14377: Fixed crash in Config.get_terminal_writer when an assertion fails with the terminalreporter plugin disabled.

  • #​14381: Fixed -V (short form of --version) to properly display the current version.

  • #​14389: Improved pytest.raises(..., match=...) <pytest.raises> failures to suppress the mismatched exception as a cause of the resulting AssertionError.

  • #​14392: Fixed a bug in pytest.raises(match=...) <pytest.raises> "fully escaped" detection, causing the regex diff display to be shown in some instances when the raw string diff display should be shown instead.

  • #​14442: Fixed a regression in pytest 9.0 where --strict-markers and --strict-config specified through addopts were silently ignored.

    Note that when targeting pytest >= 9.0, it's nicer to use strict_markers and strict_config, or strict mode <strict mode>.

  • #​14456: Fixed pytest.approx not recognizing types with __array_interface__ as numpy-like arrays.

  • #​14474: Fixed a regression where -k and -m expressions containing both backslash characters in identifiers and string literal arguments would incorrectly raise a SyntaxError about escaping.

  • #​14483: Fixed JUnit XML report incorrectly escaping high Unicode codepoints (supplementary plane characters like emoji) in test failure messages. -- by EternalRights

  • #​14492: Fixed Code.getargs() incorrectly including local variable names in the returned argument tuple for functions with *args and/or **kwargs. The method was using co_flags bitmask values (4 and 8) directly as counts instead of converting them to 1 via bool(), and was not accounting for co_kwonlyargcount when var=True.

  • #​3697: Logging capture now works for non-propagating loggers.
    Previously only logs which reached the root logger were captured.
    This includes caplog and the "Captured log calls" test reporting.

  • #​3850: Fixed JUnit XML report: the tests attribute of the <testsuite> element now always matches the number of <testcase> elements in the file. In some cases (test passes but fails during teardown) the tests attribute would report an incorrect number of testcases in the XML file.

  • #​5848: pytest_fixture_post_finalizer is no longer called extra times for the same fixture teardown in some cases.

  • #​719: Fixed @pytest.mark.parametrize <pytest.mark.parametrize ref> not unpacking single-element tuple values when using a string argnames with a trailing comma (e.g., "arg,").

    The trailing comma form now correctly behaves like the tuple form ("arg",), treating argvalues as a list of tuples to unpack.

Improved documentation

  • #​11022: Document safer alternatives and scope guidance for monkeypatching standard library functions.
  • #​11307: Document that @pytest.hookimpl(specname=...) only works for function names starting with pytest_.
  • #​13038: Document that doctests do not support parametrized fixtures, including parametrized autouse fixtures.
  • #​13155: Clarified how the request fixture provides indirect parametrization values via request.param.
  • #​13304: Clarified in the documentation that hook implementations defined in conftest.py files are not available to other plugins during their pytest_addoption() execution, as conftest files are discovered and loaded after builtin and third-party plugins have been initialized. However, initial conftest files themselves can implement pytest_addoption() to add their own command-line options.
  • #​13902: Clarified how subtest progress markers are shown in the documentation.
  • #​14012: The ini options ref section of the API Reference now specified the type and default value of every configuration option.
  • #​14148: Documented a safe pytestconfig.cache access pattern when the
    cacheprovider plugin is disabled.
  • #​14303: The documentation is now built with Sphinx >= 9.
  • #​14465: Updated the hooks how-to page to link the newhooks.py file in pytest-xdist at tag v3.8.0 instead of an unrelated 2017-era commit under the old layout. Pointing at a tag keeps the example in sync with the version users actually install, while remaining stable when the project's main branch moves on.

Miscellaneous internal changes

  • #​14582: Improved the recursion traceback test to exercise all requested traceback styles.
pytest-dev/pytest-asyncio (pytest-asyncio)

v1.5.0: pytest-asyncio v1.5.0

Compare Source

1.5.0 - 2026-11-12

Added

  • A fixture-scope value for asyncio_default_fixture_loop_scope. With it, an asynchronous fixture without loop_scope uses its scope as its loop scope. This is the behavior of an unset option in pytest-asyncio 1.x. (#​1095)

Fixed

  • Invalid arguments to the asyncio marker, including an invalid loop_scope, are reported with a message that names the test instead of a traceback. (#​1584)
actions/python-versions (python)

v3.15.2: 3.15.2

Compare Source

Python 3.15.2

v3.15.1: 3.15.1

Compare Source

Python 3.15.1

v3.15.0: 3.15.0

Compare Source

Python 3.15.0

v3.14.10: 3.14.10

Compare Source

Python 3.14.10

v3.14.9: 3.14.9

Compare Source

Python 3.14.9

v3.14.8: 3.14.8

Compare Source

Python 3.14.8

v3.14.7: 3.14.7

Compare Source

Python 3.14.7

v3.14.6: 3.14.6

Compare Source

Python 3.14.6

v3.14.5: 3.14.5

Compare Source

Python 3.14.5

v3.14.4: 3.14.4

Compare Source

Python 3.14.4

v3.14.3: 3.14.3

Compare Source

Python 3.14.3

v3.14.2: 3.14.2

Compare Source

Python 3.14.2

v3.14.1: 3.14.1

Compare Source

Python 3.14.1

v3.14.0: 3.14.0

Compare Source

Python 3.14.0

v3.13.18: 3.13.18

Compare Source

Python 3.13.18

v3.13.17: 3.13.17

Compare Source

Python 3.13.17

v3.13.16: 3.13.16

Compare Source

Python 3.13.16

v3.13.15: 3.13.15

Compare Source

Python 3.13.15

v3.13.14: 3.13.14

Compare Source

Python 3.13.14

v3.13.13: 3.13.13

Compare Source

Python 3.13.13

v3.13.12: 3.13.12

Compare Source

Python 3.13.12

v3.13.11: 3.13.11

Compare Source

Python 3.13.11

v3.13.10: 3.13.10

Compare Source

Python 3.13.10

v3.13.9: 3.13.9

Compare Source

Python 3.13.9

v3.13.8: 3.13.8

Compare Source

Python 3.13.8

v3.13.7: 3.13.7

Compare Source

Python 3.13.7

v3.13.6: 3.13.6

Compare Source

Python 3.13.6

v3.13.5: 3.13.5

Compare Source

Python 3.13.5

v3.13.4: 3.13.4

Compare Source

Python 3.13.4

v3.13.3: 3.13.3

Compare Source

Python 3.13.3

v3.13.2: 3.13.2

Compare Source

Python 3.13.2

v3.13.1: 3.13.1

Compare Source

Python 3.13.1

v3.13.0: 3.13.0

Compare Source

Python 3.13.0

SergeyPirogov/webdriver_manager (webdriver-manager)

v4.1.2

Compare Source

Fixes
  • ChromeDriver: restored legacy ChromeDriver storage URL handling for Chrome/ChromeDriver 114 and older, fixing invalid Chrome for Testing download URLs for older versions such as ChromeDriver 102.0.5005.61 on Windows. (#​736)
  • ChromeDriver on 64-bit Windows: use the legacy win32 archive name for ChromeDriver 114 and older while preserving win64 Chrome for Testing downloads for ChromeDriver 115 and newer. (#​736)
  • Firefox/GeckoDriver: report a readable error when a GeckoDriver release does not contain an asset matching the requested OS type instead of failing with an ambiguous missing-list entry.
Tests
  • Added regression coverage for ChromeDriver 102.0.5005.61 URL construction, legacy latest-release lookup, and the ChromeDriverManager.install() download-manager path without live network calls. (#​736)
  • Pinned GeckoDriver cache coverage to a known release and added coverage for missing GeckoDriver release assets.
CI
  • Windows: install Google Chrome only when it is missing, while continuing to install Chromium, Opera, and Brave through Chocolatey.
  • Linux: install Chromium through browser-actions/setup-chrome and expose it as chromium, avoiding the unavailable/unstable apt Chromium package path on GitHub Actions.

v4.1.1

Compare Source

Packaging
  • Fixed package metadata shown on PyPI.
  • Added Python version classifiers for currently supported Python versions.
  • Removed obsolete universal wheel metadata.
  • Ensured release metadata better reflects the current Python support policy.
Docs
  • Fixed PyPI badge package name in README.
  • Updated README badges to use the published package name webdriver-manager.
Notes
  • No functional driver-resolution changes are included in this release.
  • This is a packaging and documentation cleanup release following 4.1.0.

v4.1.0

Compare Source

Compatibility
  • Added support for Python 3.12, 3.13, and 3.14.
  • Added CI coverage for Python 3.15.0-beta.1.
  • Kept compatibility with both Selenium 3 and Selenium 4 usage patterns.
  • Improved Chrome / Chromium / Brave support for Chrome 115+ and Chrome for Testing driver resolution.
  • Improved Microsoft Edge driver resolution through updated endpoint handling and platform mapping.
  • Improved Firefox/geckodriver resolution on Linux ARM64.
  • Improved Windows browser version detection through safer PowerShell command execution.
  • Improved Docker, CI, and serverless compatibility when default cache locations are unavailable or read-only.
Fixes
  • Chrome/Chromium: improved Chrome for Testing resolution and fallbacks for missing exact build metadata, readable errors, and stable URL resolution. (#​706, #​685, #​639)
  • Chrome on Windows: prefer win64 on 64-bit hosts with safe fallback to win32 when the win64 asset is unavailable. (#​647, #​686)
  • Edge: updated driver endpoint and improved OS/platform mapping for driver artifacts. (#​697)
  • Firefox on Linux ARM64: prefer linux-aarch64 geckodriver to avoid architecture mismatch. (#​616)
  • Windows browser version detection: switched to PowerShell -EncodedCommand flow to avoid quoting and expansion failures in browser version probes. (#​625)
  • Opera driver install path handling when cache already returns a binary file path, preventing NotADirectoryError caused by directory-only assumptions. (#​730)
  • Cache reliability: avoid remote version lookup when a valid browser-version cache entry already exists. (#​661)
  • Cache stability: cache resolved driver version inside the cache manager to reduce repeated metadata and network requests. (#​656)
  • Concurrency: added an inter-process install lock with post-lock cache recheck to prevent parallel download and unpack races such as BadZipFile and startup failures. (#​700, #​631)
  • Archive extraction robustness: improved zip fallback handling in concurrent or busy-file scenarios.
  • Docker/serverless cache path safety: fall back to a writable temp directory when HOME or project-root cache targets are invalid or read-only. (#​636, #​651, #​682, #​694)
  • Binary selection safety: prevent selecting non-executable companion files such as THIRD_PARTY_NOTICES.* as driver executables. (#​667, #​670, #​683, #​699)
  • Logger API: set_logger() now accepts logger-like objects exposing log(level, message), not only logging.Logger. (#​688)
Tests
  • Added regression tests for Chrome 115+ Chrome for Testing resolution flows and Chrome 118 resolution.
  • Added tests for compressed and invalid Chrome for Testing metadata parsing paths.
  • Added tests for cache lookup behavior and no-network cache hit paths.
  • Added tests for binary selection safety to avoid selecting THIRD_PARTY_NOTICES.*.
  • Added tests for Firefox ARM64 OS mapping.
  • Added tests for manager concurrency and cache recheck behavior.
  • Added tests for constants and cache path behavior in frozen/PyInstaller and invalid HOME scenarios.
  • Expanded CI matrix for Python 3.12, 3.13, 3.14, and 3.15.0-beta.1.
Docs
  • Reworked README structure for the 4.1.0 release to focus on installation, usage, compatibility, configuration, and maintenance information.
  • Added guidance on when to use webdriver-manager instead of Selenium Manager.
  • Clarified package/import naming: webdriver-manager is the package name, webdriver_manager is the import name. (#​660)
  • Added desktop browser automation scope guidance and clarified that Android/PyDroid local browser automation is out of scope. (#​640)
  • Added Docker, CI, and serverless cache-path recommendations. (#​630)
  • Updated Selenium 3 and Selenium 4 usage examples for Chrome, Chromium, Brave, Edge, Firefox, IE, and Opera.
  • Documented configuration use cases for custom cache, custom OS/architecture detection, custom download URLs, GitHub token usage, SSL verification, custom logger, and custom HTTP client.
CI
  • Added CI coverage for Python 3.12, 3.13, 3.14, and 3.15.0-beta.1.
  • Stabilized Linux test runs with explicit xvfb-run.
  • Improved cross-platform test stability for Edge, IE, Opera, cache handling, and extraction race scenarios.


Configuration

📅 Schedule: (in timezone Europe/Berlin)

  • Branch creation
    • Between 12:00 AM and 05:59 AM, only on Monday (* 0-5 * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | Type | Update | Pending | |---|---|---|---|---|---|---| | [panel](https://github.com/holoviz/panel) | `==1.9.4` → `==1.10.0` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/panel/1.10.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/panel/1.9.4/1.10.0?slim=true) | project.optional-dependencies | minor | | | [pydantic](https://github.com/pydantic/pydantic) ([changelog](https://pydantic.dev/docs/validation/latest/get-started/changelog/)) | `==2.11.4` → `==2.14.3` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/pydantic/2.14.3?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pydantic/2.11.4/2.14.3?slim=true) | project.dependencies | minor | | | [pydantic-settings](https://github.com/pydantic/pydantic-settings) ([changelog](https://github.com/pydantic/pydantic-settings/releases)) | `==2.10.1` → `==2.16.2` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/pydantic-settings/2.16.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pydantic-settings/2.10.1/2.16.2?slim=true) | project.dependencies | minor | `2.16.3` | | [pymupdf](https://github.com/pymupdf/pymupdf) ([changelog](https://pymupdf.readthedocs.io/en/latest/changes.html)) | `==1.25.5` → `==1.28.2` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/pymupdf/1.28.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pymupdf/1.25.5/1.28.2?slim=true) | project.optional-dependencies | minor | | | [pytest](https://github.com/pytest-dev/pytest) ([changelog](https://docs.pytest.org/en/stable/changelog.html)) | `==9.0.3` → `==9.2.0` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/pytest/9.2.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pytest/9.0.3/9.2.0?slim=true) | project.optional-dependencies | minor | | | [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) ([changelog](https://pytest-asyncio.readthedocs.io/en/stable/reference/changelog.html)) | `==1.4.1.post1` → `==1.5.0` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/pytest-asyncio/1.5.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pytest-asyncio/1.4.1.post1/1.5.0?slim=true) | project.optional-dependencies | minor | | | [python](https://github.com/actions/python-versions) | `3.12` → `3.15` | ![age](https://developer.mend.io/api/mc/badges/age/github-releases/actions%2fpython-versions/3.15.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/github-releases/actions%2fpython-versions/3.12.16/3.15.2?slim=true) | uses-with | minor | | | [selenium](https://www.selenium.dev) | `==4.32.0` → `==4.52.0` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/selenium/4.52.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/selenium/4.32.0/4.52.0?slim=true) | project.optional-dependencies | minor | | | [webdriver-manager](https://github.com/SergeyPirogov/webdriver_manager) | `==4.0.2` → `==4.1.2` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/webdriver-manager/4.1.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/webdriver-manager/4.0.2/4.1.2?slim=true) | project.optional-dependencies | minor | | --- ### Release Notes <details> <summary>holoviz/panel (panel)</summary> ### [`v1.10.0`](https://github.com/holoviz/panel/blob/HEAD/CHANGELOG.md#Version-1100) [Compare Source](https://github.com/holoviz/panel/compare/v1.9.4...v1.10.0) Panel 1.10.0 is a major step towards Panel 2.0. The headline is `panel.ui`, a single namespace that combines the Material UI components from `panel-material-ui` with the classic Panel components that have no Material equivalent, together with a `panel migrate` codemod that rewrites existing apps to use it. Panel now also ships its own native ASGI server, replacing `bokeh-fastapi` and `bokeh-django`, so `panel serve --server fastapi|asgi` works out of the box and OAuth behaves identically across transports. Components no longer have to be declared up front: a component that wraps a JavaScript library now loads its resources on demand the first time it renders, so forgetting `pn.extension('tabulator')` no longer results in a blank component. The server pages (index, login, logout and error pages) and the `/admin` dashboard have been restyled to match `panel-material-ui` and can be branded with the new `pn.config.page_config`, and the admin dashboard can now be secured independently of the apps it monitors. The release also contains significant performance improvements: rendering of `JSComponent` and `ReactComponent` (and therefore all of `panel-material-ui`) no longer scales quadratically with the number of components, streaming into `Markdown` and `HTML` panes has a roughly constant rendering cost per token so long responses stream at a steady rate, and `Tabulator` no longer pulls in the 500 KB bokeh-tables bundle. It also includes a long list of robustness fixes, including for `Tabulator` edits, busy state tracking, notebook resource loading under RequireJS, caching and periodic callbacks. This release requires Bokeh 3.10 and drops support for Python 3.10 and 3.11, while adding support for Python 3.15. It also deprecates the REST providers, `pn.state.publish` and `pn.widgets.DataFrame`, and removes the long-deprecated LangChain callback handler. Many thanks to the contributors to this release: [@&#8203;philippjfr](https://github.com/philippjfr), [@&#8203;hoxbro](https://github.com/hoxbro), [@&#8203;chiruu12](https://github.com/chiruu12), [@&#8203;MohammadHijjawi97](https://github.com/MohammadHijjawi97), [@&#8203;ebarkhordar](https://github.com/ebarkhordar), [@&#8203;Kayvan-Zahiri](https://github.com/Kayvan-Zahiri), [@&#8203;ghostiee-11](https://github.com/ghostiee-11), [@&#8203;Azaya89](https://github.com/Azaya89), [@&#8203;rimsha152007-dotcom](https://github.com/rimsha152007-dotcom), [@&#8203;EltonChang1](https://github.com/EltonChang1), [@&#8203;Bortlesboat](https://github.com/Bortlesboat), [@&#8203;ATL2001](https://github.com/ATL2001), [@&#8203;ZainnQureshii](https://github.com/ZainnQureshii), [@&#8203;vignesh-chaturvedi](https://github.com/vignesh-chaturvedi), [@&#8203;IDavinciCode](https://github.com/IDavinciCode), [@&#8203;mvanhorn](https://github.com/mvanhorn), [@&#8203;SatvikMishra08](https://github.com/SatvikMishra08), [@&#8203;YashAnand69](https://github.com/YashAnand69), [@&#8203;Cherith1222](https://github.com/Cherith1222), [@&#8203;anshurajbisoyi98-ctrl](https://github.com/anshurajbisoyi98-ctrl), [@&#8203;Coderambling](https://github.com/Coderambling), [@&#8203;Jojoussef](https://github.com/Jojoussef) and [@&#8203;wolfgang-aura](https://github.com/wolfgang-aura). ##### 🚀 Features - Add the `panel.ui` namespace, which exports every Material component from `panel-material-ui` and the classic components without a Material equivalent (e.g. `Tabulator`, `CodeEditor`, `Terminal`), both at the top level (`pn.ui.Button`) and through `widgets`, `layout`, `pane`, `chat`, `indicators`, `template` and `wrappers` submodules. The namespace is loaded lazily so `import panel` stays as light-weight as before, and using it selects the `MaterialUIDesign` for the current session unless a design was chosen explicitly ([#&#8203;8752](https://github.com/holoviz/panel/pull/8752), [#&#8203;8877](https://github.com/holoviz/panel/pull/8877)) - Add Material implementations of `Modal`, `WidgetBox` and `Debugger` that retain the classic API ([#&#8203;8752](https://github.com/holoviz/panel/pull/8752)) - Add `pn.ui.Param`, `pn.ui.HoloViews` and `pn.ui.panel`, which always generate Material UI widgets regardless of the active design, while `pn.Param` and `pn.pane.HoloViews` keep generating widgets for the active design ([#&#8203;8883](https://github.com/holoviz/panel/pull/8883)) - Add the `panel migrate` command (installed with the `panel[migrate]` extra), which rewrites classic imports to `pn.ui`, `name=` to `label=`, `button_type`/`button_style` to `color`/`variant`, `MenuButton(split=True)` to `SplitButton` and compatible templates to `pn.ui.Page`, and reports anything it cannot rewrite safely. `--check` and `--diff` preview the changes without writing them ([#&#8203;8752](https://github.com/holoviz/panel/pull/8752)) - Add native ASGI server implementations for FastAPI and Django built on Bokeh 3.10's transport-neutral server layer, dropping the `bokeh-fastapi` and `bokeh-django` dependencies. `panel serve` gains a `--server` option accepting `tornado` (the default), `fastapi` and `asgi`, and wildcard routes, `pn.state.route_params`, static directories and OAuth work the same on every server ([#&#8203;8722](https://github.com/holoviz/panel/pull/8722)) - Load component resources on demand, so components such as `Tabulator`, `ECharts` or `Perspective` render without first being declared via `pn.extension(...)`, including when they are created in a callback after the page has loaded. Declaring an extension is now only a preloading and bundling hint ([#&#8203;8745](https://github.com/holoviz/panel/pull/8745)) - Support `template="page"` in `pn.extension` and `pn.config.template`, resolving to `pn.ui.Page`, with `.servable(target=...)` routing into its `main`, `sidebar`, `header` and `contextbar` areas ([#&#8203;8808](https://github.com/holoviz/panel/pull/8808)) - Add `pn.config.page_config` (also settable with `panel serve --page-config` and the `PANEL_PAGE_CONFIG` environment variable) to enable branding of the server index, login, logout and error pages with the same theme, logo, favicon and title options as `pn.ui.Page`. Pages also fall back to the class defaults of `Page`, so a brand module passed to `--setup` themes apps and server pages at once ([#&#8203;8802](https://github.com/holoviz/panel/pull/8802)) - Add access control for the admin dashboard with `--admin-password` (`PANEL_ADMIN_PASSWORD`), which secures only the admin endpoint behind a login page, and `--admin-users` (`PANEL_ADMIN_USERS`), which restricts it to specific users of `--basic-auth` or `--oauth-provider` ([#&#8203;8805](https://github.com/holoviz/panel/pull/8805)) - Render any DataFrame-like object supported by Narwhals (polars, pyarrow, modin, cuDF, ...) in the `DataFrame` pane ([#&#8203;8744](https://github.com/holoviz/panel/pull/8744)) - Add a Jupyter server extension resource endpoint so notebooks running a plain kernel can load Panel and component resources without access to a public CDN, falling back to the CDN with a visible warning if the endpoint is unreachable ([#&#8203;8762](https://github.com/holoviz/panel/pull/8762)) - Allow configuring the CDN that converted apps load Pyodide from with `pn.config.pyodide_cdn_root` and the `PANEL_PYODIDE_CDN_ROOT` environment variable, enabling `panel convert` apps in air-gapped environments ([#&#8203;8784](https://github.com/holoviz/panel/pull/8784)) - Add an `approximate` argument to `pn.cache`; setting `approximate=False` hashes all of a large DataFrame or array instead of a sample of 100,000 rows ([#&#8203;8759](https://github.com/holoviz/panel/pull/8759)) ##### ✨ Enhancements - Rebuild the `/admin` dashboard with `panel.ui` as a `Page` with sidebar navigation, lazily built pages, per-session log filters, literal case-insensitive text filtering, Clear filters and Download log buttons, and `page_config` theming ([#&#8203;8805](https://github.com/holoviz/panel/pull/8805)) - Add `Design.component_mapping` and `Design.widget_mapping` so designs can substitute the widgets Panel generates in `Param`, `interact` and `HoloViews` widgets ([#&#8203;8752](https://github.com/holoviz/panel/pull/8752)) - Route the loading indicator through the `Design`, allowing designs to declare their own spinner, and add a `material` spinner whose overlay follows the theme so dark themes no longer flash white ([#&#8203;8752](https://github.com/holoviz/panel/pull/8752)) - Add `config.set_if_unset()`, `panel.theme.resolve_design()` and string values for `config.design` (e.g. `config.design = 'material-ui'`) ([#&#8203;8752](https://github.com/holoviz/panel/pull/8752)) - Select the `MaterialUIDesign` per session when an app uses `panel.ui`, so classic apps served from the same process keep their design, and resolve the design and theme of components without an explicit design when they render rather than when they are created ([#&#8203;8877](https://github.com/holoviz/panel/pull/8877)) - Expose the `generate_palette` and `linear_gradient` palette helpers in `panel.ui.theme` ([#&#8203;8868](https://github.com/holoviz/panel/pull/8868)) - Rename `size` to `icon_size` on `ToggleIcon` and `ButtonIcon` in `panel migrate`, flagging calls that size the icon through `width` or `height` for review ([#&#8203;8854](https://github.com/holoviz/panel/pull/8854)) - Theme classic components such as `Tabulator`, `CodeEditor`, `JSONEditor`, `Markdown`, `Terminal`, `Dial`, `Gauge` and `LinearGauge` from the MUI palette under the `MaterialUIDesign` ([#&#8203;8752](https://github.com/holoviz/panel/pull/8752)) - Share and reference count a single model per root when the same component is rendered in several places, so every view keeps receiving updates and removing it from one parent no longer breaks the others ([#&#8203;8830](https://github.com/holoviz/panel/pull/8830)) - Serve session info from a built-in `/session_info` endpoint on every server implementation instead of via the `param` REST provider ([#&#8203;8828](https://github.com/holoviz/panel/pull/8828)) - Update `value_throttled` when a slider value is set from Python ([#&#8203;8712](https://github.com/holoviz/panel/pull/8712)) - Yield to the event loop when a periodic callback overruns its period ([#&#8203;8755](https://github.com/holoviz/panel/pull/8755)) - Keep the `count` and `timeout` budgets of a periodic callback across a period change ([#&#8203;8757](https://github.com/holoviz/panel/pull/8757)) - Converted Pyodide apps no longer install and patch `pyodide-http`, since current Pyodide supports `requests` and `urllib3` natively; the `--disable-http-patch` option was removed ([#&#8203;8777](https://github.com/holoviz/panel/pull/8777)) ##### ⚡ Performance - Speed up `ReactiveESM` and `ReactComponent` rendering, eliminating layout work that scaled with the square of the number of components and React subtree remounts on re-render; this benefits every `panel-material-ui` app ([#&#8203;8795](https://github.com/holoviz/panel/pull/8795)) - Make streaming into `Markdown` and `HTML` panes roughly constant in rendering cost per token by coalescing updates, re-rendering only the trailing Markdown block and sending HTML splices rather than re-sending the tail ([#&#8203;8800](https://github.com/holoviz/panel/pull/8800)) - Render `Tabulator` without the bokeh-tables bundle (507 KB minified), which is now only loaded when a `DataTable` or `DataCube` is rendered, in notebooks or when requested with `pn.extension('bokeh-tables')` ([#&#8203;8837](https://github.com/holoviz/panel/pull/8837)) - Lay out ESM children once per mount instead of once per child ([#&#8203;8786](https://github.com/holoviz/panel/pull/8786)) - Replace the `gl-matrix` dependency in the VTK axes with two small helpers ([#&#8203;8835](https://github.com/holoviz/panel/pull/8835)) ##### 🎨 UI Improvements - Restyle the server index, `panel convert` index, error, kernel error, login and logout pages to match `panel-material-ui`, so they share one stylesheet that follows the operating system's dark mode. Search on the index page now also matches paths and `?search=` is applied on load ([#&#8203;8802](https://github.com/holoviz/panel/pull/8802)) - Restyle the `DataFrame` pane following Material Design table conventions with theme-aware hover and divider colors ([#&#8203;8744](https://github.com/holoviz/panel/pull/8744)) - Improve `Dial` rendering and theming ([#&#8203;8796](https://github.com/holoviz/panel/pull/8796)) - Keep `Tabulator` hidden until it is built and styled to avoid a flash of unstyled content ([#&#8203;8799](https://github.com/holoviz/panel/pull/8799)) - Use a single loading indicator in converted apps ([#&#8203;8827](https://github.com/holoviz/panel/pull/8827)) ##### 🐛 Bug Fixes - Make `Tabulator` edits robust by sending the edited value and old value with the edit event, fixing `on_edit` callbacks that reported stale values and edits under remote pagination that could corrupt a sibling row ([#&#8203;8731](https://github.com/holoviz/panel/pull/8731)) - Ignore stale `Tabulator` data and server-side stream echoes ([#&#8203;8797](https://github.com/holoviz/panel/pull/8797)) - Prevent `Tabulator` page reset when clicking Last on a shrunk container ([#&#8203;8738](https://github.com/holoviz/panel/pull/8738)) - Fix the `Tabulator` keywords header filter raising an error when `header_filters=True` ([#&#8203;8726](https://github.com/holoviz/panel/pull/8726)) - Honor `matchAll` in `Tabulator` keywords header filters when pagination is not remote ([#&#8203;8842](https://github.com/holoviz/panel/pull/8842)) - Show the `Tabulator` loading spinner when the table has no columns ([#&#8203;8807](https://github.com/holoviz/panel/pull/8807)) - Re-measure `Tabulator` columns once web fonts have loaded, so headers are no longer truncated in apps with a custom font, and stop the `container_popup` spacer column from showing a sort arrow ([#&#8203;8896](https://github.com/holoviz/panel/pull/8896)) - Fix component libraries (Tabulator, ECharts, Vega, KaTeX, DeckGL, JSONEditor) failing to load in notebooks with RequireJS, i.e. classic Jupyter notebook and VS Code, including on networks that block the public CDNs, where the bundled copies of the libraries are now loaded instead ([#&#8203;8762](https://github.com/holoviz/panel/pull/8762), [#&#8203;8848](https://github.com/holoviz/panel/pull/8848)) - Stop busy state from echoing between server and client and from leaking across threads, which left busy indicators such as the `Page` progress bar visible while the server was idle ([#&#8203;8780](https://github.com/holoviz/panel/pull/8780)) - Make busy state cleanup robust to state resets, missing event loops and failed submits ([#&#8203;8838](https://github.com/holoviz/panel/pull/8838)) - Fix several cache hashing collisions: reordered DataFrame rows, frames differing only in dtypes, same-named closures and scalars of different types (e.g. `0` and `False`) no longer share cache entries ([#&#8203;8759](https://github.com/holoviz/panel/pull/8759)) - Hash value-type arguments such as `UUID`, `Decimal`, `Fraction`, IP addresses, enums and dataclasses by value in `pn.cache` instead of by `id()`, which could return another call's result ([#&#8203;8821](https://github.com/holoviz/panel/pull/8821), [#&#8203;8843](https://github.com/holoviz/panel/pull/8843)) - Cache functions that have no module file ([#&#8203;8770](https://github.com/holoviz/panel/pull/8770)) - Ensure stylesheet models are not reused across sessions ([#&#8203;8740](https://github.com/holoviz/panel/pull/8740)) - Scope reactive stylesheets to their document ([#&#8203;8769](https://github.com/holoviz/panel/pull/8769)) - Keep notebook stylesheets inline after updates ([#&#8203;8787](https://github.com/holoviz/panel/pull/8787)) - Stop shared ESM watchers when they are no longer used ([#&#8203;8775](https://github.com/holoviz/panel/pull/8775)) - Stop the reset of a `param.Event` on a `ReactiveESM` component from re-triggering watchers, which made functions bound to a `pn.ui.Button` run a second time with `False` ([#&#8203;8890](https://github.com/holoviz/panel/pull/8890)) - Freeze `ReactiveHTML` `_scripts` at class creation so instances no longer share and overwrite each other's scripts ([#&#8203;8861](https://github.com/holoviz/panel/pull/8861)) - Skip JS callbacks on properties the rendered model does not have ([#&#8203;8825](https://github.com/holoviz/panel/pull/8825)) - Ignore click events on disabled buttons ([#&#8203;8823](https://github.com/holoviz/panel/pull/8823)) - Notify `MenuButton` callbacks when the same item is selected repeatedly ([#&#8203;8810](https://github.com/holoviz/panel/pull/8810)) - Keep `TextInput` `value_input` in sync when `value` is set from Python, so pressing Enter no longer reverts the value ([#&#8203;8782](https://github.com/holoviz/panel/pull/8782)) - Fix `DatetimeSlider` when `start` and `end` fall on the same day ([#&#8203;8743](https://github.com/holoviz/panel/pull/8743)) - Allow setting `DateRangeSlider` and `DatetimeRangeSlider` `value` to `None` ([#&#8203;8901](https://github.com/holoviz/panel/pull/8901)) - Serialize string values of `LiteralInput` as JSON when `serializer='json'` ([#&#8203;8894](https://github.com/holoviz/panel/pull/8894)) - Restore rejected boundary values on repeated throttled `Param` slider changes ([#&#8203;8851](https://github.com/holoviz/panel/pull/8851)) - Fix nested Plotly arrays being lost when syncing across clients ([#&#8203;8758](https://github.com/holoviz/panel/pull/8758)) - Clean up `GridSpec` children when deleting cells ([#&#8203;8736](https://github.com/holoviz/panel/pull/8736)) - Parse negative integers in URL query parameters as integers ([#&#8203;8790](https://github.com/holoviz/panel/pull/8790)) - Keep URL query values as strings when syncing `String` parameters ([#&#8203;8814](https://github.com/holoviz/panel/pull/8814)) - Raise a `ValueError` when `pn.state.location.sync` is asked to sync a constant parameter such as `value_throttled`, instead of silently ignoring the URL value ([#&#8203;8902](https://github.com/holoviz/panel/pull/8902)) - Abbreviate `Parameterized` objects inside lists in reprs ([#&#8203;8792](https://github.com/holoviz/panel/pull/8792)) - Reject unparsable `schedule_task` periods instead of looping ([#&#8203;8812](https://github.com/holoviz/panel/pull/8812)) - Strip IPython line magics when serving notebooks ([#&#8203;8781](https://github.com/holoviz/panel/pull/8781)) - Use CDN resources in exported notebooks ([#&#8203;8776](https://github.com/holoviz/panel/pull/8776)) - Treat converted Pyodide apps as served ([#&#8203;8833](https://github.com/holoviz/panel/pull/8833)) - Deliver every message, including binary data, to Python in apps converted with `--to pyodide-worker` ([#&#8203;8844](https://github.com/holoviz/panel/pull/8844)) - Handle the Windows `ProactorEventLoop` ([#&#8203;8815](https://github.com/holoviz/panel/pull/8815)) - Ensure the server thread shuts down fully before exiting ([#&#8203;8741](https://github.com/holoviz/panel/pull/8741)) - Resolve the design from the document each model was rendered into when a parameter changes, so a component shown in sessions with different designs no longer receives another session's stylesheets ([#&#8203;8879](https://github.com/holoviz/panel/pull/8879)) - Only load resources from the Jupyter server extension endpoint when Panel's server extension launched the kernel, fixing 404s for Panel's JS and component resources in other notebook frontends such as nteract ([#&#8203;8863](https://github.com/holoviz/panel/pull/8863)) - Dispatch changes made inside `hold()` to subscribers of a sessionless Document, so embedders that sync the Document over their own transport receive updates to `ReactiveESM` components and layout children ([#&#8203;8862](https://github.com/holoviz/panel/pull/8862)) - Detect the format of raw image bytes from the file signature, so JPEG, GIF and WebP bytes passed to `pn.pane.Image` are no longer encoded as PNG with nonsensical dimensions, and fix the dimensions of lossy WebP images ([#&#8203;8875](https://github.com/holoviz/panel/pull/8875)) - Detect local media files with uppercase extensions, e.g. `pn.pane.Video('CLIP.MP4')` ([#&#8203;8867](https://github.com/holoviz/panel/pull/8867)) - Fix an off-by-one error in `Player` in notebooks ([#&#8203;8860](https://github.com/holoviz/panel/pull/8860)) - Fix the inverted `apple_icon` condition in the base template that emitted an empty `apple-touch-icon` link ([#&#8203;8752](https://github.com/holoviz/panel/pull/8752)) ##### ⚙️ Compatibility - Add compatibility with Bokeh 3.10, which is now the minimum supported version, and drop support for Python 3.10 and 3.11 ([#&#8203;8716](https://github.com/holoviz/panel/pull/8716)) - Add compatibility with the upcoming Bokeh 3.10.2 ([#&#8203;8898](https://github.com/holoviz/panel/pull/8898)) - Require `panel-material-ui` 0.16.6 or later ([#&#8203;8899](https://github.com/holoviz/panel/pull/8899)) - Add support for Python 3.15 ([#&#8203;8767](https://github.com/holoviz/panel/pull/8767), [#&#8203;8850](https://github.com/holoviz/panel/pull/8850)) - Upgrade to the latest JupyterLite and Pyodide (v314.0.7) ([#&#8203;8763](https://github.com/holoviz/panel/pull/8763)) - Ignore the NumPy 2.5 `ndarray.shape` deprecation warning raised by VTK ([#&#8203;8729](https://github.com/holoviz/panel/pull/8729)) - Annotate subclasses in `_descendents` for mypy with Param 2.4 ([#&#8203;8801](https://github.com/holoviz/panel/pull/8801)) ##### ⚠️ Deprecations and Removals - `--rest-provider`, `--rest-endpoint`, `pn.state.publish` and the `panel.io.rest` module are deprecated and will be removed in Panel 2.0; use `--plugins` to add custom endpoints instead. `/rest/session_info` is kept as a deprecated alias of `/session_info`, and `--rest-provider` is not supported on the ASGI servers ([#&#8203;8828](https://github.com/holoviz/panel/pull/8828)) - `pn.widgets.DataFrame` is deprecated in favor of `Tabulator` and will be removed in Panel 2.0; `Param` now always maps `param.DataFrame` parameters to `Tabulator` ([#&#8203;8752](https://github.com/holoviz/panel/pull/8752)) - The LangChain callback handler, deprecated since 1.8.0, has been removed ([#&#8203;8689](https://github.com/holoviz/panel/pull/8689)) - The `bokeh-fastapi` and `bokeh-django` dependencies have been dropped; see the upgrade guide for migrating Django integrations ([#&#8203;8722](https://github.com/holoviz/panel/pull/8722)) - The `--disable-http-patch` option of `panel convert` has been removed ([#&#8203;8777](https://github.com/holoviz/panel/pull/8777)) - `PercentEditor` and `TimeEditor` on `Tabulator` now use Tabulator's native input editor, and in served apps a `DataFrame` widget or `hv.Table` that first appears after the page has loaded requires `pn.extension('bokeh-tables')` ([#&#8203;8837](https://github.com/holoviz/panel/pull/8837)) - Components without an explicit design now have `design=None` and use the configured design when they render, so a design configured after a component is created but before it is rendered applies to it ([#&#8203;8877](https://github.com/holoviz/panel/pull/8877)) - Calling `.servable()` with an unknown `target` on the `page` template now raises a `ValueError` instead of being silently dropped ([#&#8203;8808](https://github.com/holoviz/panel/pull/8808)) ##### 📚 Documentation - Add a new homepage and versioned documentation ([#&#8203;8753](https://github.com/holoviz/panel/pull/8753)) - Use `pn.ui` throughout the docs and gallery, generate the Component Gallery from the `panel-material-ui` reference notebooks and move the classic reference to `reference/classic/` ([#&#8203;8752](https://github.com/holoviz/panel/pull/8752)) - Move the narrative docs to `pn.ui.Page` and rewrite the getting started, core concepts and templates guides around it ([#&#8203;8808](https://github.com/holoviz/panel/pull/8808)) - Migrate the tutorials to `pn.ui` and fix broken examples ([#&#8203;8891](https://github.com/holoviz/panel/pull/8891)) - Add `pn.ui` how-to guides for theming, palettes, typography, dark mode, branding, icons and building Material UI components ([#&#8203;8892](https://github.com/holoviz/panel/pull/8892)) - Modernize the gallery examples and add new apps, including a Gaia million star atlas, a model serving monitor and a storm surge studio ([#&#8203;8798](https://github.com/holoviz/panel/pull/8798)) - Add a how-to guide for theming server pages with `page_config` ([#&#8203;8802](https://github.com/holoviz/panel/pull/8802)) - Document the admin dashboard pages, plugins and access control ([#&#8203;8805](https://github.com/holoviz/panel/pull/8805)) - Document the `--server` option and per-server differences for endpoints, wildcard routes and static files ([#&#8203;8722](https://github.com/holoviz/panel/pull/8722)) - Document approximate hashing of large inputs in the caching guide ([#&#8203;8759](https://github.com/holoviz/panel/pull/8759)) - Document the Markdown docs and `llms.txt` ([#&#8203;8715](https://github.com/holoviz/panel/pull/8715), [#&#8203;8730](https://github.com/holoviz/panel/pull/8730)) - Add a note on configuring the Param mypy plugin ([#&#8203;8734](https://github.com/holoviz/panel/pull/8734)) - Surface the guide on using Panel with an AI assistant in the How-to section ([#&#8203;8846](https://github.com/holoviz/panel/pull/8846)) - Explain running UI tests with Firefox and WebKit in the developer guide ([#&#8203;8809](https://github.com/holoviz/panel/pull/8809)) - Note that cell editing takes precedence over row-click selection in the `Tabulator` reference ([#&#8203;8817](https://github.com/holoviz/panel/pull/8817)) - Bring the parameter lists of the pane and layout reference notebooks in line with the code and add examples for many undocumented features ([#&#8203;8882](https://github.com/holoviz/panel/pull/8882)) - Only show the Material version banner on classic reference pages ([#&#8203;8845](https://github.com/holoviz/panel/pull/8845)) - Fix links to the Tabler icons site ([#&#8203;8765](https://github.com/holoviz/panel/pull/8765)) - Fix dead Extensions links in the gallery and use `label=` in the README example ([#&#8203;8855](https://github.com/holoviz/panel/pull/8855)) - Fix broken relative links in how-to guides ([#&#8203;8773](https://github.com/holoviz/panel/pull/8773)) - Fix unresolved cross-page anchor links ([#&#8203;8836](https://github.com/holoviz/panel/pull/8836)) - Fix the broken Troubleshooting card icon ([#&#8203;8865](https://github.com/holoviz/panel/pull/8865)) </details> <details> <summary>pydantic/pydantic (pydantic)</summary> ### [`v2.14.3`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v251-2023-11-15) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.14.2...v2.14.3) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.5.1) ##### What's Changed ##### Packaging - uprev pydantic-core to 2.14.3 by [@&#8203;samuelcolvin](https://github.com/samuelcolvin) in [#&#8203;8120](https://github.com/pydantic/pydantic/pull/8120) ##### Fixes - Fix package description limit by [@&#8203;dmontagu](https://github.com/dmontagu) in [#&#8203;8097](https://github.com/pydantic/pydantic/pull/8097) - Fix `ValidateCallWrapper` error when creating a model which has a @&#8203;validate_call wrapped field annotation by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [#&#8203;8110](https://github.com/pydantic/pydantic/pull/8110) ### [`v2.14.2`](https://github.com/pydantic/pydantic/releases/tag/v2.14.2): 2026-10-29 [Compare Source](https://github.com/pydantic/pydantic/compare/v2.14.1...v2.14.2) #### v2.14.2 (2026-10-29) This release addresses 2 security issues, <https://github.com/pydantic/pydantic/security/advisories/GHSA-qpmf-fgh3-ff25> and <https://github.com/pydantic/pydantic/security/advisories/GHSA-3r8g-cqwr-jr29>. ##### Packaging - Bump PyO3 to 0.30.1, jiter to 0.18.0, use `PyFrozenDict` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;14003](https://github.com/pydantic/pydantic/pull/14003) - Bump speedate to v0.18.0 by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;14007](https://github.com/pydantic/pydantic/pull/14007) - Publish `pydantic-core` wheels for PyPy 8.0 (`pp80` ABI) by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;14083](https://github.com/pydantic/pydantic/pull/14083) ##### Performance - Avoid Python tuple allocation during model fields validation by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13955](https://github.com/pydantic/pydantic/pull/13955) - Lazily call repr of values during nested union serialization by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;14082](https://github.com/pydantic/pydantic/pull/14082) - Skip decorator field checks when no field decorators exist by [@&#8203;alexmojaki](https://github.com/alexmojaki) in [#&#8203;14111](https://github.com/pydantic/pydantic/pull/14111) - Avoid heap allocation for small JSON model field buffers by [@&#8203;alexmojaki](https://github.com/alexmojaki) in [#&#8203;14113](https://github.com/pydantic/pydantic/pull/14113) ##### Fixes - Make JSON validation by iteration consistent with Python approach by [@&#8203;davidhewitt](https://github.com/davidhewitt) in [#&#8203;13275](https://github.com/pydantic/pydantic/pull/13275). JSON validation now handles field lookup and extra data the same way as Python validation. In particular, keys that only match an unused alias or field name are now treated as extra data, instead of being silently dropped: ```python from pydantic import BaseModel, ConfigDict from pydantic.alias_generators import to_camel class Page(BaseModel): model_config = ConfigDict(extra='forbid', alias_generator=to_camel) page_size: int = 10 Page.model_validate_json('{"page_size": 50}') # Before: Page(page_size=10) # After: ValidationError (extra_forbidden) ``` See the [pull request](https://github.com/pydantic/pydantic/pull/13275) for the full list of behavior changes. This change addresses <https://github.com/pydantic/pydantic/security/advisories/GHSA-qpmf-fgh3-ff25>. - Ignore extra data matching a field name in `TypedDict` and dataclasses with `extra=allow` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;14090](https://github.com/pydantic/pydantic/pull/14090). Addresses <https://github.com/pydantic/pydantic/security/advisories/GHSA-3r8g-cqwr-jr29>. - Fix unpickling of generic classes defined in separate module by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13994](https://github.com/pydantic/pydantic/pull/13994) - Support explicit `by_alias` overriding `validate_by_alias` in validation JSON schemas by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13997](https://github.com/pydantic/pydantic/pull/13997) - Fix mypy plugin crash on deferred empty model by [@&#8203;ilevkivskyi](https://github.com/ilevkivskyi) in [#&#8203;14027](https://github.com/pydantic/pydantic/pull/14027) - Fix infinite recursion when validating an invalid default with `PydanticUseDefault` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;14028](https://github.com/pydantic/pydantic/pull/14028) - Implement recursion guard for `validate_strings()` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;14029](https://github.com/pydantic/pydantic/pull/14029) - Support named tuples in `Sequence` serialization by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;14033](https://github.com/pydantic/pydantic/pull/14033) - Take `preserve_empty_path` into account in URL types equality by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;14035](https://github.com/pydantic/pydantic/pull/14035) - Fix pickling of `PydanticCustomError` and `ValidationError`s containing custom errors by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;14051](https://github.com/pydantic/pydantic/pull/14051) - Do not extract attribute docstrings from nested classes and functions by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;14052](https://github.com/pydantic/pydantic/pull/14052) - Fix forward annotations evaluation and type variables substitution when rebuilding parametrized generic models by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;14054](https://github.com/pydantic/pydantic/pull/14054) - Fix `Self` resolution in parametrized generics by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;14065](https://github.com/pydantic/pydantic/pull/14065) - Check mapping `max_length` constraint during validation by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;14092](https://github.com/pydantic/pydantic/pull/14092) - Fix deep copy of self-referential models by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;14116](https://github.com/pydantic/pydantic/pull/14116) **Full Changelog**: <https://github.com/pydantic/pydantic/compare/v2.14.1...v2.14.2> ### [`v2.14.1`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v250-2023-11-13) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.14.0...v2.14.1) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.5.0) The code released in v2.5.0 is functionally identical to that of v2.5.0b1. ##### What's Changed ##### Packaging - Update pydantic-core from 2.10.1 to 2.14.1, significant changes from these updates are described below, full changelog [here](https://github.com/pydantic/pydantic-core/compare/v2.10.1...v2.14.1) - Update to `pyright==1.1.335` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;8075](https://github.com/pydantic/pydantic/pull/8075) ##### New Features - Allow plugins to catch non `ValidationError` errors by [@&#8203;adriangb](https://github.com/adriangb) in [#&#8203;7806](https://github.com/pydantic/pydantic/pull/7806) - Support `__doc__` argument in `create_model()` by [@&#8203;chris-spann](https://github.com/chris-spann) in [#&#8203;7863](https://github.com/pydantic/pydantic/pull/7863) - Expose `regex_engine` flag - meaning you can use with the Rust or Python regex libraries in constraints by [@&#8203;utkini](https://github.com/utkini) in [#&#8203;7768](https://github.com/pydantic/pydantic/pull/7768) - Save return type generated from type annotation in `ComputedFieldInfo` by [@&#8203;alexmojaki](https://github.com/alexmojaki) in [#&#8203;7889](https://github.com/pydantic/pydantic/pull/7889) - Adopting `ruff` formatter by [@&#8203;Luca-Blight](https://github.com/Luca-Blight) in [#&#8203;7930](https://github.com/pydantic/pydantic/pull/7930) - Added `validation_error_cause` to config by [@&#8203;zakstucke](https://github.com/zakstucke) in [#&#8203;7626](https://github.com/pydantic/pydantic/pull/7626) - Make path of the item to validate available in plugin by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;7861](https://github.com/pydantic/pydantic/pull/7861) - Add `CallableDiscriminator` and `Tag` by [@&#8203;dmontagu](https://github.com/dmontagu) in [#&#8203;7983](https://github.com/pydantic/pydantic/pull/7983) - `CallableDiscriminator` renamed to `Discriminator` by [@&#8203;dmontagu](https://github.com/dmontagu) in [#&#8203;8047](https://github.com/pydantic/pydantic/pull/8047) - Make union case tags affect union error messages by [@&#8203;dmontagu](https://github.com/dmontagu) in [#&#8203;8001](https://github.com/pydantic/pydantic/pull/8001) - Add `examples` and `json_schema_extra` to `@computed_field` by [@&#8203;alexmojaki](https://github.com/alexmojaki) in [#&#8203;8013](https://github.com/pydantic/pydantic/pull/8013) - Add `JsonValue` type by [@&#8203;dmontagu](https://github.com/dmontagu) in [#&#8203;7998](https://github.com/pydantic/pydantic/pull/7998) - Allow `str` as argument to `Discriminator` by [@&#8203;dmontagu](https://github.com/dmontagu) in [#&#8203;8047](https://github.com/pydantic/pydantic/pull/8047) - Add `SchemaSerializer.__reduce__` method to enable pickle serialization by [@&#8203;edoakes](https://github.com/edoakes) in [pydantic/pydantic-core#1006](https://github.com/pydantic/pydantic-core/pull/1006) ##### Changes - **Significant Change:** replace `ultra_strict` with new smart union implementation, the way unions are validated has changed significantly to improve performance and correctness, we have worked hard to absolutely minimise the number of cases where behaviour has changed, see the PR for details - by [@&#8203;davidhewitt](https://github.com/davidhewitt) in [pydantic/pydantic-core#867](https://github.com/pydantic/pydantic-core/pull/867) - Add support for instance method reassignment when `extra='allow'` by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [#&#8203;7683](https://github.com/pydantic/pydantic/pull/7683) - Support JSON schema generation for `Enum` types with no cases by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [#&#8203;7927](https://github.com/pydantic/pydantic/pull/7927) - Warn if a class inherits from `Generic` before `BaseModel` by [@&#8203;alexmojaki](https://github.com/alexmojaki) in [#&#8203;7891](https://github.com/pydantic/pydantic/pull/7891) ##### Performance - New custom JSON parser, `jiter` by [@&#8203;samuelcolvin](https://github.com/samuelcolvin) in [pydantic/pydantic-core#974](https://github.com/pydantic/pydantic-core/pull/974) - PGO build for MacOS M1 by [@&#8203;samuelcolvin](https://github.com/samuelcolvin) in [pydantic/pydantic-core#1063](https://github.com/pydantic/pydantic-core/pull/1063) - Use `__getattr__` for all package imports, improve import time by [@&#8203;samuelcolvin](https://github.com/samuelcolvin) in [#&#8203;7947](https://github.com/pydantic/pydantic/pull/7947) ##### Fixes - Fix `mypy` issue with subclasses of `RootModel` by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [#&#8203;7677](https://github.com/pydantic/pydantic/pull/7677) - Properly rebuild the `FieldInfo` when a forward ref gets evaluated by [@&#8203;dmontagu](https://github.com/dmontagu) in [#&#8203;7698](https://github.com/pydantic/pydantic/pull/7698) - Fix failure to load `SecretStr` from JSON (regression in v2.4) by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [#&#8203;7729](https://github.com/pydantic/pydantic/pull/7729) - Fix `defer_build` behavior with `TypeAdapter` by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [#&#8203;7736](https://github.com/pydantic/pydantic/pull/7736) - Improve compatibility with legacy `mypy` versions by [@&#8203;dmontagu](https://github.com/dmontagu) in [#&#8203;7742](https://github.com/pydantic/pydantic/pull/7742) - Fix: update `TypeVar` handling when default is not set by [@&#8203;pmmmwh](https://github.com/pmmmwh) in [#&#8203;7719](https://github.com/pydantic/pydantic/pull/7719) - Support specification of `strict` on `Enum` type fields by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [#&#8203;7761](https://github.com/pydantic/pydantic/pull/7761) - Wrap `weakref.ref` instead of subclassing to fix `cloudpickle` serialization by [@&#8203;edoakes](https://github.com/edoakes) in [#&#8203;7780](https://github.com/pydantic/pydantic/pull/7780) - Keep values of private attributes set within `model_post_init` in subclasses by [@&#8203;alexmojaki](https://github.com/alexmojaki) in [#&#8203;7775](https://github.com/pydantic/pydantic/pull/7775) - Add more specific type for non-callable `json_schema_extra` by [@&#8203;alexmojaki](https://github.com/alexmojaki) in [#&#8203;7803](https://github.com/pydantic/pydantic/pull/7803) - Raise an error when deleting frozen (model) fields by [@&#8203;alexmojaki](https://github.com/alexmojaki) in [#&#8203;7800](https://github.com/pydantic/pydantic/pull/7800) - Fix schema sorting bug with default values by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [#&#8203;7817](https://github.com/pydantic/pydantic/pull/7817) - Use generated alias for aliases that are not specified otherwise by [@&#8203;alexmojaki](https://github.com/alexmojaki) in [#&#8203;7802](https://github.com/pydantic/pydantic/pull/7802) - Support `strict` specification for `UUID` types by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [#&#8203;7865](https://github.com/pydantic/pydantic/pull/7865) - JSON schema: fix extra parameter handling by [@&#8203;me-and](https://github.com/me-and) in [#&#8203;7810](https://github.com/pydantic/pydantic/pull/7810) - Fix: support `pydantic.Field(kw_only=True)` with inherited dataclasses by [@&#8203;PrettyWood](https://github.com/PrettyWood) in [#&#8203;7827](https://github.com/pydantic/pydantic/pull/7827) - Support `validate_call` decorator for methods in classes with `__slots__` by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [#&#8203;7883](https://github.com/pydantic/pydantic/pull/7883) - Fix pydantic dataclass problem with `dataclasses.field` default by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;7898](https://github.com/pydantic/pydantic/pull/7898) - Fix schema generation for generics with union type bounds by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [#&#8203;7899](https://github.com/pydantic/pydantic/pull/7899) - Fix version for `importlib_metadata` on python 3.7 by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [#&#8203;7904](https://github.com/pydantic/pydantic/pull/7904) - Support `|` operator (Union) in PydanticRecursiveRef by [@&#8203;alexmojaki](https://github.com/alexmojaki) in [#&#8203;7892](https://github.com/pydantic/pydantic/pull/7892) - Fix `display_as_type` for `TypeAliasType` in python 3.12 by [@&#8203;dmontagu](https://github.com/dmontagu) in [#&#8203;7929](https://github.com/pydantic/pydantic/pull/7929) - Add support for `NotRequired` generics in `TypedDict` by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [#&#8203;7932](https://github.com/pydantic/pydantic/pull/7932) - Make generic `TypeAliasType` specifications produce different schema definitions by [@&#8203;alexdrydew](https://github.com/alexdrydew) in [#&#8203;7893](https://github.com/pydantic/pydantic/pull/7893) - Added fix for signature of inherited dataclass by [@&#8203;howsunjow](https://github.com/howsunjow) in [#&#8203;7925](https://github.com/pydantic/pydantic/pull/7925) - Make the model name generation more robust in JSON schema by [@&#8203;joakimnordling](https://github.com/joakimnordling) in [#&#8203;7881](https://github.com/pydantic/pydantic/pull/7881) - Fix plurals in validation error messages (in tests) by [@&#8203;Iipin](https://github.com/Iipin) in [#&#8203;7972](https://github.com/pydantic/pydantic/pull/7972) - `PrivateAttr` is passed from `Annotated` default position by [@&#8203;tabassco](https://github.com/tabassco) in [#&#8203;8004](https://github.com/pydantic/pydantic/pull/8004) - Don't decode bytes (which may not be UTF8) when displaying SecretBytes by [@&#8203;alexmojaki](https://github.com/alexmojaki) in [#&#8203;8012](https://github.com/pydantic/pydantic/pull/8012) - Use `classmethod` instead of `classmethod[Any, Any, Any]` by [@&#8203;Mr-Pepe](https://github.com/Mr-Pepe) in [#&#8203;7979](https://github.com/pydantic/pydantic/pull/7979) - Clearer error on invalid Plugin by [@&#8203;samuelcolvin](https://github.com/samuelcolvin) in [#&#8203;8023](https://github.com/pydantic/pydantic/pull/8023) - Correct pydantic dataclasses import by [@&#8203;samuelcolvin](https://github.com/samuelcolvin) in [#&#8203;8027](https://github.com/pydantic/pydantic/pull/8027) - Fix misbehavior for models referencing redefined type aliases by [@&#8203;dmontagu](https://github.com/dmontagu) in [#&#8203;8050](https://github.com/pydantic/pydantic/pull/8050) - Fix `Optional` field with `validate_default` only performing one field validation by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [pydantic/pydantic-core#1002](https://github.com/pydantic/pydantic-core/pull/1002) - Fix `definition-ref` bug with `Dict` keys by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [pydantic/pydantic-core#1014](https://github.com/pydantic/pydantic-core/pull/1014) - Fix bug allowing validation of `bool` types with `coerce_numbers_to_str=True` by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [pydantic/pydantic-core#1017](https://github.com/pydantic/pydantic-core/pull/1017) - Don't accept `NaN` in float and decimal constraints by [@&#8203;davidhewitt](https://github.com/davidhewitt) in [pydantic/pydantic-core#1037](https://github.com/pydantic/pydantic-core/pull/1037) - Add `lax_str` and `lax_int` support for enum values not inherited from str/int by [@&#8203;michaelhly](https://github.com/michaelhly) in [pydantic/pydantic-core#1015](https://github.com/pydantic/pydantic-core/pull/1015) - Support subclasses in lists in `Union` of `List` types by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [pydantic/pydantic-core#1039](https://github.com/pydantic/pydantic-core/pull/1039) - Allow validation against `max_digits` and `decimals` to pass if normalized or non-normalized input is valid by [@&#8203;sydney-runkle](https://github.com/sydney-runkle) in [pydantic/pydantic-core#1049](https://github.com/pydantic/pydantic-core/pull/1049) - Fix: proper pluralization in `ValidationError` messages by [@&#8203;Iipin](https://github.com/Iipin) in [pydantic/pydantic-core#1050](https://github.com/pydantic/pydantic-core/pull/1050) - Disallow the string `'-'` as `datetime` input by [@&#8203;davidhewitt](https://github.com/davidhewitt) in [pydantic/speedate#52](https://github.com/pydantic/speedate/pull/52) & [pydantic/pydantic-core#1060](https://github.com/pydantic/pydantic-core/pull/1060) - Fix: NaN and Inf float serialization by [@&#8203;davidhewitt](https://github.com/davidhewitt) in [pydantic/pydantic-core#1062](https://github.com/pydantic/pydantic-core/pull/1062) - Restore manylinux-compatible PGO builds by [@&#8203;davidhewitt](https://github.com/davidhewitt) in [pydantic/pydantic-core#1068](https://github.com/pydantic/pydantic-core/pull/1068) ##### New Contributors ##### `pydantic` - [@&#8203;schneebuzz](https://github.com/schneebuzz) made their first contribution in [#&#8203;7699](https://github.com/pydantic/pydantic/pull/7699) - [@&#8203;edoakes](https://github.com/edoakes) made their first contribution in [#&#8203;7780](https://github.com/pydantic/pydantic/pull/7780) - [@&#8203;alexmojaki](https://github.com/alexmojaki) made their first contribution in [#&#8203;7775](https://github.com/pydantic/pydantic/pull/7775) - [@&#8203;NickG123](https://github.com/NickG123) made their first contribution in [#&#8203;7751](https://github.com/pydantic/pydantic/pull/7751) - [@&#8203;gowthamgts](https://github.com/gowthamgts) made their first contribution in [#&#8203;7830](https://github.com/pydantic/pydantic/pull/7830) - [@&#8203;jamesbraza](https://github.com/jamesbraza) made their first contribution in [#&#8203;7848](https://github.com/pydantic/pydantic/pull/7848) - [@&#8203;laundmo](https://github.com/laundmo) made their first contribution in [#&#8203;7850](https://github.com/pydantic/pydantic/pull/7850) - [@&#8203;rahmatnazali](https://github.com/rahmatnazali) made their first contribution in [#&#8203;7870](https://github.com/pydantic/pydantic/pull/7870) - [@&#8203;waterfountain1996](https://github.com/waterfountain1996) made their first contribution in [#&#8203;7878](https://github.com/pydantic/pydantic/pull/7878) - [@&#8203;chris-spann](https://github.com/chris-spann) made their first contribution in [#&#8203;7863](https://github.com/pydantic/pydantic/pull/7863) - [@&#8203;me-and](https://github.com/me-and) made their first contribution in [#&#8203;7810](https://github.com/pydantic/pydantic/pull/7810) - [@&#8203;utkini](https://github.com/utkini) made their first contribution in [#&#8203;7768](https://github.com/pydantic/pydantic/pull/7768) - [@&#8203;bn-l](https://github.com/bn-l) made their first contribution in [#&#8203;7744](https://github.com/pydantic/pydantic/pull/7744) - [@&#8203;alexdrydew](https://github.com/alexdrydew) made their first contribution in [#&#8203;7893](https://github.com/pydantic/pydantic/pull/7893) - [@&#8203;Luca-Blight](https://github.com/Luca-Blight) made their first contribution in [#&#8203;7930](https://github.com/pydantic/pydantic/pull/7930) - [@&#8203;howsunjow](https://github.com/howsunjow) made their first contribution in [#&#8203;7925](https://github.com/pydantic/pydantic/pull/7925) - [@&#8203;joakimnordling](https://github.com/joakimnordling) made their first contribution in [#&#8203;7881](https://github.com/pydantic/pydantic/pull/7881) - [@&#8203;icfly2](https://github.com/icfly2) made their first contribution in [#&#8203;7976](https://github.com/pydantic/pydantic/pull/7976) - [@&#8203;Yummy-Yums](https://github.com/Yummy-Yums) made their first contribution in [#&#8203;8003](https://github.com/pydantic/pydantic/pull/8003) - [@&#8203;Iipin](https://github.com/Iipin) made their first contribution in [#&#8203;7972](https://github.com/pydantic/pydantic/pull/7972) - [@&#8203;tabassco](https://github.com/tabassco) made their first contribution in [#&#8203;8004](https://github.com/pydantic/pydantic/pull/8004) - [@&#8203;Mr-Pepe](https://github.com/Mr-Pepe) made their first contribution in [#&#8203;7979](https://github.com/pydantic/pydantic/pull/7979) - [@&#8203;0x00cl](https://github.com/0x00cl) made their first contribution in [#&#8203;8010](https://github.com/pydantic/pydantic/pull/8010) - [@&#8203;barraponto](https://github.com/barraponto) made their first contribution in [#&#8203;8032](https://github.com/pydantic/pydantic/pull/8032) ##### `pydantic-core` - [@&#8203;sisp](https://github.com/sisp) made their first contribution in [pydantic/pydantic-core#995](https://github.com/pydantic/pydantic-core/pull/995) - [@&#8203;michaelhly](https://github.com/michaelhly) made their first contribution in [pydantic/pydantic-core#1015](https://github.com/pydantic/pydantic-core/pull/1015) ### [`v2.14.0`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2140-2026-10-08) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.13.5...v2.14.0) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.14.0) ##### What's Changed The highlights of the v2.14 release are available in the [blog post](https://pydantic.dev/articles/pydantic-v2-14-release). Several minor changes (considered non-breaking changes according to our [versioning policy](https://pydantic.dev/docs/validation/2.14/get-started/version-policy/#pydantic-v2)) are also included in this release. Make sure to look into them before upgrading. This release drops support for Python 3.9 and adds support for Python 3.15. ##### New Features - Add support for `multiple_of` constraint in `fraction` and `timedelta` core schemas by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13873](https://github.com/pydantic/pydantic/pull/13873) - Add `__namespace__` parameter to `create_model()` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13895](https://github.com/pydantic/pydantic/pull/13895) ##### Changes - Add an `ordered-dict` core schema by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13796](https://github.com/pydantic/pydantic/pull/13796) - Add a `counter` core schema by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13824](https://github.com/pydantic/pydantic/pull/13824) - Do not mutate `model_config` attribute by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13825](https://github.com/pydantic/pydantic/pull/13825) - Reject newlines in `NameEmail` validation by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13897](https://github.com/pydantic/pydantic/pull/13897) ##### Fixes - Call enum constructors in both validation modes by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13792](https://github.com/pydantic/pydantic/pull/13792) - Fix documentation examples not raising and remove unused `string_sub_type` unused error code by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13821](https://github.com/pydantic/pydantic/pull/13821) - Catch `OverflowError` during `ByteSize` validation by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13850](https://github.com/pydantic/pydantic/pull/13850) - Require `multiple_of` constraints to be positive by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13862](https://github.com/pydantic/pydantic/pull/13862) - Always pop field name and model type stacks during schema generation by [@&#8203;saquibjawedbit](https://github.com/saquibjawedbit) in [#&#8203;13859](https://github.com/pydantic/pydantic/pull/13859) - Handle `TypeError` gracefully during docstring extraction by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13874](https://github.com/pydantic/pydantic/pull/13874) - Fix config propagation of stdlib dataclasses and `TypedDict`s in JSON Schema by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13891](https://github.com/pydantic/pydantic/pull/13891) - Don't apply `ser_json_timedelta` to all datetime types in serialization inference by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13892](https://github.com/pydantic/pydantic/pull/13892) - Encode JSON Schema defaults with a consistent configuration by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13893](https://github.com/pydantic/pydantic/pull/13893) - Propagate `init` and `kw_only=False` from `Field()` to stdlib dataclass fields by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13898](https://github.com/pydantic/pydantic/pull/13898) - Respect propagated extra config in the JSON Schema of stdlib dataclasses by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13899](https://github.com/pydantic/pydantic/pull/13899) - Handle OS errors during `ZoneInfo` validation by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13912](https://github.com/pydantic/pydantic/pull/13912) - Handle exceptions during `Decimal` validation by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13940](https://github.com/pydantic/pydantic/pull/13940) - Rebuild incomplete types during serialization inference by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13922](https://github.com/pydantic/pydantic/pull/13922) - Reject large exponents in `Fraction` validation by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13944](https://github.com/pydantic/pydantic/pull/13944) - Avoid validating URL prefix multiple times in multi host URLs by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13945](https://github.com/pydantic/pydantic/pull/13945) ##### New Contributors - [@&#8203;saquibjawedbit](https://github.com/saquibjawedbit) made their first contribution in [#&#8203;13859](https://github.com/pydantic/pydantic/pull/13859) ### [`v2.13.5`](https://github.com/pydantic/pydantic/releases/tag/v2.13.5): 2026-08-28 [Compare Source](https://github.com/pydantic/pydantic/compare/v2.13.4...v2.13.5) #### v2.13.5 (2026-08-28) ##### What's Changed ##### Fixes - Allow reuse of validators when plugins are set by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13535](https://github.com/pydantic/pydantic/pull/13535) - Fix missing GC traversal on some `pydantic-core` struct fields by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13624](https://github.com/pydantic/pydantic/pull/13624) - Fix missing GC traversal in `pydantic-core` for `GeneralFieldsSerializer` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13629](https://github.com/pydantic/pydantic/pull/13629) - Count validated model fields once in smart unions by [@&#8203;tamird](https://github.com/tamird) in [#&#8203;13731](https://github.com/pydantic/pydantic/pull/13731) ### [`v2.13.4`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2134-2026-05-06) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.13.3...v2.13.4) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.13.4) ##### What's Changed ##### Packaging - Bump libc from 0.2.155 to 0.2.185 by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13109](https://github.com/pydantic/pydantic/pull/13109) - Adapt `pydantic-core` linker flags on macOS by [@&#8203;washingtoneg](https://github.com/washingtoneg) and [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13147](https://github.com/pydantic/pydantic/pull/13147) ##### Fixes - Preserve `RootModel` core metadata by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13129](https://github.com/pydantic/pydantic/pull/13129) ### [`v2.13.3`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2133-2026-04-20) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.13.2...v2.13.3) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.13.3) ##### What's Changed ##### Fixes - Handle `AttributeError` subclasses with `from_attributes` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13096](https://github.com/pydantic/pydantic/pull/13096) ### [`v2.13.2`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2132-2026-04-17) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.13.1...v2.13.2) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.13.2) ##### What's Changed ##### Fixes - Fix `ValidationInfo.field_name` missing with `model_validate_json()` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13084](https://github.com/pydantic/pydantic/pull/13084) ### [`v2.13.1`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2131-2026-04-15) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.13.0...v2.13.1) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.13.1) ##### What's Changed ##### Fixes - Fix `ValidationInfo.data` missing with `model_validate_json()` by [@&#8203;davidhewitt](https://github.com/davidhewitt) in [#&#8203;13079](https://github.com/pydantic/pydantic/pull/13079) ### [`v2.13.0`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2130-2026-04-13) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.12.5...v2.13.0) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.13.0) The highlights of the v2.13 release are available in the [blog post](https://pydantic.dev/articles/pydantic-v2-13-release). Several minor changes (considered non-breaking changes according to our [versioning policy](https://pydantic.dev/docs/validation/2.13/get-started/version-policy/#pydantic-v2)) are also included in this release. Make sure to look into them before upgrading. This release contains the updated `pydantic.v1` namespace, matching version 1.10.26 which includes support for Python 3.14. ##### What's Changed See the beta releases for all changes sinces 2.12. ##### New Features - Allow default factories of private attributes to take validated model data by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13013](https://github.com/pydantic/pydantic/pull/13013) ##### Changes - Warn when serializing fixed length tuples with too few items by [@&#8203;arvindsaripalli](https://github.com/arvindsaripalli) in [#&#8203;13016](https://github.com/pydantic/pydantic/pull/13016) ##### Fixes - Change type of `Any` when synthesizing `_build_sources` for `BaseSettings.__init__()` signature in the mypy plugin by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13049](https://github.com/pydantic/pydantic/pull/13049) - Fix model equality when using runtime `extra` configuration by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13062](https://github.com/pydantic/pydantic/pull/13062) ##### Packaging - Add zizmor for GitHub Actions workflow linting by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13039](https://github.com/pydantic/pydantic/pull/13039) - Update jiter to v0.14.0 to fix a segmentation fault on musl Linux by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;13064](https://github.com/pydantic/pydantic/pull/13064) ##### New Contributors - [@&#8203;arvindsaripalli](https://github.com/arvindsaripalli) made their first contribution in [#&#8203;13016](https://github.com/pydantic/pydantic/pull/13016) ### [`v2.12.5`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2125-2025-11-26) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.12.4...v2.12.5) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.12.5) This is the fifth 2.12 patch release, addressing an issue with the `MISSING` sentinel and providing several documentation improvements. The next 2.13 minor release will be published in a couple weeks, and will include a new *polymorphic serialization* feature addressing the remaining unexpected changes to the *serialize as any* behavior. - Fix pickle error when using `model_construct()` on a model with `MISSING` as a default value by [@&#8203;ornariece](https://github.com/ornariece) in [#&#8203;12522](https://github.com/pydantic/pydantic/pull/12522). - Several updates to the documentation by [@&#8203;Viicos](https://github.com/Viicos). ### [`v2.12.4`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2124-2025-11-05) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.12.3...v2.12.4) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.12.4) This is the fourth 2.12 patch release, fixing more regressions, and reverting a change in the `build()` method of the [`AnyUrl` and Dsn types](https://pydantic.dev/docs/validation/latest/api/pydantic/networks/). This patch release also fixes an issue with the serialization of IP address types, when `serialize_as_any` is used. The next patch release will try to address the remaining issues with *serialize as any* behavior by introducing a new *polymorphic serialization* feature, that should be used in most cases in place of *serialize as any*. - Fix issue with forward references in parent `TypedDict` classes by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12427](https://github.com/pydantic/pydantic/pull/12427). This issue is only relevant on Python 3.14 and greater. - Exclude fields with `exclude_if` from JSON Schema required fields by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12430](https://github.com/pydantic/pydantic/pull/12430) - Revert URL percent-encoding of credentials in the `build()` method of the [`AnyUrl` and Dsn types](https://pydantic.dev/docs/validation/latest/api/pydantic/networks/) by [@&#8203;davidhewitt](https://github.com/davidhewitt) in [pydantic-core#1833](https://github.com/pydantic/pydantic-core/pull/1833). This was initially considered as a bugfix, but caused regressions and as such was fully reverted. The next release will include an opt-in option to percent-encode components of the URL. - Add type inference for IP address types by [@&#8203;davidhewitt](https://github.com/davidhewitt) in [pydantic-core#1868](https://github.com/pydantic/pydantic-core/pull/1868). The 2.12 changes to the `serialize_as_any` behavior made it so that IP address types could not properly serialize to JSON. - Avoid getting default values from defaultdict by [@&#8203;davidhewitt](https://github.com/davidhewitt) in [pydantic-core#1853](https://github.com/pydantic/pydantic-core/pull/1853). This fixes a subtle regression in the validation behavior of the [`collections.defaultdict`](https://docs.python.org/3/library/collections.html#collections.defaultdict) type. - Fix issue with field serializers on nested typed dictionaries by [@&#8203;davidhewitt](https://github.com/davidhewitt) in [pydantic-core#1879](https://github.com/pydantic/pydantic-core/pull/1879). - Add more `pydantic-core` builds for the three-threaded version of Python 3.14 by [@&#8203;davidhewitt](https://github.com/davidhewitt) in [pydantic-core#1864](https://github.com/pydantic/pydantic-core/pull/1864). ### [`v2.12.3`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2123-2025-10-17) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.12.2...v2.12.3) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.12.3) ##### What's Changed This is the third 2.12 patch release, fixing issues related to the `FieldInfo` class, and reverting a change to the supported [*after* model validator](https://pydantic.dev/docs/validation/latest/concepts/validators/#model-validators) function signatures. - Raise a warning when an invalid after model validator function signature is raised by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12414](https://github.com/pydantic/pydantic/pull/12414). Starting in 2.12.0, using class methods for *after* model validators raised an error, but the error wasn't raised concistently. We decided to emit a deprecation warning instead. - Add [`FieldInfo.asdict()`](https://pydantic.dev/docs/validation/latest/api/pydantic/fields/#pydantic.fields.FieldInfo.asdict) method, improve documentation around `FieldInfo` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12411](https://github.com/pydantic/pydantic/pull/12411). This also add back support for mutations on `FieldInfo` classes, that are reused as `Annotated` metadata. **However**, note that this is still *not* a supported pattern. Instead, please refer to the [added example](https://pydantic.dev/docs/validation/latest/examples/dynamic_models/) in the documentation. The [blog post](https://pydantic.dev/articles/pydantic-v2-12-release#changes) section on changes was also updated to document the changes related to `serialize_as_any`. ### [`v2.12.2`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2122-2025-10-14) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.12.1...v2.12.2) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.12.2) ##### What's Changed ##### Fixes - Release a new `pydantic-core` version, as a corrupted CPython 3.10 `manylinux2014_aarch64` wheel got uploaded ([pydantic-core#1843](https://github.com/pydantic/pydantic-core/pull/1843)). - Fix issue with recursive generic models with a parent model class by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12398](https://github.com/pydantic/pydantic/pull/12398) ### [`v2.12.1`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2121-2025-10-13) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.12.0...v2.12.1) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.12.1) ##### What's Changed This is the first 2.12 patch release, addressing most (but not all yet) regressions from the initial 2.12.0 release. ##### Fixes - Do not evaluate annotations when inspecting validators and serializers by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12355](https://github.com/pydantic/pydantic/pull/12355) - Make sure `None` is converted as `NoneType` in Python 3.14 by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12370](https://github.com/pydantic/pydantic/pull/12370) - Backport V1 runtime warning when using Python 3.14 by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12367](https://github.com/pydantic/pydantic/pull/12367) - Fix error message for invalid validator signatures by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12366](https://github.com/pydantic/pydantic/pull/12366) - Populate field name in `ValidationInfo` for validation of default value by [@&#8203;Viicos](https://github.com/Viicos) in [pydantic-core#1826](https://github.com/pydantic/pydantic-core/pull/1826) - Encode credentials in `MultiHostUrl` builder by [@&#8203;willswire](https://github.com/willswire) in [pydantic-core#1829](https://github.com/pydantic/pydantic-core/pull/1829) - Respect field serializers when using `serialize_as_any` serialization flag by [@&#8203;davidhewitt](https://github.com/davidhewitt) in [pydantic-core#1829](https://github.com/pydantic/pydantic-core/pull/1829) - Fix various `RootModel` serialization issues by [@&#8203;davidhewitt](https://github.com/davidhewitt) in [pydantic-core#1836](https://github.com/pydantic/pydantic-core/pull/1836) ##### New Contributors - [@&#8203;willswire](https://github.com/willswire) made their first contribution in [pydantic-core#1829](https://github.com/pydantic/pydantic-core/pull/1829) ### [`v2.12.0`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2120-2025-10-07) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.11.10...v2.12.0) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.12.0) This is the final 2.12 release. It features the work of 20 external contributors and provides useful new features, along with initial Python 3.14 support. Several minor changes (considered non-breaking changes according to our [versioning policy](https://pydantic.dev/docs/validation/2.12/get-started/version-policy/#pydantic-v2)) are also included in this release. Make sure to look into them before upgrading. **Note that Pydantic V1 is not compatible with Python 3.14 and greater**. ##### What's Changed See the beta releases for all changes sinces 2.11. ##### New Features - Add `extra` parameter to the validate functions by [@&#8203;anvilpete](https://github.com/anvilpete) in [#&#8203;12233](https://github.com/pydantic/pydantic/pull/12233) - Add `exclude_computed_fields` serialization option by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12334](https://github.com/pydantic/pydantic/pull/12334) - Add `preverse_empty_path` URL options by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12336](https://github.com/pydantic/pydantic/pull/12336) - Add `union_format` parameter to JSON Schema generation by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12147](https://github.com/pydantic/pydantic/pull/12147) - Add `__qualname__` parameter for `create_model` by [@&#8203;Atry](https://github.com/Atry) in [#&#8203;12001](https://github.com/pydantic/pydantic/pull/12001) ##### Fixes - Do not try to infer name from lambda definitions in pipelines API by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12289](https://github.com/pydantic/pydantic/pull/12289) - Use proper namespace for functions in `TypeAdapter` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12324](https://github.com/pydantic/pydantic/pull/12324) - Use `Any` for context type annotation in `TypeAdapter` by [@&#8203;inducer](https://github.com/inducer) in [#&#8203;12279](https://github.com/pydantic/pydantic/pull/12279) - Expose `FieldInfo` in `pydantic.fields.__all__` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12339](https://github.com/pydantic/pydantic/pull/12339) - Respect `validation_alias` in `@validate_call` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12340](https://github.com/pydantic/pydantic/pull/12340) - Use `Any` as context annotation in plugin API by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12341](https://github.com/pydantic/pydantic/pull/12341) - Use proper `stacklevel` in warnings when possible by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12342](https://github.com/pydantic/pydantic/pull/12342) ##### Packaging - Update V1 copy to v1.10.24 by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12338](https://github.com/pydantic/pydantic/pull/12338) ##### New Contributors - [@&#8203;anvilpete](https://github.com/anvilpete) made their first contribution in [#&#8203;12233](https://github.com/pydantic/pydantic/pull/12233) - [@&#8203;JonathanWindell](https://github.com/JonathanWindell) made their first contribution in [#&#8203;12327](https://github.com/pydantic/pydantic/pull/12327) - [@&#8203;inducer](https://github.com/inducer) made their first contribution in [#&#8203;12279](https://github.com/pydantic/pydantic/pull/12279) - [@&#8203;Atry](https://github.com/Atry) made their first contribution in [#&#8203;12001](https://github.com/pydantic/pydantic/pull/12001) ### [`v2.11.10`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v21110-2025-10-04) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.11.9...v2.11.10) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.11.10) ##### What's Changed ##### Fixes - Backport v1.10.24 changes by [@&#8203;Viicos](https://github.com/Viicos) ### [`v2.11.9`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2119-2025-09-13) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.11.8...v2.11.9) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.11.9) ##### What's Changed ##### Fixes - Backport v1.10.23 changes by [@&#8203;Viicos](https://github.com/Viicos) ### [`v2.11.8`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2118-2025-09-13) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.11.7...v2.11.8) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.11.8) ##### What's Changed ##### Fixes - Fix mypy plugin for mypy 1.18 by [@&#8203;cdce8p](https://github.com/cdce8p) in [#&#8203;12209](https://github.com/pydantic/pydantic/pull/12209) ### [`v2.11.7`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2117-2025-06-14) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.11.6...v2.11.7) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.11.7) ##### What's Changed ##### Fixes - Copy `FieldInfo` instance if necessary during `FieldInfo` build by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11898](https://github.com/pydantic/pydantic/pull/11898) ### [`v2.11.6`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2116-2025-06-13) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.11.5...v2.11.6) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.11.6) ##### What's Changed ##### Fixes - Rebuild dataclass fields before schema generation by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11949](https://github.com/pydantic/pydantic/pull/11949) - Always store the original field assignment on `FieldInfo` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11946](https://github.com/pydantic/pydantic/pull/11946) ### [`v2.11.5`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2115-2025-05-22) [Compare Source](https://github.com/pydantic/pydantic/compare/v2.11.4...v2.11.5) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.11.5) ##### What's Changed ##### Fixes - Check if `FieldInfo` is complete after applying type variable map by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11855](https://github.com/pydantic/pydantic/pull/11855) - Do not delete mock validator/serializer in `model_rebuild()` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11890](https://github.com/pydantic/pydantic/pull/11890) - Do not duplicate metadata on model rebuild by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11902](https://github.com/pydantic/pydantic/pull/11902) </details> <details> <summary>pydantic/pydantic-settings (pydantic-settings)</summary> ### [`v2.16.2`](https://github.com/pydantic/pydantic-settings/releases/tag/v2.16.2) [Compare Source](https://github.com/pydantic/pydantic-settings/compare/v2.16.1...v2.16.2) #### Highlights This patch release fixes env decoding of nested dictionary values, `CliApp` handling of `AliasPath`, nested secrets directory precedence and discriminated union defaults with `nested_model_default_partial_update`. ##### Behavior changes - **An explicit `secrets_dir` on `NestedSecretsSettingsSource` now takes precedence** ([#&#8203;1093](https://github.com/pydantic/pydantic-settings/pull/1093)). Previously it was ignored when the wrapped `SecretsSettingsSource` inherited a directory from model config, and an explicit empty list was masked too. The order is now: the wrapper's `secrets_dir` argument, then the wrapped source's directory, then model config. If you pass both `Settings(_secrets_dir=...)` and `NestedSecretsSettingsSource(..., secrets_dir=...)`, the wrapper's argument now wins. ##### Bug fixes **Env and dotenv sources** - Dictionary values typed as a union, such as `dict[str, list[str] | str]` or `dict[str, list[str] | None]`, now JSON-decode values set through `env_nested_delimiter` ([#&#8203;1089](https://github.com/pydantic/pydantic-settings/pull/1089), [#&#8203;1097](https://github.com/pydantic/pydantic-settings/pull/1097)). Only JSON arrays and objects are decoded, so plain values like `123`, `true` or `"quoted"` are kept as strings. Decoding follows `enable_decoding` and the `NoDecode`/`ForceDecode` of the field that holds the dict, and type aliases and `Annotated` value types are resolved. - Nested dictionary values such as `dict[str, list[dict[str, str]]]` are decoded at the right level again ([#&#8203;1109](https://github.com/pydantic/pydantic-settings/pull/1109)), so `APP_VALUES__X='[{"k":"v"}]'` no longer reaches validation as a string. **CLI** - `CliApp.run` now rebuilds `AliasPath` inputs for `BaseModel` and pydantic dataclass commands ([#&#8203;1096](https://github.com/pydantic/pydantic-settings/pull/1096)). A supplied path used to be reduced to the field name, which failed validation. `AliasChoices` priority is respected and unsupplied path defaults are left to the model. **Discriminated union defaults** - With `nested_model_default_partial_update=True`, inner discriminated unions written as `Annotated[..., Field(discriminator='...')]` are now detected ([#&#8203;1076](https://github.com/pydantic/pydantic-settings/pull/1076)). When the incoming tag selects another member, the default's fields are no longer merged into it. - A stdlib dataclass default on a discriminated union field no longer raises `NameError` when another field of the dataclass has a string annotation naming a local class ([#&#8203;1077](https://github.com/pydantic/pydantic-settings/pull/1077)). Only the discriminator's own annotation is resolved now. <details> <summary><b>All changes</b> (including dependency bumps and internal maintenance)</summary> #### What's Changed * build(deps): bump the python-packages group with 3 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/1056 * Detect nested Field discriminators in default partial updates by @&#8203;digit50 in https://github.com/pydantic/pydantic-settings/pull/1076 * Resolve only the discriminator annotation of stdlib dataclass defaults by @&#8203;digit50 in https://github.com/pydantic/pydantic-settings/pull/1077 * Decode nested dictionary values with complex union types by @&#8203;chering14 in https://github.com/pydantic/pydantic-settings/pull/1089 * Fix regressions from nested dict union value decoding (#&#8203;1089) by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/1097 * Fix explicit nested secrets directory precedence by @&#8203;DivyamTalwar in https://github.com/pydantic/pydantic-settings/pull/1093 * Fix CliApp reconstruction of AliasPath inputs by @&#8203;DivyamTalwar in https://github.com/pydantic/pydantic-settings/pull/1096 * Fix JSON decoding of nested dictionary environment values by @&#8203;Hugohong258 in https://github.com/pydantic/pydantic-settings/pull/1109 * Prepare release 2.16.2 by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/1111 #### New Contributors * @&#8203;digit50 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/1076 * @&#8203;chering14 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/1089 * @&#8203;DivyamTalwar made their first contribution in https://github.com/pydantic/pydantic-settings/pull/1093 * @&#8203;Hugohong258 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/1109 **Full Changelog**: <https://github.com/pydantic/pydantic-settings/compare/v2.16.1...v2.16.2> </details> ### [`v2.16.1`](https://github.com/pydantic/pydantic-settings/releases/tag/v2.16.1) [Compare Source](https://github.com/pydantic/pydantic-settings/compare/v2.16.0...v2.16.1) #### Highlights This patch release fixes two CLI regressions introduced in 2.16.0. ##### Bug fixes **CLI** - Fixed-length tuple positionals such as `CliPositionalArg[tuple[int, int]]` and `NamedTuple`s are single-valued again ([#&#8203;1069](https://github.com/pydantic/pydantic-settings/pull/1069)). Since 2.16.0 they were treated as variadic, so a CLI either refused to start with a `SettingsError` or put the wrong argument into the tuple. Variable-length tuples (`tuple[int, ...]` and bare `Tuple`) are still variadic. - A field typed as an alias of a list of dicts, e.g. `type ListOfDict = list[dict[str, int]]`, accepts a JSON list again ([#&#8203;1049](https://github.com/pydantic/pydantic-settings/pull/1049)). Since 2.16.0, `--xx '[{"a":1},{"b":2}]'` was merged into the single dict `{"a": 1, "b": 2}` and failed validation. <details> <summary><b>All changes</b> (including dependency bumps and internal maintenance)</summary> #### What's Changed * Harden CI by @&#8203;Viicos in https://github.com/pydantic/pydantic-settings/pull/1044 * Keep list of dicts CLI values as lists by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/1049 * Keep fixed-length tuple CLI positionals single-valued by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/1069 * Prepare release 2.16.1 by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/1087 * build(deps): bump the python-packages group with 3 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/1056 **Full Changelog**: <https://github.com/pydantic/pydantic-settings/compare/v2.16.0...v2.16.1> </details> ### [`v2.16.0`](https://github.com/pydantic/pydantic-settings/releases/tag/v2.16.0) [Compare Source](https://github.com/pydantic/pydantic-settings/compare/v2.15.0...v2.16.0) #### Highlights ##### Breaking changes and behavior changes - **Python 3.10 is no longer supported** ([#&#8203;1003](https://github.com/pydantic/pydantic-settings/pull/1003)). pydantic-settings now requires Python 3.11+, since 3.10 reaches end of life this month. The `tomli` fallback is gone in favor of stdlib `tomllib`; the `toml` extra is kept as an empty extra so `pip install pydantic-settings[toml]` keeps working. - **`python-dotenv>=1.2.2` is now required** ([#&#8203;971](https://github.com/pydantic/pydantic-settings/pull/971)) to pick up the fix for CVE-2026-28684. - **Aliases are ignored in every source when `validate_by_alias=False`** ([#&#8203;1033](https://github.com/pydantic/pydantic-settings/pull/1033)). Env vars, secrets, CLI flags and defaults now use only field names, matching pydantic. An env var named after the alias is now ignored instead of raising `extra_forbidden`, and the CLI exposes `--apple` rather than `--pomo`. - **`validation_alias` takes precedence over `alias`** ([#&#8203;1038](https://github.com/pydantic/pydantic-settings/pull/1038)). When the two differ, values from JSON/YAML/TOML files and the CLI were silently ignored; they now load. CLI help lists the `validation_alias` flag first, and `CliApp.serialize` emits it. - **CLI case-insensitivity only lowercases registered options** ([#&#8203;1036](https://github.com/pydantic/pydantic-settings/pull/1036)). With `case_sensitive=False`, args after `--` and those captured by `CliUnknownArgs` keep their case (`-Xmx4G` no longer becomes `-xmx4g`). Unrecognized options are now reported as typed (`--NOPE` instead of `--nope`). - **JSON and YAML config files are read as UTF-8 by default** ([#&#8203;955](https://github.com/pydantic/pydantic-settings/pull/955)) instead of the locale encoding, completing the secrets-file fix from 2.15.0. `json_file_encoding`/`yaml_file_encoding` still override it. - **Discriminated union defaults are partially updated again** ([#&#8203;997](https://github.com/pydantic/pydantic-settings/pull/997)). This reverts the 2.15.0 regression with `nested_model_default_partial_update=True`: the default is only dropped when the incoming value selects a *different* union member. ##### New features - **Python 3.15 and pydantic 2.14 support** ([#&#8203;1026](https://github.com/pydantic/pydantic-settings/pull/1026), [#&#8203;1029](https://github.com/pydantic/pydantic-settings/pull/1029), [#&#8203;1022](https://github.com/pydantic/pydantic-settings/pull/1022)). pydantic 2.14 broke `CliApp.run` and `validate_by_alias=False` handling; both are fixed. - **Cached settings instances** via `Settings.settings_cached()` and `Settings.settings_clear_cache()` ([#&#8203;952](https://github.com/pydantic/pydantic-settings/pull/952)). These give you a process-local singleton per settings class without hand-rolling `lru_cache` wrappers. Calling the class directly still builds a fresh instance. - **AWS Systems Manager Parameter Store source** — `AWSSystemsManagerSettingsSource` ([#&#8203;941](https://github.com/pydantic/pydantic-settings/pull/941)). It recursively reads every parameter under an `ssm_path`, with `/` mapping onto nested models. Install it with the new `aws-systems-manager` extra. - **`env_file_depth`** ([#&#8203;940](https://github.com/pydantic/pydantic-settings/pull/940)) lets a relative `env_file` be found in parent directories, mirroring `pyproject_toml_depth`. This is useful when scripts run from a subdirectory of a monorepo. It defaults to `0`, which keeps the current behavior. - **`CliVariadicArg` for named variadic options** ([#&#8203;949](https://github.com/pydantic/pydantic-settings/pull/949), [#&#8203;958](https://github.com/pydantic/pydantic-settings/pull/958)). It accepts `--param a b c` in addition to repeated `--param a --param b`. Required fields need at least one value. ##### Bug fixes **CLI** - `CliApp.serialize` output now round-trips through `CliApp.run` for enums, tuples, dates and `Decimal`s ([#&#8203;988](https://github.com/pydantic/pydantic-settings/pull/988)), explicit `None` values ([#&#8203;981](https://github.com/pydantic/pydantic-settings/pull/981)), empty containers ([#&#8203;1008](https://github.com/pydantic/pydantic-settings/pull/1008)), `CliVariadicArg` values ([#&#8203;976](https://github.com/pydantic/pydantic-settings/pull/976)) and populated `CliUnknownArgs` fields, which previously raised `IndexError` ([#&#8203;992](https://github.com/pydantic/pydantic-settings/pull/992)). - Empty JSON arrays (`--items []`) now give an empty list instead of `['']` ([#&#8203;994](https://github.com/pydantic/pydantic-settings/pull/994)). - Tuples, `frozenset`, `MutableSequence` and other collection subtypes are now treated as repeatable/variadic options ([#&#8203;972](https://github.com/pydantic/pydantic-settings/pull/972)), and so are named collection type aliases such as `TypeAliasType('Addrs', list[IPvAnyAddress])` ([#&#8203;1032](https://github.com/pydantic/pydantic-settings/pull/1032)). - `cli_exit_on_error=False` is now honored in `CliSubCommand` parsers, which raise `SettingsError` instead of exiting ([#&#8203;977](https://github.com/pydantic/pydantic-settings/pull/977)). - `CliSubCommand` aliases keep their case with `case_sensitive=False` ([#&#8203;989](https://github.com/pydantic/pydantic-settings/pull/989)). - Each `CliUnknownArgs` field now receives only its own subcommand's leftover args ([#&#8203;1004](https://github.com/pydantic/pydantic-settings/pull/1004)). - `CliApp.format_help` no longer crashes when `cli_prefix` is set in `model_config` ([#&#8203;945](https://github.com/pydantic/pydantic-settings/pull/945)). **Type aliases and parsing** - Named union type aliases (`TypeAliasType('V', list[int] | str)`) now decode like their inline equivalents in env and dotenv sources, including under `Optional`, `Annotated` and custom validation aliases ([#&#8203;1006](https://github.com/pydantic/pydantic-settings/pull/1006), [#&#8203;1030](https://github.com/pydantic/pydantic-settings/pull/1030), [#&#8203;1041](https://github.com/pydantic/pydantic-settings/pull/1041)). - Resolving a named `Annotated` type alias no longer mutates shared `FieldInfo` metadata, which made validators run twice on subclasses or after `model_rebuild()` ([#&#8203;979](https://github.com/pydantic/pydantic-settings/pull/979)). - A bare single-segment `AliasPath('SOME_KEY')` no longer tries to JSON-decode plain string values ([#&#8203;980](https://github.com/pydantic/pydantic-settings/pull/980)). - `collections.abc.Set`/`MutableSet`/`typing.AbstractSet` fields now JSON-decode env values ([#&#8203;973](https://github.com/pydantic/pydantic-settings/pull/973)). - A bare `typing.Dict` field with `env_nested_delimiter` no longer raises `IndexError`, which was a regression in 2.13.0 ([#&#8203;1009](https://github.com/pydantic/pydantic-settings/pull/1009)). - Case-insensitive matching now works for nested pydantic dataclasses ([#&#8203;1010](https://github.com/pydantic/pydantic-settings/pull/1010)). **Dotenv, secrets and config files** - With `extra='allow'`, a non-lowercase `env_prefix` is now stripped from dotenv extras ([#&#8203;959](https://github.com/pydantic/pydantic-settings/pull/959), [#&#8203;968](https://github.com/pydantic/pydantic-settings/pull/968)). - `secrets_case_sensitive=True` is now honored on Windows ([#&#8203;1001](https://github.com/pydantic/pydantic-settings/pull/1001)). - An empty JSON config file is treated as an empty mapping instead of crashing ([#&#8203;947](https://github.com/pydantic/pydantic-settings/pull/947)), matching YAML and TOML. - TOML table headers: `~` paths are now expanded when checking that the file exists ([#&#8203;1034](https://github.com/pydantic/pydantic-settings/pull/1034)), and an explicit `toml_table_header=()` now overrides the model config to read the file root ([#&#8203;1027](https://github.com/pydantic/pydantic-settings/pull/1027)). **Cloud sources** - Azure Key Vault and GCP Secret Manager now honor `env_parse_none_str` ([#&#8203;1019](https://github.com/pydantic/pydantic-settings/pull/1019), [#&#8203;1040](https://github.com/pydantic/pydantic-settings/pull/1040)). - Azure Key Vault: `dash_to_underscore=True` now works for nested model fields ([#&#8203;1025](https://github.com/pydantic/pydantic-settings/pull/1025)). - `NestedSecretsSettingsSource` now validates its specific constructor arguments ([#&#8203;975](https://github.com/pydantic/pydantic-settings/pull/975)). - `DotenvFiltering` is exported from `pydantic_settings.sources.types` ([#&#8203;944](https://github.com/pydantic/pydantic-settings/pull/944)). ##### Documentation - Document that runtime validation arguments (`strict`, `extra`, `context`) passed to `model_validate()` are not applied to `BaseSettings`, and give a workaround ([#&#8203;1017](https://github.com/pydantic/pydantic-settings/pull/1017)). - Explain why `extra='forbid'` doesn't reject misspelled top-level env vars ([#&#8203;986](https://github.com/pydantic/pydantic-settings/pull/986)). - Clarify alias plus nested model env lookup with `populate_by_name` ([#&#8203;933](https://github.com/pydantic/pydantic-settings/pull/933)), and add a nested model example for `env_prefix_target` ([#&#8203;953](https://github.com/pydantic/pydantic-settings/pull/953)). - Fix assorted typos ([#&#8203;942](https://github.com/pydantic/pydantic-settings/pull/942), [#&#8203;964](https://github.com/pydantic/pydantic-settings/pull/964)). <details> <summary><b>All changes</b> (including dependency bumps and internal maintenance)</summary> #### What's Changed * Bump boto3 from 1.43.60 to 1.43.66 in the python-packages group by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/936 * docs: clarify alias + nested model env lookup with populate_by_name by @&#8203;pranjalm37 in https://github.com/pydantic/pydantic-settings/pull/933 * lint: enable flake8-bugbear and fix the issues it found by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/931 * Bump the python-packages group with 6 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/943 * docs: improve ENV_FILE_SENTINEL comment phrasing in sources/types.py by @&#8203;aoright in https://github.com/pydantic/pydantic-settings/pull/942 * fix(types): include DotenvFiltering in __all__ in sources.types by @&#8203;aoright in https://github.com/pydantic/pydantic-settings/pull/944 * Add env_file_depth for parent directory env file lookup by @&#8203;dmi03 in https://github.com/pydantic/pydantic-settings/pull/940 * Add an AWS Systems Manager Parameter Store settings source by @&#8203;ChrisJr404 in https://github.com/pydantic/pydantic-settings/pull/941 * fix: use self.cli_prefix instead of cli_prefix in CliSettingsSource constructor by @&#8203;RomainL972 in https://github.com/pydantic/pydantic-settings/pull/945 * Bump the python-packages group with 6 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/948 * fix: treat empty JSON config file as empty mapping instead of crashing by @&#8203;sneha4175 in https://github.com/pydantic/pydantic-settings/pull/947 * Expand ruff rule selection by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/950 * Enable ruff's flake8-return (RET) rules by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/951 * docs: add nested model alias example for env_prefix_target by @&#8203;MohammedAlkindi in https://github.com/pydantic/pydantic-settings/pull/953 * Add cached settings instances by @&#8203;tiangolo in https://github.com/pydantic/pydantic-settings/pull/952 * Bump the github-actions group with 3 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/954 * Bump the python-packages group with 4 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/957 * Add CliVariadicArg for named variadic CLI options by @&#8203;gyanu2507 in https://github.com/pydantic/pydantic-settings/pull/949 * Fix CliVariadicArg empty-value handling for named options by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/958 * fix: read JSON and YAML config as UTF-8, not the locale encoding by @&#8203;MohammedAlkindi in https://github.com/pydantic/pydantic-settings/pull/955 * Reach 100% test coverage by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/963 * docs: fix three small wording/typo errors by @&#8203;simpleqt in https://github.com/pydantic/pydantic-settings/pull/964 * fix: strip a case-normalized env_prefix from dotenv extras by @&#8203;MohammedAlkindi in https://github.com/pydantic/pydantic-settings/pull/959 * fix: slice the case-normalized prefix in dotenv match_prefix by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/968 * Bump the python-packages group with 3 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/966 * fix: address CVE-2026-28684 in python-dotenv dependency by @&#8203;jmartens in https://github.com/pydantic/pydantic-settings/pull/971 * build(deps): bump the python-packages group with 3 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/978 * Verify `NestedSecretsSettingsSource` specific arguments by @&#8203;makukha in https://github.com/pydantic/pydantic-settings/pull/975 * Fix abstract Set annotations not being treated as complex by @&#8203;mmdverse in https://github.com/pydantic/pydantic-settings/pull/973 * Fix CLI append-action detection for collection subtypes by @&#8203;mmdverse in https://github.com/pydantic/pydantic-settings/pull/972 * Honor cli_exit_on_error=False in CliSubCommand parsers by @&#8203;glaziermag in https://github.com/pydantic/pydantic-settings/pull/977 * Preserve CliVariadicArg values in CliApp.serialize argparse/env styles by @&#8203;glaziermag in https://github.com/pydantic/pydantic-settings/pull/976 * Avoid mutating field metadata when resolving type aliases by @&#8203;jakezwang in https://github.com/pydantic/pydantic-settings/pull/979 * fix: bare AliasPath complexity keyed off name length, not path length by @&#8203;ishan-1010 in https://github.com/pydantic/pydantic-settings/pull/980 * docs: clarify extra validation for environment variables by @&#8203;hulkbig in https://github.com/pydantic/pydantic-settings/pull/986 * build(deps): bump the python-packages group with 2 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/990 * Preserve explicit None values in CLI serialization by @&#8203;mtcd001-tech in https://github.com/pydantic/pydantic-settings/pull/981 * Make `CliApp.serialize` output parseable for enum and non-JSON values by @&#8203;SulimanAbdulrazzaq in https://github.com/pydantic/pydantic-settings/pull/988 * Preserve CliSubCommand alias case with case_sensitive=False by @&#8203;glaziermag in https://github.com/pydantic/pydantic-settings/pull/989 * Fix Path.is_mount type-checking error on win32 platform by @&#8203;truecallerabreham in https://github.com/pydantic/pydantic-settings/pull/982 * build(deps): bump astral-sh/setup-uv from 10.0.1 to 10.2.0 in the github-actions group by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/998 * build(deps): bump the python-packages group with 3 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/999 * Fix `CliApp.serialize` for models with `CliUnknownArgs` fields by @&#8203;truecallerabreham in https://github.com/pydantic/pydantic-settings/pull/992 * Honor `secrets_case_sensitive` on Windows by overriding `_load_env_vars` by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/1001 * Fix empty JSON arrays in CLI list arguments by @&#8203;hansu650 in https://github.com/pydantic/pydantic-settings/pull/994 * Bump `samuelcolvin/check-python-version` action to v5.1 by @&#8203;Viicos in https://github.com/pydantic/pydantic-settings/pull/1014 * build(deps): bump the python-packages group with 7 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/1015 * Only skip partial updates for discriminated unions selecting another type by @&#8203;SammyTourani in https://github.com/pydantic/pydantic-settings/pull/997 * fix: handle bare typing.Dict in EnvSettingsSource.next_field (#&#8203;1007) by @&#8203;DawnofGenX in https://github.com/pydantic/pydantic-settings/pull/1009 * Apply case-insensitive field matching to nested pydantic dataclasses by @&#8203;sungbin1015 in https://github.com/pydantic/pydantic-settings/pull/1010 * Document that runtime validation arguments are not applied to BaseSettings by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/1017 * Fix named union alias parsing in environment sources by @&#8203;hulkbig in https://github.com/pydantic/pydantic-settings/pull/1006 * Drop support for Python 3.10 by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/1003 * Add support for Python 3.15 by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/1026 * Give each CliUnknownArgs field only its own parser leftovers by @&#8203;fhgffy in https://github.com/pydantic/pydantic-settings/pull/1004 * Preserve empty containers in CLI serialization by @&#8203;fallintoplace in https://github.com/pydantic/pydantic-settings/pull/1008 * Honor env_parse_none_str for Azure Key Vault secrets by @&#8203;fhgffy in https://github.com/pydantic/pydantic-settings/pull/1019 * Fix nested Azure Key Vault dash translation by @&#8203;goudan789 in https://github.com/pydantic/pydantic-settings/pull/1025 * Support pydantic 2.14 by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/1029 * Read field names when `validate_by_alias=False` on pydantic 2.14 by @&#8203;maharanay22 in https://github.com/pydantic/pydantic-settings/pull/1022 * Ignore aliases in every source when `validate_by_alias=False` by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/1033 * Honor explicit empty TOML table header overrides by @&#8203;xiehuanyi in https://github.com/pydantic/pydantic-settings/pull/1027 * Fix CLI parsing for named collection type aliases by @&#8203;JackyHsu-X in https://github.com/pydantic/pydantic-settings/pull/1032 * Fix JSON decoding for optional named union aliases by @&#8203;hulkbig in https://github.com/pydantic/pydantic-settings/pull/1030 * Decode optional Annotated named union aliases by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/1041 * Expand home paths when checking TOML table headers by @&#8203;JunaidAhamed-7777 in https://github.com/pydantic/pydantic-settings/pull/1034 * Fix config file and CLI values being ignored when alias differs from validation_alias by @&#8203;hzmsh in https://github.com/pydantic/pydantic-settings/pull/1038 * Honor env_parse_none_str for GCP Secret Manager by @&#8203;Ganesh1729-ui in https://github.com/pydantic/pydantic-settings/pull/1040 * Simplify alias resolution branch and test alias with AliasChoices/AliasPath by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/1042 * Keep case of non-option CLI args when case_sensitive=False by @&#8203;hzmsh in https://github.com/pydantic/pydantic-settings/pull/1036 * Prepare release 2.16.0 by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/1043 #### New Contributors * @&#8203;pranjalm37 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/933 * @&#8203;aoright made their first contribution in https://github.com/pydantic/pydantic-settings/pull/942 * @&#8203;dmi03 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/940 * @&#8203;ChrisJr404 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/941 * @&#8203;RomainL972 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/945 * @&#8203;sneha4175 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/947 * @&#8203;MohammedAlkindi made their first contribution in https://github.com/pydantic/pydantic-settings/pull/953 * @&#8203;tiangolo made their first contribution in https://github.com/pydantic/pydantic-settings/pull/952 * @&#8203;gyanu2507 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/949 * @&#8203;simpleqt made their first contribution in https://github.com/pydantic/pydantic-settings/pull/964 * @&#8203;jmartens made their first contribution in https://github.com/pydantic/pydantic-settings/pull/971 * @&#8203;mmdverse made their first contribution in https://github.com/pydantic/pydantic-settings/pull/973 * @&#8203;glaziermag made their first contribution in https://github.com/pydantic/pydantic-settings/pull/977 * @&#8203;jakezwang made their first contribution in https://github.com/pydantic/pydantic-settings/pull/979 * @&#8203;ishan-1010 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/980 * @&#8203;hulkbig made their first contribution in https://github.com/pydantic/pydantic-settings/pull/986 * @&#8203;mtcd001-tech made their first contribution in https://github.com/pydantic/pydantic-settings/pull/981 * @&#8203;SulimanAbdulrazzaq made their first contribution in https://github.com/pydantic/pydantic-settings/pull/988 * @&#8203;truecallerabreham made their first contribution in https://github.com/pydantic/pydantic-settings/pull/982 * @&#8203;hansu650 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/994 * @&#8203;SammyTourani made their first contribution in https://github.com/pydantic/pydantic-settings/pull/997 * @&#8203;DawnofGenX made their first contribution in https://github.com/pydantic/pydantic-settings/pull/1009 * @&#8203;sungbin1015 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/1010 * @&#8203;fhgffy made their first contribution in https://github.com/pydantic/pydantic-settings/pull/1004 * @&#8203;fallintoplace made their first contribution in https://github.com/pydantic/pydantic-settings/pull/1008 * @&#8203;goudan789 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/1025 * @&#8203;maharanay22 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/1022 * @&#8203;xiehuanyi made their first contribution in https://github.com/pydantic/pydantic-settings/pull/1027 * @&#8203;JackyHsu-X made their first contribution in https://github.com/pydantic/pydantic-settings/pull/1032 * @&#8203;JunaidAhamed-7777 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/1034 * @&#8203;hzmsh made their first contribution in https://github.com/pydantic/pydantic-settings/pull/1038 * @&#8203;Ganesh1729-ui made their first contribution in https://github.com/pydantic/pydantic-settings/pull/1040 **Full Changelog**: <https://github.com/pydantic/pydantic-settings/compare/v2.15.0...v2.16.0> </details> ### [`v2.15.0`](https://github.com/pydantic/pydantic-settings/releases/tag/v2.15.0) [Compare Source](https://github.com/pydantic/pydantic-settings/compare/v2.14.2...v2.15.0) #### Highlights ##### Behavior changes - **`case_sensitive` now applies to init kwargs and config-file sources** ([#&#8203;900](https://github.com/pydantic/pydantic-settings/pull/900)). `InitSettingsSource` and the JSON/TOML/YAML config sources previously ignored `case_sensitive`. Since it defaults to `False`, **case-insensitive matching is now the default** for these sources — e.g. `Settings(TeSt=...)` now populates a `test` field where it previously did not. Nested keys are still matched case-sensitively. - **Fields with unresolved forward references now emit a warning** ([#&#8203;901](https://github.com/pydantic/pydantic-settings/pull/901)). Settings sources can silently fail to resolve such fields; they now raise `IncompleteFieldDefinitionWarning` telling you to call `model_rebuild()`. If you have `filterwarnings = error` configured, this may surface as a new failure. - **Non-JSON env values for strict fields now raise `ValidationError`** ([#&#8203;926](https://github.com/pydantic/pydantic-settings/pull/926)) instead of a less specific error. ##### New features - **Show environment variable names in CLI help** via `cli_show_env_vars=True` ([#&#8203;860](https://github.com/pydantic/pydantic-settings/pull/860)), so generated `--help` output doubles as configuration documentation. - **`PYDANTIC_SETTINGS_DEBUG` for debugging settings resolution** ([#&#8203;906](https://github.com/pydantic/pydantic-settings/pull/906), [#&#8203;913](https://github.com/pydantic/pydantic-settings/pull/913)). Set it to a truthy value with `DEBUG` logging enabled to see each source's contribution in priority order, which source won for each value, and which `env_file`/secret files were probed, loaded, or skipped — the long-standing "why isn't my `.env` being picked up?" question. - **`toml_table_header` for regular TOML files** ([#&#8203;882](https://github.com/pydantic/pydantic-settings/pull/882), [#&#8203;886](https://github.com/pydantic/pydantic-settings/pull/886), [#&#8203;887](https://github.com/pydantic/pydantic-settings/pull/887)), letting you root settings at a nested table in any TOML file, not just `pyproject.toml`. - **`Traversable` support for JSON/TOML/YAML file sources** ([#&#8203;902](https://github.com/pydantic/pydantic-settings/pull/902)), so you can load config packaged inside a distribution — including files inside a zip or wheel — via `importlib.resources.files(...)` without casting to `Path`. - **GCP: `project_id` can come from an earlier settings source** ([#&#8203;878](https://github.com/pydantic/pydantic-settings/pull/878)), rather than only from the constructor or `GOOGLE_CLOUD_PROJECT`. ##### Bug fixes - Fix env vars not loading on Windows with `case_sensitive=True` ([#&#8203;894](https://github.com/pydantic/pydantic-settings/pull/894)). Windows upper-cases `os.environ` keys, so fields raised `Field required` instead of picking up their values. - Read secret files as UTF-8 instead of the platform locale encoding ([#&#8203;917](https://github.com/pydantic/pydantic-settings/pull/917)). On Windows code pages such as cp1252 this silently corrupted non-ASCII secrets. - Fix `AliasPath` on nested model fields not JSON-decoding env values ([#&#8203;898](https://github.com/pydantic/pydantic-settings/pull/898)). - Fix case-insensitive matching for **optional** nested models ([#&#8203;905](https://github.com/pydantic/pydantic-settings/pull/905)). - Fix dotenv extras being wrongly claimed by a complex field sharing a name prefix ([#&#8203;912](https://github.com/pydantic/pydantic-settings/pull/912)) — e.g. `dbx_token` being swallowed by a `db: dict` field. - Fix `nested_model_default_partial_update=True` corrupting discriminated unions ([#&#8203;876](https://github.com/pydantic/pydantic-settings/pull/876)). - Fix `Secret` subclasses crashing when loaded from the environment ([#&#8203;920](https://github.com/pydantic/pydantic-settings/pull/920)). - Fix enum names not parsing through nested annotations such as `Optional[Annotated[MyEnum, ...]]` with `env_parse_enums=True` ([#&#8203;910](https://github.com/pydantic/pydantic-settings/pull/910)). - An empty `yaml_config_section` now falls back to defaults instead of raising `AttributeError: 'NoneType' object has no attribute 'keys'` ([#&#8203;914](https://github.com/pydantic/pydantic-settings/pull/914)). - `NestedSecretsSettingsSource` no longer follows symlinks pointing outside `secrets_dir` ([#&#8203;889](https://github.com/pydantic/pydantic-settings/pull/889)). - GCP: skip the `list_secrets` call when `case_sensitive=True` ([#&#8203;862](https://github.com/pydantic/pydantic-settings/pull/862)), lowering the required IAM permissions to just `roles/secretmanager.secretAccessor`. - AWS: `types-boto3[secretsmanager]` is no longer required at runtime ([#&#8203;880](https://github.com/pydantic/pydantic-settings/pull/880)). ##### Documentation - Document JSON parsing of complex env values, plus a comma-separated-values recipe ([#&#8203;919](https://github.com/pydantic/pydantic-settings/pull/919)). - Recommend an async settings loading pattern ([#&#8203;908](https://github.com/pydantic/pydantic-settings/pull/908)). - Clarify behavior when an unprefixed value is present in a dotenv file ([#&#8203;895](https://github.com/pydantic/pydantic-settings/pull/895)). - Clarify environment variable helper descriptions ([#&#8203;867](https://github.com/pydantic/pydantic-settings/pull/867)) and fix assorted typos ([#&#8203;904](https://github.com/pydantic/pydantic-settings/pull/904)). <details> <summary><b>All changes</b> (including dependency bumps and internal maintenance)</summary> #### What's Changed * Update documentation link for Pydantic settings by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/863 * Bump the python-packages group with 4 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/865 * docs: clarify environment variable helper descriptions by @&#8203;vip892766gma in https://github.com/pydantic/pydantic-settings/pull/867 * Bump the python-packages group with 4 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/870 * Bump the python-packages group with 4 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/875 * Skip list_secrets call when case_sensitive=True by @&#8203;ecerulm in https://github.com/pydantic/pydantic-settings/pull/862 * GoogleSecretManagerSettingsSource: read project_id from previous sources by @&#8203;ecerulm in https://github.com/pydantic/pydantic-settings/pull/878 * Bump the python-packages group with 3 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/883 * fix: move SecretsManagerClient type import under TYPE_CHECKING by @&#8203;gavin913-lss in https://github.com/pydantic/pydantic-settings/pull/880 * Skip partial update merging for discriminated union fields by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/876 * Support using a table header as root when reading a TOML file by @&#8203;whyscream in https://github.com/pydantic/pydantic-settings/pull/882 * Bump the python-packages group with 4 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/885 * Don't complain about missing table headers in a TOML file that isn't there by @&#8203;whyscream in https://github.com/pydantic/pydantic-settings/pull/886 * Address issues in toml table header implementation by @&#8203;whyscream in https://github.com/pydantic/pydantic-settings/pull/887 * Bump the python-packages group with 2 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/888 * Prevent NestedSecretsSettingsSource from following symlinks outside secrets_dir by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/889 * Add 'Part of the Pydantic Stack' footer to README by @&#8203;strawgate in https://github.com/pydantic/pydantic-settings/pull/891 * Bump the python-packages group with 3 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/893 * Add support for showing environment variable names in CLI help text by @&#8203;brad-alexander in https://github.com/pydantic/pydantic-settings/pull/860 * Fix loading env vars on Windows with case_sensitive=True by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/894 * Bump the github-actions group with 3 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/896 * Bump the python-packages group with 3 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/897 * Add explicit callout for the case where the unprefixed value is in dotenv by @&#8203;martinky24 in https://github.com/pydantic/pydantic-settings/pull/895 * Fix AliasPath on nested model fields not decoding env values (#&#8203;670) by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/898 * Support case_sensitive in InitSettingsSource and config file sources by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/900 * Warn when using fields not fully resolved at instantiation by @&#8203;Viicos in https://github.com/pydantic/pydantic-settings/pull/901 * Support Traversable for json/toml/yaml config file sources (#&#8203;299) by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/902 * docs: fix typos in docs and source comments by @&#8203;maxtaran2010 in https://github.com/pydantic/pydantic-settings/pull/904 * Apply case-insensitive field matching to optional nested models (#&#8203;903) by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/905 * Bump boto3 from 1.43.36 to 1.43.40 in the python-packages group by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/907 * Add PYDANTIC_SETTINGS_DEBUG for debugging settings sources (#&#8203;538) by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/906 * docs: recommend async settings loading pattern by @&#8203;w3lld1 in https://github.com/pydantic/pydantic-settings/pull/908 * fix: parse enum names through nested annotations by @&#8203;Sanjays2402 in https://github.com/pydantic/pydantic-settings/pull/910 * Fix dotenv extras being claimed by complex fields sharing a name prefix by @&#8203;ritsth in https://github.com/pydantic/pydantic-settings/pull/912 * Add debug logging for env_file and secret file resolution by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/913 * docs: document JSON parsing of complex env values + comma-separated recipe by @&#8203;hrithvikakb in https://github.com/pydantic/pydantic-settings/pull/919 * fix: coerce empty yaml_config_section to an empty mapping instead of crashing by @&#8203;chuenchen309 in https://github.com/pydantic/pydantic-settings/pull/914 * Bump the python-packages group with 3 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/915 * fix: read secret files as UTF-8 instead of the locale encoding by @&#8203;dchaudhari7177 in https://github.com/pydantic/pydantic-settings/pull/917 * Bump the python-packages group with 4 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/921 * Bump the github-actions group with 4 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/925 * Bump the python-packages group with 4 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/924 * fix: treat Secret subclasses as non-complex fields (#&#8203;716) by @&#8203;Rony-ZenAlden in https://github.com/pydantic/pydantic-settings/pull/920 * fix: raise ValidationError for non-JSON env values on strict fields by @&#8203;shuvamk in https://github.com/pydantic/pydantic-settings/pull/926 * test: move function-local imports to the top of test modules by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/927 * Bump the python-packages group with 4 updates by @&#8203;dependabot[bot] in https://github.com/pydantic/pydantic-settings/pull/929 * Prepare release 2.15.0 by @&#8203;hramezani in https://github.com/pydantic/pydantic-settings/pull/930 #### New Contributors * @&#8203;vip892766gma made their first contribution in https://github.com/pydantic/pydantic-settings/pull/867 * @&#8203;ecerulm made their first contribution in https://github.com/pydantic/pydantic-settings/pull/862 * @&#8203;gavin913-lss made their first contribution in https://github.com/pydantic/pydantic-settings/pull/880 * @&#8203;whyscream made their first contribution in https://github.com/pydantic/pydantic-settings/pull/882 * @&#8203;strawgate made their first contribution in https://github.com/pydantic/pydantic-settings/pull/891 * @&#8203;brad-alexander made their first contribution in https://github.com/pydantic/pydantic-settings/pull/860 * @&#8203;martinky24 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/895 * @&#8203;maxtaran2010 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/904 * @&#8203;w3lld1 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/908 * @&#8203;Sanjays2402 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/910 * @&#8203;ritsth made their first contribution in https://github.com/pydantic/pydantic-settings/pull/912 * @&#8203;hrithvikakb made their first contribution in https://github.com/pydantic/pydantic-settings/pull/919 * @&#8203;chuenchen309 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/914 * @&#8203;dchaudhari7177 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/917 * @&#8203;Rony-ZenAlden made their first contribution in https://github.com/pydantic/pydantic-settings/pull/920 * @&#8203;shuvamk made their first contribution in https://github.com/pydantic/pydantic-settings/pull/926 **Full Changelog**: <https://github.com/pydantic/pydantic-settings/compare/v2.14.1...v2.15.0> </details> ### [`v2.14.2`](https://github.com/pydantic/pydantic-settings/releases/tag/v2.14.2) [Compare Source](https://github.com/pydantic/pydantic-settings/compare/v2.14.1...v2.14.2) #### What's Changed This is a security patch release. - Prevent `NestedSecretsSettingsSource` from following symlinks outside `secrets_dir` by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;889](https://github.com/pydantic/pydantic-settings/pull/889) - Prepare release 2.14.2 by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;890](https://github.com/pydantic/pydantic-settings/pull/890) ##### Security Fixes [GHSA-4xgf-cpjx-pc3j](https://github.com/pydantic/pydantic-settings/security/advisories/GHSA-4xgf-cpjx-pc3j): `NestedSecretsSettingsSource` with `secrets_nested_subdir=True` could follow a symbolic link inside `secrets_dir` pointing outside it, reading out-of-tree files into settings values and bypassing the `secrets_dir_max_size` cap. Affected versions: `>= 2.12.0, < 2.14.2`. **Full Changelog**: <https://github.com/pydantic/pydantic-settings/compare/v2.14.1...v2.14.2> ### [`v2.14.1`](https://github.com/pydantic/pydantic-settings/releases/tag/v2.14.1) [Compare Source](https://github.com/pydantic/pydantic-settings/compare/v2.14.0...v2.14.1) #### What's Changed - Bump the python-packages group with 4 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;850](https://github.com/pydantic/pydantic-settings/pull/850) - Bump the python-packages group with 5 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;854](https://github.com/pydantic/pydantic-settings/pull/854) - Bump the github-actions group with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;853](https://github.com/pydantic/pydantic-settings/pull/853) - Bump the python-packages group with 2 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;856](https://github.com/pydantic/pydantic-settings/pull/856) - Fix field named `cls` conflicting with classmethod parameter by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;858](https://github.com/pydantic/pydantic-settings/pull/858) - Prepare release 2.14.1 by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;859](https://github.com/pydantic/pydantic-settings/pull/859) **Full Changelog**: <https://github.com/pydantic/pydantic-settings/compare/v2.14.0...v2.14.1> ### [`v2.14.0`](https://github.com/pydantic/pydantic-settings/releases/tag/v2.14.0) [Compare Source](https://github.com/pydantic/pydantic-settings/compare/v2.13.1...v2.14.0) #### What's Changed - Fix parsing env vars into Optional Strict types by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;792](https://github.com/pydantic/pydantic-settings/pull/792) - Fix RecursionError with mutually recursive models in CLI by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;794](https://github.com/pydantic/pydantic-settings/pull/794) - Fix env_file from model_config ignored in CliApp.run() ([#&#8203;795](https://github.com/pydantic/pydantic-settings/issues/795)) by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;796](https://github.com/pydantic/pydantic-settings/pull/796) - Update dependencies by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;798](https://github.com/pydantic/pydantic-settings/pull/798) - Add Dependabot configuration by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;801](https://github.com/pydantic/pydantic-settings/pull/801) - Bump samuelcolvin/check-python-version from 4.1 to 5 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;802](https://github.com/pydantic/pydantic-settings/pull/802) - Bump actions/upload-artifact from 4 to 7 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;803](https://github.com/pydantic/pydantic-settings/pull/803) - Bump actions/checkout from 4 to 6 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;804](https://github.com/pydantic/pydantic-settings/pull/804) - Bump astral-sh/setup-uv from 5 to 7 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;805](https://github.com/pydantic/pydantic-settings/pull/805) - Bump actions/setup-python from 5 to 6 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;806](https://github.com/pydantic/pydantic-settings/pull/806) - Ignore chardet and group GitHub Actions in Dependabot by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;808](https://github.com/pydantic/pydantic-settings/pull/808) - Bump actions/download-artifact from 4 to 8 in the github-actions group by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;809](https://github.com/pydantic/pydantic-settings/pull/809) - Bump the python-packages group with 2 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;810](https://github.com/pydantic/pydantic-settings/pull/810) - Support reading .env files from FIFOs (e.g. 1Password Environments) by [@&#8203;JacobHayes](https://github.com/JacobHayes) in [#&#8203;776](https://github.com/pydantic/pydantic-settings/pull/776) - Fix AliasChoices ignored when changing provider priority by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;813](https://github.com/pydantic/pydantic-settings/pull/813) - fix: resolve KeyError in run_subcommand for underscore field names by [@&#8203;bradykieffer](https://github.com/bradykieffer) in [#&#8203;799](https://github.com/pydantic/pydantic-settings/pull/799) - Bump the python-packages group with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;814](https://github.com/pydantic/pydantic-settings/pull/814) - Fix `Literal[numeric Enum]` coercion for CLI and env vars by [@&#8203;m9810223](https://github.com/m9810223) in [#&#8203;811](https://github.com/pydantic/pydantic-settings/pull/811) - Fix nested discriminated unions not discovered by env/CLI providers by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;816](https://github.com/pydantic/pydantic-settings/pull/816) - Bump the python-packages group with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;820](https://github.com/pydantic/pydantic-settings/pull/820) - CLI ensure env nested max split internally. by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;821](https://github.com/pydantic/pydantic-settings/pull/821) - Bump the python-packages group with 4 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;824](https://github.com/pydantic/pydantic-settings/pull/824) - Migrate `boto3-stubs` to `types-boto3` by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;831](https://github.com/pydantic/pydantic-settings/pull/831) - Fix CLI not recognizing field name with validate_by_name and AliasChoices by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;826](https://github.com/pydantic/pydantic-settings/pull/826) - Allow customisation of the dotevn setting source to filter variables by [@&#8203;CaselIT](https://github.com/CaselIT) in [#&#8203;832](https://github.com/pydantic/pydantic-settings/pull/832) - Bump the python-packages group with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;833](https://github.com/pydantic/pydantic-settings/pull/833) - Introduce yamlfmt by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;836](https://github.com/pydantic/pydantic-settings/pull/836) - Bump boto3 from 1.42.82 to 1.42.83 in the python-packages group by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;837](https://github.com/pydantic/pydantic-settings/pull/837) - Introduce zizmor by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;838](https://github.com/pydantic/pydantic-settings/pull/838) - Fix CliPositionalArg\[list\[CustomType]] crash for custom types by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;839](https://github.com/pydantic/pydantic-settings/pull/839) - Add note about Mypy plugin for `BaseSettings.__init__()` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;842](https://github.com/pydantic/pydantic-settings/pull/842) - Fix `cli_ignore_unknown_args=True` not working on subcommands by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;844](https://github.com/pydantic/pydantic-settings/pull/844) - Bump the python-packages group with 4 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;847](https://github.com/pydantic/pydantic-settings/pull/847) - Fix CLI descriptions lost under `python -OO` by falling back to `json_schema_extra` by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;843](https://github.com/pydantic/pydantic-settings/pull/843) - Prepare release 2.14.0 by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;848](https://github.com/pydantic/pydantic-settings/pull/848) #### New Contributors - [@&#8203;dependabot](https://github.com/dependabot)\[bot] made their first contribution in [#&#8203;802](https://github.com/pydantic/pydantic-settings/pull/802) - [@&#8203;JacobHayes](https://github.com/JacobHayes) made their first contribution in [#&#8203;776](https://github.com/pydantic/pydantic-settings/pull/776) - [@&#8203;bradykieffer](https://github.com/bradykieffer) made their first contribution in [#&#8203;799](https://github.com/pydantic/pydantic-settings/pull/799) - [@&#8203;CaselIT](https://github.com/CaselIT) made their first contribution in [#&#8203;832](https://github.com/pydantic/pydantic-settings/pull/832) **Full Changelog**: <https://github.com/pydantic/pydantic-settings/compare/v2.13.1...v2.14.0> ### [`v2.13.1`](https://github.com/pydantic/pydantic-settings/releases/tag/v2.13.1) [Compare Source](https://github.com/pydantic/pydantic-settings/compare/v2.13.0...v2.13.1) #### What's Changed - Fix regression for bool fields since 2.13.0 by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;784](https://github.com/pydantic/pydantic-settings/pull/784) - Fix RecursionError with self-referential models in CliApp by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;783](https://github.com/pydantic/pydantic-settings/pull/783) - Fix CLI parsing error for set field types since 2.13.0 ([#&#8203;787](https://github.com/pydantic/pydantic-settings/issues/787)) by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;788](https://github.com/pydantic/pydantic-settings/pull/788) - Fix AttributeError with nested env vars for dict fields ([#&#8203;785](https://github.com/pydantic/pydantic-settings/issues/785)) by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;786](https://github.com/pydantic/pydantic-settings/pull/786) - Fix JSON decoding for parameterized PEP 695 type aliases by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;780](https://github.com/pydantic/pydantic-settings/pull/780) - v2.13.1 by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;790](https://github.com/pydantic/pydantic-settings/pull/790) **Full Changelog**: <https://github.com/pydantic/pydantic-settings/compare/v2.13.0...v2.13.1> ### [`v2.13.0`](https://github.com/pydantic/pydantic-settings/releases/tag/v2.13.0) [Compare Source](https://github.com/pydantic/pydantic-settings/compare/v2.12.0...v2.13.0) #### What's Changed - fix: Deterministic alias selection when using validate_by_name by [@&#8203;chbndrhnns](https://github.com/chbndrhnns) in [#&#8203;707](https://github.com/pydantic/pydantic-settings/pull/707) - add deep merge functionality to config file sources by [@&#8203;pmeier](https://github.com/pmeier) in [#&#8203;698](https://github.com/pydantic/pydantic-settings/pull/698) - Add support for AWS Secrets Manager VersionId parameter by [@&#8203;jcyamacho](https://github.com/jcyamacho) in [#&#8203;708](https://github.com/pydantic/pydantic-settings/pull/708) - bugfix: Return `None` for inaccessible GCP Secret Manager secrets by [@&#8203;zaphod72](https://github.com/zaphod72) in [#&#8203;712](https://github.com/pydantic/pydantic-settings/pull/712) - Bugfix for cli_kebab_case="all" and CliImplicitFlag\[bool] by [@&#8203;Digity101](https://github.com/Digity101) in [#&#8203;702](https://github.com/pydantic/pydantic-settings/pull/702) - Unpack type alisases when looking for `NoDecode` by [@&#8203;tselepakis](https://github.com/tselepakis) in [#&#8203;695](https://github.com/pydantic/pydantic-settings/pull/695) - CliToggleFlag and CliDualFlag by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;717](https://github.com/pydantic/pydantic-settings/pull/717) - Fix for CLI duplicate enum field values. by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;722](https://github.com/pydantic/pydantic-settings/pull/722) - fixed load nested config from env by [@&#8203;Sube-py](https://github.com/Sube-py) in [#&#8203;723](https://github.com/pydantic/pydantic-settings/pull/723) - Add non-Path files support (for example Traversable) and open files using Path.open method by [@&#8203;mahenzon](https://github.com/mahenzon) in [#&#8203;724](https://github.com/pydantic/pydantic-settings/pull/724) - add one more traversable test by [@&#8203;mahenzon](https://github.com/mahenzon) in [#&#8203;725](https://github.com/pydantic/pydantic-settings/pull/725) - CLI fix fox external list args. by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;727](https://github.com/pydantic/pydantic-settings/pull/727) - fix: handle case-insensitive retrieval in GoogleSecretManagerSettingsSource by [@&#8203;ezwiefel](https://github.com/ezwiefel) in [#&#8203;730](https://github.com/pydantic/pydantic-settings/pull/730) - CLI test fixes for help text formatting. by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;735](https://github.com/pydantic/pydantic-settings/pull/735) - Avoid conflicts with the `NAME` environment variable in WSL by [@&#8203;kzrnm](https://github.com/kzrnm) in [#&#8203;747](https://github.com/pydantic/pydantic-settings/pull/747) - fix: When restoring init kwargs, use deterministic order by [@&#8203;chbndrhnns](https://github.com/chbndrhnns) in [#&#8203;746](https://github.com/pydantic/pydantic-settings/pull/746) - Add env_prefix_target by [@&#8203;kzrnm](https://github.com/kzrnm) in [#&#8203;749](https://github.com/pydantic/pydantic-settings/pull/749) - Remove `(default: …)` in the help message for `CliToggleFlag` by [@&#8203;kzrnm](https://github.com/kzrnm) in [#&#8203;740](https://github.com/pydantic/pydantic-settings/pull/740) - Add support for CLI serialize styles. by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;755](https://github.com/pydantic/pydantic-settings/pull/755) - Add support for overriding default help on CLI internal parser. by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;758](https://github.com/pydantic/pydantic-settings/pull/758) - CLI format_help method support by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;759](https://github.com/pydantic/pydantic-settings/pull/759) - feat(gcp): support SecretVersion annotation for per-field secret versioning by [@&#8203;ezwiefel](https://github.com/ezwiefel) in [#&#8203;763](https://github.com/pydantic/pydantic-settings/pull/763) - Allow `snake_case_conversion` with `env_prefix` for Azure Key Vault source by [@&#8203;cstarkers](https://github.com/cstarkers) in [#&#8203;762](https://github.com/pydantic/pydantic-settings/pull/762) - fix: Only override preferred_key when no value was found by [@&#8203;chbndrhnns](https://github.com/chbndrhnns) in [#&#8203;767](https://github.com/pydantic/pydantic-settings/pull/767) - Update deps by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;768](https://github.com/pydantic/pydantic-settings/pull/768) - CLI coerce numeric types. by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;769](https://github.com/pydantic/pydantic-settings/pull/769) - CLI Union Discriminator Choices in Help by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;764](https://github.com/pydantic/pydantic-settings/pull/764) - Add nested path support for yaml_config_section (fixes [#&#8203;772](https://github.com/pydantic/pydantic-settings/issues/772)) by [@&#8203;hugo-romero-mm](https://github.com/hugo-romero-mm) in [#&#8203;773](https://github.com/pydantic/pydantic-settings/pull/773) - Prepare release 2.13.0 by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;777](https://github.com/pydantic/pydantic-settings/pull/777) #### New Contributors - [@&#8203;pmeier](https://github.com/pmeier) made their first contribution in [#&#8203;698](https://github.com/pydantic/pydantic-settings/pull/698) - [@&#8203;jcyamacho](https://github.com/jcyamacho) made their first contribution in [#&#8203;708](https://github.com/pydantic/pydantic-settings/pull/708) - [@&#8203;zaphod72](https://github.com/zaphod72) made their first contribution in [#&#8203;712](https://github.com/pydantic/pydantic-settings/pull/712) - [@&#8203;Digity101](https://github.com/Digity101) made their first contribution in [#&#8203;702](https://github.com/pydantic/pydantic-settings/pull/702) - [@&#8203;Sube-py](https://github.com/Sube-py) made their first contribution in [#&#8203;723](https://github.com/pydantic/pydantic-settings/pull/723) - [@&#8203;mahenzon](https://github.com/mahenzon) made their first contribution in [#&#8203;724](https://github.com/pydantic/pydantic-settings/pull/724) - [@&#8203;kzrnm](https://github.com/kzrnm) made their first contribution in [#&#8203;747](https://github.com/pydantic/pydantic-settings/pull/747) - [@&#8203;cstarkers](https://github.com/cstarkers) made their first contribution in [#&#8203;762](https://github.com/pydantic/pydantic-settings/pull/762) - [@&#8203;hugo-romero-mm](https://github.com/hugo-romero-mm) made their first contribution in [#&#8203;773](https://github.com/pydantic/pydantic-settings/pull/773) **Full Changelog**: <https://github.com/pydantic/pydantic-settings/compare/v2.12.0...v2.13.0> ### [`v2.12.0`](https://github.com/pydantic/pydantic-settings/releases/tag/v2.12.0) [Compare Source](https://github.com/pydantic/pydantic-settings/compare/v2.11.0...v2.12.0) #### What's Changed - Support for enum kebab case. by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;686](https://github.com/pydantic/pydantic-settings/pull/686) - Apply source order: init > env > dotenv > secrets > defaults and pres… by [@&#8203;chbndrhnns](https://github.com/chbndrhnns) in [#&#8203;688](https://github.com/pydantic/pydantic-settings/pull/688) - Add NestedSecretsSettings source by [@&#8203;makukha](https://github.com/makukha) in [#&#8203;690](https://github.com/pydantic/pydantic-settings/pull/690) - Strip non-explicit default values. by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;692](https://github.com/pydantic/pydantic-settings/pull/692) - Coerce env vars if strict is True. by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;693](https://github.com/pydantic/pydantic-settings/pull/693) - Restore init kwarg names before returning final state dictionary. by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;700](https://github.com/pydantic/pydantic-settings/pull/700) - Drop Python3.9 support by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;699](https://github.com/pydantic/pydantic-settings/pull/699) - Adapt test_protected_namespace_defaults for dev. Pydantic by [@&#8203;musicinmybrain](https://github.com/musicinmybrain) in [#&#8203;637](https://github.com/pydantic/pydantic-settings/pull/637) - Add Python 3.14 by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;704](https://github.com/pydantic/pydantic-settings/pull/704) - Prepare release 2.12 by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;705](https://github.com/pydantic/pydantic-settings/pull/705) #### New Contributors - [@&#8203;chbndrhnns](https://github.com/chbndrhnns) made their first contribution in [#&#8203;688](https://github.com/pydantic/pydantic-settings/pull/688) **Full Changelog**: <https://github.com/pydantic/pydantic-settings/compare/v2.11.0...v2.12.0> ### [`v2.11.0`](https://github.com/pydantic/pydantic-settings/releases/tag/v2.11.0) [Compare Source](https://github.com/pydantic/pydantic-settings/compare/2.10.1...v2.11.0) #### What's Changed - CLI Serialize Support by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;643](https://github.com/pydantic/pydantic-settings/pull/643) - Inspect type aliases to determine if an annotation is complex by [@&#8203;tselepakis](https://github.com/tselepakis) in [#&#8203;644](https://github.com/pydantic/pydantic-settings/pull/644) - Revert "fix: Respect 'cli_parse_args' from model_config with settings_customise_sources ([#&#8203;611](https://github.com/pydantic/pydantic-settings/issues/611))" by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;655](https://github.com/pydantic/pydantic-settings/pull/655) - Remove parsing of command line arguments from `CliSettingsSource.__init__`. by [@&#8203;trygve-baerland](https://github.com/trygve-baerland) in [#&#8203;656](https://github.com/pydantic/pydantic-settings/pull/656) - turn off allow_abbrev on subparsers by [@&#8203;mroch](https://github.com/mroch) in [#&#8203;658](https://github.com/pydantic/pydantic-settings/pull/658) - CLI Serialization Fixes by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;649](https://github.com/pydantic/pydantic-settings/pull/649) - Fix PydanticModel type checking. by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;659](https://github.com/pydantic/pydantic-settings/pull/659) - Avoid env_prefix falling back to env vars without prefix by [@&#8203;tselepakis](https://github.com/tselepakis) in [#&#8203;648](https://github.com/pydantic/pydantic-settings/pull/648) - Warn if model_config sets unused keys for missing settings sources by [@&#8203;HomerusJa](https://github.com/HomerusJa) in [#&#8203;663](https://github.com/pydantic/pydantic-settings/pull/663) - Included endpoint_url kwarg in AWSSecretsManagerSettingsSource class by [@&#8203;adrianohrl](https://github.com/adrianohrl) in [#&#8203;664](https://github.com/pydantic/pydantic-settings/pull/664) - Fix typo ("Accesing") in the "Adding sources" docs by [@&#8203;deepyaman](https://github.com/deepyaman) in [#&#8203;668](https://github.com/pydantic/pydantic-settings/pull/668) - CLI Windows Path Fix by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;669](https://github.com/pydantic/pydantic-settings/pull/669) - Cli root model support by [@&#8203;kschwab](https://github.com/kschwab) in [#&#8203;677](https://github.com/pydantic/pydantic-settings/pull/677) - Snake case conversion in Azure Key Vault by [@&#8203;AndreuCodina](https://github.com/AndreuCodina) in [#&#8203;680](https://github.com/pydantic/pydantic-settings/pull/680) - Make `InitSettingsSource` resolution deterministic by [@&#8203;enrico-stauss](https://github.com/enrico-stauss) in [#&#8203;681](https://github.com/pydantic/pydantic-settings/pull/681) - Update deps by [@&#8203;hramezani](https://github.com/hramezani) in [#&#8203;683](https://github.com/pydantic/pydantic-settings/pull/683) #### New Contributors - [@&#8203;tselepakis](https://github.com/tselepakis) made their first contribution in [#&#8203;644](https://github.com/pydantic/pydantic-settings/pull/644) - [@&#8203;trygve-baerland](https://github.com/trygve-baerland) made their first contribution in [#&#8203;656](https://github.com/pydantic/pydantic-settings/pull/656) - [@&#8203;mroch](https://github.com/mroch) made their first contribution in [#&#8203;658](https://github.com/pydantic/pydantic-settings/pull/658) - [@&#8203;HomerusJa](https://github.com/HomerusJa) made their first contribution in [#&#8203;663](https://github.com/pydantic/pydantic-settings/pull/663) - [@&#8203;adrianohrl](https://github.com/adrianohrl) made their first contribution in [#&#8203;664](https://github.com/pydantic/pydantic-settings/pull/664) - [@&#8203;deepyaman](https://github.com/deepyaman) made their first contribution in [#&#8203;668](https://github.com/pydantic/pydantic-settings/pull/668) - [@&#8203;enrico-stauss](https://github.com/enrico-stauss) made their first contribution in [#&#8203;681](https://github.com/pydantic/pydantic-settings/pull/681) **Full Changelog**: <https://github.com/pydantic/pydantic-settings/compare/2.10.1...v2.11.0> </details> <details> <summary>pymupdf/pymupdf (pymupdf)</summary> ### [`v1.28.2`](https://github.com/pymupdf/PyMuPDF/releases/tag/1.28.2): PyMuPDF-1.28.2 released [Compare Source](https://github.com/pymupdf/pymupdf/compare/1.28.0...1.28.2) Wheels for Windows, Linux and MacOS, and the sdist, are available on <https://pypi.org> and can be installed in the usual way, for example: ``` python -m pip install --upgrade pymupdf ``` **Changes in version 1.28.2** () Fixed issues: - **Fixed** [#&#8203;4670](https://github.com/pymupdf/pymupdf/issues/4670) - **Fixed** [#&#8203;4943](https://github.com/pymupdf/pymupdf/issues/4943) - **Fixed** [#&#8203;5030](https://github.com/pymupdf/pymupdf/issues/5030) - **Fixed** [#&#8203;5042](https://github.com/pymupdf/pymupdf/issues/5042) - **Fixed** [#&#8203;5044](https://github.com/pymupdf/pymupdf/issues/5044) - **Fixed** [#&#8203;5049](https://github.com/pymupdf/pymupdf/issues/5049) Other: - Use MuPDF-1.28.2. - Output warning when legacy `fitz` module is imported. - Cope better with markdown containing illegal utf8 sequences. - Fixed building with PYMUPDF_SETUP_MUPDF_VS_UPGRADE. - pymupdf.Page.find_tables(): - new args `use_layout: bool = True` `union: bool = False` `refine: bool = False`. - Improved speed. - Retrospectively added fix for [#&#8203;4936](https://github.com/pymupdf/pymupdf/issues/4936) in release 1.28.0 below. ### [`v1.28.0`](https://github.com/pymupdf/PyMuPDF/releases/tag/1.28.0): PyMuPDF-1.28.0 released. [Compare Source](https://github.com/pymupdf/pymupdf/compare/1.27.2.3...1.28.0) Wheels for Windows, Linux and MacOS, and the sdist, are available on <https://pypi.org> and can be installed in the usual way, for example: ``` python -m pip install --upgrade pymupdf ``` **Changes in version 1.28.0** Fixed issues: - **Fixed** [#&#8203;4114](https://github.com/pymupdf/pymupdf/issues/4114) - **Fixed** [#&#8203;4950](https://github.com/pymupdf/pymupdf/issues/4950) - **Fixed** [#&#8203;5001](https://github.com/pymupdf/pymupdf/issues/5001) - **Fixed** [#&#8203;5033](https://github.com/pymupdf/pymupdf/issues/5033) Other: - Use MuPDF-1.28.0. - pymupdf.Document.**init**(): new arg `archive` to support documents with archives. - pymupdf.Document.convert_to_pdf(): also generate links. - Fixed MacOS x64 platform tag - used to be macosx_10_9_x86_64, but we actually require MacOS 10.15, so platform tag is now macosx_10_15_x86_64. - Support Windows builds with free thread python. - pymupdf.Document.save() now saves non-PDF documents in PDF format. - New method pymupdf.Document.apply_css(). ### [`v1.27.2.3`](https://github.com/pymupdf/PyMuPDF/releases/tag/1.27.2.3): PyMuPDF-1.27.2.3 released [Compare Source](https://github.com/pymupdf/pymupdf/compare/1.27.2.2...1.27.2.3) Wheels for Windows, Linux and MacOS, and the sdist, are available on <https://pypi.org> and can be installed in the usual way, for example: ``` python -m pip install --upgrade pymupdf ``` **Changes in version 1.27.2.3** - Fixed issues: - **Fixed** [#&#8203;4928](https://github.com/pymupdf/pymupdf/issues/4928) - **Fixed** [#&#8203;4942](https://github.com/pymupdf/pymupdf/issues/4942) - **Fixed** [#&#8203;4954](https://github.com/pymupdf/pymupdf/issues/4954) - **Fixed** [#&#8203;4958](https://github.com/pymupdf/pymupdf/issues/4958) - Other: - Fixed incorrect generation of `lineJoin j` in PDF content, introduced in 1.27.2.2. - Allow build to (incorrectly) claim to be thread-safe, for [#&#8203;4760](https://github.com/pymupdf/pymupdf/issues/4760). See setup.py for details. - Use pypi.org's pipcl package instead of our own pipcl.py file. ### [`v1.27.2.2`](https://github.com/pymupdf/PyMuPDF/releases/tag/1.27.2.2): PyMuPDF-1.27.2.2 released [Compare Source](https://github.com/pymupdf/pymupdf/compare/1.27.2...1.27.2.2) Wheels for Windows, Linux and MacOS, and the sdist, are available on <https://pypi.org> and can be installed in the usual way, for example: ``` python -m pip install --upgrade pymupdf ``` **Changes in version 1.27.2.2** - Fixed issues: - **Fixed** [#&#8203;4902](https://github.com/pymupdf/pymupdf/issues/4902) - **Fixed** [#&#8203;4932](https://github.com/pymupdf/pymupdf/issues/4932) - Other: - Added `Annot.__bool__()`. ### [`v1.27.2`](https://github.com/pymupdf/PyMuPDF/releases/tag/1.27.2): PyMuPDF-1.27.2 released [Compare Source](https://github.com/pymupdf/pymupdf/compare/1.27.1...1.27.2) Wheels for Windows, Linux and MacOS, and the sdist, are available on <https://pypi.org> and can be installed in the usual way, for example: ``` python -m pip install --upgrade pymupdf ``` **Changes in version 1.27.2** - Use MuPDF-1.27.2. - Fixed issues: - **Fixed** [#&#8203;4903](https://github.com/pymupdf/pymupdf/issues/4903) - Other: - Retrospectively marked [#&#8203;4907](https://github.com/pymupdf/pymupdf/issues/4907) as fixed in pymupdf-1.27.1. - Improved get_textpage_ocr(). For partial OCR, **all** page areas outside legible text are now OCRed, not just those within images. This means that OCR will now also be performed for vector graphics, and for text containing illegible characters. ### [`v1.27.1`](https://github.com/pymupdf/PyMuPDF/releases/tag/1.27.1): PyMuPDF-1.27.1 released [Compare Source](https://github.com/pymupdf/pymupdf/compare/1.26.7...1.27.1) Wheels for Windows, Linux and MacOS, and the sdist, are available on <https://pypi.org> and can be installed in the usual way, for example: ``` python -m pip install --upgrade pymupdf ``` \[Linux-aarch64 wheels will be built and uploaded later.] **Changes in version 1.27.1** (2026-02-11) - Use MuPDF-1.27.1. - Fixed issues: - **Fixed** [#&#8203;4599](https://github.com/pymupdf/pymupdf/issues/4599) - **Fixed** [#&#8203;4751](https://github.com/pymupdf/pymupdf/issues/4751) - **Fixed** [#&#8203;4762](https://github.com/pymupdf/pymupdf/issues/4762) - **Fixed** [#&#8203;4790](https://github.com/pymupdf/pymupdf/issues/4790) - **Fixed** [#&#8203;4857](https://github.com/pymupdf/pymupdf/issues/4857) - **Fixed** [#&#8203;4886](https://github.com/pymupdf/pymupdf/issues/4886) - Other: - Added `pymupdf.TEXT_CLIP`. - Removed support for mupdf < 1.26. - New arg `raise_on_repair` in `Document.save()`. - New method `Document.repair()`. ### [`v1.26.7`](https://github.com/pymupdf/PyMuPDF/releases/tag/1.26.7): PyMuPDF-1.26.7 released [Compare Source](https://github.com/pymupdf/pymupdf/compare/1.26.6...1.26.7) Wheels for Windows, Linux and MacOS, and the sdist, are available on pypi.org and can be installed in the usual way, for example: ``` python -m pip install --upgrade pymupdf ``` \[Linux-aarch64 wheels will be built and uploaded later.] **Changes in version 1.26.7** - Use MuPDF-1.26.12. Other: - Retrospectively mark [#&#8203;4756](https://github.com/pymupdf/pymupdf/issues/4756) as fixed in 1.26.6. - Improved safety of `pymupdf embed-extract`. This now refuses to write to an existing file or outside current directory, unless `-output` or new flag `-unsafe` is specified. ### [`v1.26.6`](https://github.com/pymupdf/PyMuPDF/releases/tag/1.26.6): PyMuPDF-1.26.6 released [Compare Source](https://github.com/pymupdf/pymupdf/compare/1.26.5...1.26.6) Wheels for Windows, Linux and MacOS, and the sdist, are available on pypi.org and can be installed in the usual way, for example: ``` python -m pip install --upgrade pymupdf ``` \[Linux-aarch64 wheels will be built and uploaded later.] **Changes in version 1.26.6** - Use MuPDF-1.26.11. - Supported Python versions are now 3.10-3.14. - Fixed issues: - **Fixed** [#&#8203;4699](https://github.com/pymupdf/pymupdf/issues/4699) - **Fixed** [#&#8203;4712](https://github.com/pymupdf/pymupdf/issues/4712) - **Fixed** [#&#8203;4720](https://github.com/pymupdf/pymupdf/issues/4720) - **Fixed** [#&#8203;4742](https://github.com/pymupdf/pymupdf/issues/4742) - **Fixed** [#&#8203;4746](https://github.com/pymupdf/pymupdf/issues/4746) ### [`v1.26.5`](https://github.com/pymupdf/PyMuPDF/releases/tag/1.26.5): PyMuPDF-1.26.5 released [Compare Source](https://github.com/pymupdf/pymupdf/compare/1.26.4...1.26.5) Wheels for Windows, Linux and MacOS, and the sdist, are available on pypi.org and can be installed in the usual way, for example: ``` python -m pip install --upgrade pymupdf ``` \[Linux-aarch64 wheels will be built and uploaded later.] **Changes in version 1.26.5** - Use MuPDF-1.26.10. - Fixed issues: - **Fixed** [#&#8203;2883](https://github.com/pymupdf/pymupdf/issues/2883) - **Fixed** [#&#8203;4507](https://github.com/pymupdf/pymupdf/issues/4507) - **Fixed** [#&#8203;4613](https://github.com/pymupdf/pymupdf/issues/4613) - **Fixed** [#&#8203;4700](https://github.com/pymupdf/pymupdf/issues/4700) - **Fixed** [#&#8203;4716](https://github.com/pymupdf/pymupdf/issues/4716) - Other: - Supported Python versions are now 3.9-3.14. - We now define all class methods explicitly instead of with dynamic assignment; this improves type hints. - Removed `pymupdf.utils.Shape` class, was duplicate of `pymupdf.Shape`. - Allow use of cibuildwheel to build and test on Pyodide. - Fixed various Pyodide bugs. - In documentation, added section about Linux wheels and glibc compatibility. - Improved documentation of pymupdf.open()'s <filetype> arg. - Retrospectively mark `4544 <https://github.com/pymupdf/PyMuPDF/issues/4544>`\_ as fixed in 1.26.4. ### [`v1.26.4`](https://github.com/pymupdf/PyMuPDF/releases/tag/1.26.4): PyMuPDF-1.26.4 released [Compare Source](https://github.com/pymupdf/pymupdf/compare/1.26.3...1.26.4) Wheels for Windows, Linux and MacOS, and the sdist, are available on pypi.org and can be installed in the usual way, for example: ``` python -m pip install --upgrade pymupdf ``` \[Linux-aarch64 wheels will be built and uploaded later.] **Changes in version 1.26.4** - Use MuPDF-1.26.7. - Fixed issues: - **Fixed** [#&#8203;3806](https://github.com/pymupdf/pymupdf/issues/3806) - **Fixed** [#&#8203;4388](https://github.com/pymupdf/pymupdf/issues/4388) - **Fixed** [#&#8203;4457](https://github.com/pymupdf/pymupdf/issues/4457) - **Fixed** [#&#8203;4462](https://github.com/pymupdf/pymupdf/issues/4462) - **Fixed** [#&#8203;4533](https://github.com/pymupdf/pymupdf/issues/4533) - **Fixed** [#&#8203;4565](https://github.com/pymupdf/pymupdf/issues/4565) - **Fixed** [#&#8203;4571](https://github.com/pymupdf/pymupdf/issues/4571) - **Fixed** [#&#8203;4590](https://github.com/pymupdf/pymupdf/issues/4590) - **Fixed** [#&#8203;4614](https://github.com/pymupdf/pymupdf/issues/4614) - **Fixed** [#&#8203;4639](https://github.com/pymupdf/pymupdf/issues/4639) - Other: - Check that [#&#8203;4392](https://github.com/pymupdf/pymupdf/issues/4392) `Segfault when running with pytest and -Werror` is fixed if PyMuPDF is built with swig>=4.4. - Add `Page.clip_to_rect()`. - Improved search for Tesseract data. - Retrospectively mark [#&#8203;4496](https://github.com/pymupdf/pymupdf/issues/4496) as fixed in 1.26.1. - Retrospectively mark [#&#8203;4503](https://github.com/pymupdf/pymupdf/issues/4503) as fixed in 1.26.3. - Added experimental support for Graal. ### [`v1.26.3`](https://github.com/pymupdf/PyMuPDF/releases/tag/1.26.3): PyMuPDF-1.26.3 released [Compare Source](https://github.com/pymupdf/pymupdf/compare/1.26.1...1.26.3) PyMuPDF-1.26.3 has been released. Wheels for Windows, Linux and MacOS, and the sdist, are available on pypi.org and can be installed in the usual way, for example: ``` python -m pip install --upgrade pymupdf ``` \[Linux-aarch64 wheels will be built and uploaded later.] **Changes in version 1.26.3** - Use MuPDF-1.26.3. - Fixed issues: - **Fixed** [#&#8203;4462](https://github.com/pymupdf/pymupdf/issues/4462) - **Fixed** [#&#8203;4527](https://github.com/pymupdf/pymupdf/issues/4527) - **Fixed** [#&#8203;4564](https://github.com/pymupdf/pymupdf/issues/4564) - **Fixed** [#&#8203;4575](https://github.com/pymupdf/pymupdf/issues/4575) - Other: - Class Shape is now available as pymupdf.Shape. - Added table cell markdown support. ### [`v1.26.1`](https://github.com/pymupdf/PyMuPDF/releases/tag/1.26.1): PyMuPDF-1.26.1 released [Compare Source](https://github.com/pymupdf/pymupdf/compare/1.26.0...1.26.1) PyMuPDF-1.26.1 has been released. Wheels for Windows, Linux and MacOS, and the sdist, are available on pypi.org and can be installed in the usual way, for example: ``` python -m pip install --upgrade pymupdf ``` \[Linux-aarch64 wheels will be built and uploaded later.] **Changes in version 1.26.1** - Use MuPDF-1.26.2. - Fixed issues: - **Fixed** [#&#8203;4520](https://github.com/pymupdf/pymupdf/issues/4520) - **Fixed** [#&#8203;4524](https://github.com/pymupdf/pymupdf/issues/4524) - **Fixed** [#&#8203;4412](https://github.com/pymupdf/pymupdf/issues/4412) - Other: - Partial fix for [#&#8203;4503](https://github.com/pymupdf/pymupdf/issues/4503). - New method `Document.rewrite_images()`, useful for reducing file size, changing image formats, or converting color spaces. - `Page.get_text()`: restrict positional args to match docs. - Removed bogus definition of class `Shape`. - Removed release date from module, docs and changelog. - `pymupdf.pymupdf_date` and `pymupdf.VersionDate` are now both None. - They will be removed in a future release. ### [`v1.26.0`](https://github.com/pymupdf/PyMuPDF/releases/tag/1.26.0): PyMuPDF-1.26.0 released [Compare Source](https://github.com/pymupdf/pymupdf/compare/1.25.5...1.26.0) PyMuPDF-1.26.0 has been released. Wheels for Windows, Linux and MacOS, and the sdist, are available on pypi.org and can be installed in the usual way, for example: ``` python -m pip install --upgrade pymupdf ``` \[Linux-aarch64 wheels will be built and uploaded later.] **Changes in version 1.26.0 (2025-05-22)** - Use MuPDF-1.26.1. - Fixed issues: - **Fixed** [#&#8203;4324](https://github.com/pymupdf/pymupdf/issues/4324) - **Fixed** [#&#8203;4363](https://github.com/pymupdf/pymupdf/issues/4363) - **Fixed** [#&#8203;4404](https://github.com/pymupdf/pymupdf/issues/4404) - **Fixed** [#&#8203;4412](https://github.com/pymupdf/pymupdf/issues/4412) - **Fixed** [#&#8203;4423](https://github.com/pymupdf/pymupdf/issues/4423) - **Fixed** [#&#8203;4435](https://github.com/pymupdf/pymupdf/issues/4435) - **Fixed** [#&#8203;4439](https://github.com/pymupdf/pymupdf/issues/4439) - **Fixed** [#&#8203;4445](https://github.com/pymupdf/pymupdf/issues/4445) - **Fixed** [#&#8203;4447](https://github.com/pymupdf/pymupdf/issues/4447) - **Fixed** [#&#8203;4479](https://github.com/pymupdf/pymupdf/issues/4479) - **Fixed** [#&#8203;4505](https://github.com/pymupdf/pymupdf/issues/4505) - Other: - Partial fixed for [#&#8203;4457](https://github.com/pymupdf/pymupdf/issues/4457). - Support image stamp annotations. - Support recoloring pages. - Added example of using Django's file storage API to open files with pymupdf. - Clarified FreeText annotation color options. We now raise an exception if an attempt is made to set attributes that can not be supported. - Fixed potential segv in Pixmap.is_unicolor(). - Added runtime assert that that PyMuPDF and MuPDF were built with compatible NDEBUG settings (related to `4390 <https://github.com/pymupdf/PyMuPDF/issues/4390>`\_). - Simplified handling of filename/filetype when opening documents. </details> <details> <summary>pytest-dev/pytest (pytest)</summary> ### [`v9.2.0`](https://github.com/pytest-dev/pytest/releases/tag/9.2.0) [Compare Source](https://github.com/pytest-dev/pytest/compare/9.1.1...9.2.0) ### pytest 9.2.0 (2026-10-27) #### Removals and backward incompatible breaking changes - [#&#8203;14716](https://github.com/pytest-dev/pytest/issues/14716): `-c` now raises a usage error for a path that does not exist, is a directory, or is in a format pytest has no loader for. Such paths were previously either ignored or reported as an unhandled `FileNotFoundError`. - [#&#8203;8593](https://github.com/pytest-dev/pytest/issues/8593): The `indirect`, `ids` and `scope` arguments of `Metafunc.parametrize() <pytest.Metafunc.parametrize>` -- and therefore of `@pytest.mark.parametrize <pytest.mark.parametrize ref>` -- are now keyword-only. Passing them positionally was a common source of confusing errors, e.g. `parametrize("arg1", "arg2", [(1, 2)])` made the argvalues land in `indirect` and failed with `indirect fixture '(1, 2)' doesn't exist`; such mistakes now fail with an understandable `TypeError`. The type annotations have always declared these arguments as keyword-only. - [#&#8203;993](https://github.com/pytest-dev/pytest/issues/993): Plugin import failures at startup are now reported and classified instead of escaping as a raw traceback with the accidental exit code `1`: - a plugin that cannot be found -- via `-p`, `pytest_plugins` or `PYTEST_PLUGINS` -- exits with `pytest.ExitCode` `USAGE_ERROR` (`4`), like a `conftest.py` that fails to import; - a plugin that is found but raises while importing -- including a broken `pytest11` entry point or a missing plugin dependency -- exits with `pytest.ExitCode` `INTERNAL_ERROR` (`3`), with the traceback preserved. `pytest.main` now returns these codes instead of raising `ImportError`. Also fixed an `IndexError` from pytest's own internals when the plugin raised an exception with no arguments. #### Deprecations (removal in next major release) - [#&#8203;14742](https://github.com/pytest-dev/pytest/issues/14742): The private `_pytest.python.CallSpec2` name has been renamed to `CallSpec`. The old `CallSpec2` alias remains available for now and will be removed in pytest 10 or 11. - [#&#8203;14755](https://github.com/pytest-dev/pytest/issues/14755): Schedule *yield_fixture* decorator for removal in pytest 10 or 11. - [#&#8203;14774](https://github.com/pytest-dev/pytest/issues/14774): Similarly to the deprecation of class-scoped fixtures defined as instance methods in pytest 9.1, *all* higher-scoped fixtures (`module`, `package`, and `session`) defined as instance methods are now deprecated. They suffer from the same issue the original deprecation only fixed for class-scoped fixtures, see `10819` and `14011`. - [#&#8203;14808](https://github.com/pytest-dev/pytest/issues/14808): Passing a non-string value to a `string`-typed ini option now emits a `pytest.PytestRemovedIn10Warning`. This affects `[tool.pytest.ini_options]` in `pyproject.toml`. In pytest 10 this will raise a `TypeError`, matching the behavior of the corresponding TOML config path. - [#&#8203;7323](https://github.com/pytest-dev/pytest/issues/7323): Passing `bytes` to `TerminalReporter.write_line()` is now deprecated, pass a `str` instead. #### New features - [#&#8203;14743](https://github.com/pytest-dev/pytest/issues/14743): <span class="title-ref">Full diff:</span> now contains a legend explaining the <span class="title-ref">+</span> & <span class="title-ref">-</span> symbols in diff output. - [#&#8203;2781](https://github.com/pytest-dev/pytest/issues/2781): When `strict_markers` is enabled, marker names used in `-m` expressions are now validated against registered markers. - [#&#8203;6881](https://github.com/pytest-dev/pytest/issues/6881): Added the `parametrize_long_str_id_strategy` configuration option to control how long `str`/`bytes` parameter values are handled in auto-generated test IDs. Explicit IDs set via `ids=[...]` or `pytest.param(..., id=...)` are not affected. Available strategies: `short` (default, values over 100 chars fall back to `argname+index`), `sha256` (SHA-256 hex digest), `legacy` (keep full value), and `disallow` (error requesting explicit IDs). #### Improvements in existing functionality - [#&#8203;10745](https://github.com/pytest-dev/pytest/issues/10745): A `RecursionError` whose recursion origin cannot be located now shows only the first and last 10 stack frames, matching what pytest already did when locating the origin failed outright. Previously the full traceback -- often around a thousand near-identical frames -- was rendered, which was both slow and unreadable. Pass `--full-trace` to see every frame. - [#&#8203;10745](https://github.com/pytest-dev/pytest/issues/10745): The line numbers of a module's statements are now computed once per traceback instead of once per traceback entry, which noticeably speeds up rendering failures raised from large test modules. - [#&#8203;11418](https://github.com/pytest-dev/pytest/issues/11418): The cached rewritten modules in `__pycache__` are now invalidated by a hash of the source instead of its modification time, using the checked-hash pyc format from `552`. Timestamps make the cache useless wherever source files get fresh modification times, most notably in CI: a checkout gives every file a new mtime, so a restored cache is discarded in full and every test module is rewritten again. Hashing the source costs roughly 15 microseconds per file and makes the cache survive that. Existing timestamp based caches are ignored and rewritten once. - [#&#8203;12624](https://github.com/pytest-dev/pytest/issues/12624): The `pytest_plugins` variable and the `PYTEST_PLUGINS` environment variable now also accept entry point names of installed plugins (e.g. `xdist`), in addition to importable module names, matching the behavior of the `-p` command-line option. As part of this change, plugins specified by entry point name through these mechanisms are now also listed in the `plugins:` line of the terminal header (`12615`). Based on the original implementation by Marcel Telka in `12616`. - [#&#8203;12697](https://github.com/pytest-dev/pytest/issues/12697): Warnings emitted while importing plugins through `-p`, `PYTEST_PLUGINS`, or entry point autoloading are now captured, filtered, and reported like other warnings. - [#&#8203;12860](https://github.com/pytest-dev/pytest/issues/12860): Assertion diffs for `dict.items()` and `dict.keys()` comparisons (`>=`, `<=`, `>`, `<`, `==`) now show which items are missing, the same way set comparisons do. - [#&#8203;13354](https://github.com/pytest-dev/pytest/issues/13354): `Node.get_closest_marker <_pytest.nodes.Node.get_closest_marker>` now also accepts a `~pytest.MarkDecorator` as its `default`, for example `item.get_closest_marker("foo", pytest.mark.foo(1))`, and returns the wrapped `~pytest.Mark`. Previously the only way to build a `default` was to instantiate `~pytest.Mark` directly, which is private and warns. - [#&#8203;13369](https://github.com/pytest-dev/pytest/issues/13369): Improved the error from `pytest.RunResult.assert_outcomes` when a plugin changes or removes pytest's standard terminal summary, and documented how to isolate output-changing plugins. - [#&#8203;13431](https://github.com/pytest-dev/pytest/issues/13431): Exposed `pytest.ParameterSet` as the type of the return value of `pytest.param()`. This can be used in type annotations and `isinstance` checks. - [#&#8203;13564](https://github.com/pytest-dev/pytest/issues/13564): Issue a warning when fixtures are wrapped with a decorator that prevents correct discovery, including `@classmethod` above `@pytest.fixture` and `@staticmethod` above `@pytest.fixture`. Put `@pytest.fixture` above those decorators on test classes. - [#&#8203;14164](https://github.com/pytest-dev/pytest/issues/14164): Exposed `pytest.Approx` as the type of the return value of `pytest.approx()`. This can be used in type annotations and `isinstance` checks. - [#&#8203;14463](https://github.com/pytest-dev/pytest/issues/14463): Assertion diffs for mappings now match up keys the way the compared mappings match them themselves. Key comparison goes through the mappings' key views instead of plain sets of their keys, so a mapping with its own notion of key equivalence, such as case-insensitive header mappings, no longer reports its common keys as missing on either side. - [#&#8203;14523](https://github.com/pytest-dev/pytest/issues/14523): Large assertion comparison diffs are now built lazily and capped to the truncation budget, so a huge diff is no longer formatted in full just to be truncated. As a consequence, the truncation footer no longer reports the exact number of hidden lines. - [#&#8203;14687](https://github.com/pytest-dev/pytest/issues/14687): The default fd-level output capturing (`--capture=fd`) now skips reading the capture buffer for tests which produce no output, reducing per-test overhead in large test suites. - [#&#8203;14724](https://github.com/pytest-dev/pytest/issues/14724): `--no-summary` now only applies directly to pytest's own summary. The flag no longer skips the `pytest_terminal_summary` hook, so third-party plugins (for example coverage) can still write their terminal summaries. - [#&#8203;14751](https://github.com/pytest-dev/pytest/issues/14751): `parser.addini <pytest.Parser.addini>` now also accepts type expressions for its `type` argument, in addition to the existing string tags: the plain Python types `str`, `bool`, `int`, `float`, a `Literal` of strings, and unions of these (for example `int | str` or `int | Literal["auto"]`). - [#&#8203;14754](https://github.com/pytest-dev/pytest/issues/14754): `pytest.approx()` now rejects infinite relative tolerances for `datetime.timedelta` values with a clear `ValueError` instead of raising `OverflowError`. - [#&#8203;14791](https://github.com/pytest-dev/pytest/issues/14791): The `junit_family`, `junit_logging`, `junit_duration_report`, `console_output_style`, `empty_parameter_set_mark`, `assertion_text_diff_style` and `tmp_path_retention_policy` configuration options are now registered with the set of values they accept: an invalid value now fails with a clean usage error instead of being silently ignored or crashing later, and `pytest --help` lists the accepted values. `config.getini <pytest.Config.getini>` now raises `pytest.UsageError` instead of `TypeError` or `ValueError` when the value read from the configuration file does not match the registered type, so a bad value is always reported as a short usage error message instead of an internal error traceback. Asking for an option name that was never registered still raises `ValueError`. - [#&#8203;15006](https://github.com/pytest-dev/pytest/issues/15006): `pytest.approx` now emits `pytest.PytestApproxDecimalToleranceWarning` when a `rel` or `abs` tolerance is given as a `float` that cannot be represented exactly for a `~decimal.Decimal` comparison, since such a tolerance is widened to the float's exact binary value. - [#&#8203;14675](https://github.com/pytest-dev/pytest/issues/14675), [#&#8203;14953](https://github.com/pytest-dev/pytest/issues/14953), [#&#8203;15153](https://github.com/pytest-dev/pytest/issues/15153), [#&#8203;15132](https://github.com/pytest-dev/pytest/issues/15132): The `truncation_limit_lines`, `truncation_limit_chars`, `max_warnings`, `verbosity_assertions`, `verbosity_test_cases`, `verbosity_subtests`, `tmp_path_retention_count`, `log_level`, `log_cli_level`, `log_file_level`,`log_auto_indent` and `faulthandler_timeout` configuration options now accept native integer (and, for `log_auto_indent`, boolean) values in TOML configuration files, while still accepting strings for backward compatibility. `log_file_mode` now reports invalid values as a usage error. - [#&#8203;15254](https://github.com/pytest-dev/pytest/issues/15254): `tmp_path` and `TempPathFactory.mktemp <pytest.TempPathFactory.mktemp>` no longer list the whole base temporary directory on every call, which made sessions with many temporary directories quadratically slow. Numbers are now handed out from a per-prefix counter, skipping names that already exist. - [#&#8203;4569](https://github.com/pytest-dev/pytest/issues/4569): `Node.add_marker <_pytest.nodes.Node.add_marker>` now stores a `~pytest.Mark` in `node.keywords`, matching what marks applied during collection store. Previously it stored a `~pytest.MarkDecorator`. - [#&#8203;9436](https://github.com/pytest-dev/pytest/issues/9436): Avoided formatting tracebacks for tests marked with `xfail(run=False)`. #### Bug fixes - [#&#8203;10128](https://github.com/pytest-dev/pytest/issues/10128): Configured warning filters now apply to warnings emitted by `pytest_configure` hooks. - [#&#8203;10210](https://github.com/pytest-dev/pytest/issues/10210): `pytest.approx` now raises a `TypeError` for any nested container, not only for one of the same type as its parent. Previously `approx([{"k": 1}])` and `approx({"k": [1]})` were accepted and then compared unequal to every value, silently ignoring the tolerance, while `approx([[1]])` correctly reported that nesting is unsupported. - [#&#8203;10644](https://github.com/pytest-dev/pytest/issues/10644): `monkeypatch.setattr()` no longer leaves a new entry in the instance `__dict__` when it patches an attribute that the instance inherits from its class. Previously `undo()` assigned the inherited value onto the instance, which shadowed the class attribute -- permanently freezing the result for descriptors that resolve dynamically. - [#&#8203;1139](https://github.com/pytest-dev/pytest/issues/1139): Fixed tracebacks showing `???` instead of source lines for code compiled with a filename relative to a directory other than the current working directory -- e.g. compiled Cython modules, when running pytest from a subdirectory of the project root. The source lookup now falls back to searching `sys.path` for such filenames, as the standard `traceback` module does. - [#&#8203;11502](https://github.com/pytest-dev/pytest/issues/11502): The `rootdir` is no longer derived from a configuration file that is not a regular file, such as `--config-file=/dev/null`. - [#&#8203;11783](https://github.com/pytest-dev/pytest/issues/11783): Plugins installed in editable mode (`660`) are marked for assertion rewriting again. Such installs do not record the package's Python files in the distribution metadata, so pytest found nothing to rewrite and assertions inside the plugin lost their introspection. The plugin's entry point is now used to locate the package in that case. - [#&#8203;11933](https://github.com/pytest-dev/pytest/issues/11933): `pytest.warns` no longer re-emits unmatched warnings with `module="warnings"`, which caused `module`-based warning filters to be applied to the wrong warnings. Since `warnings.WarningMessage` does not record the module a warning was emitted with, re-emitted warnings now use the standard `warnings.warn_explicit` default of deriving the module from the warning's filename. - [#&#8203;12175](https://github.com/pytest-dev/pytest/issues/12175): `ExceptionInfo.exconly(tryshort=True) <pytest.ExceptionInfo.exconly>` now strips the `AssertionError:` prefix of failed `assert` statements for `~pytest.ExceptionInfo` objects created by `pytest.raises`, and failures inside `unittest.TestCase.subTest` report the same short crash line as regular tests. - [#&#8203;12223](https://github.com/pytest-dev/pytest/issues/12223): The `message` attribute of `<failure>` and `<error>` elements in `--junitxml` reports is now shortened to whole lines within 500 characters. When something is dropped, it ends with a note pointing to the element text, which still holds the full report. Previously, very verbose assertion output (e.g. with `-vv`) produced attributes tens of thousands of characters long, which some XML parsers fail on. - [#&#8203;12307](https://github.com/pytest-dev/pytest/issues/12307): Fixed truncation of long collections (lists, dicts, sets, etc.) in the "message" part of failed assertions (as in `assert condition, msg`) when using `-vv`: the message now uses the same unlimited repr as the rest of the assertion output, instead of eliding collection elements with `...`. - [#&#8203;12824](https://github.com/pytest-dev/pytest/issues/12824): Custom command-line options now fail with a clear error when their implicit destination conflicts with an existing option, avoiding silent overrides of built-in options such as `-k`. - [#&#8203;13292](https://github.com/pytest-dev/pytest/issues/13292): Fixed a stale rewritten module being used when a test file is modified twice within the same second without changing its size -- the pyc header could only record whole-second timestamps. The cache is now keyed on a hash of the source. - [#&#8203;14036](https://github.com/pytest-dev/pytest/issues/14036): `__tracebackhide__` is now respected in `ExceptionGroup` tracebacks, both for the group itself and for its sub-exceptions. - [#&#8203;14189](https://github.com/pytest-dev/pytest/issues/14189): Nested usage of `caplog.filtering <pytest.LogCaptureFixture.filtering>` no longer removes filters early if they were already present. - [#&#8203;14412](https://github.com/pytest-dev/pytest/issues/14412): Fixed incorrect timing information for subtests and parent tests when `console_output_style = "times"`. - [#&#8203;14445](https://github.com/pytest-dev/pytest/issues/14445): Assertion rewriting no longer evaluates walrus operator (`:=`) expressions more than once, which reported results the test never computed when the expression had side effects. An operand evaluated before a later walrus is now reported with the value it actually saw, so `assert value != identity(value := value.lower())` keeps Python's left-to-right order. - [#&#8203;14552](https://github.com/pytest-dev/pytest/issues/14552): Fixed stale `co_filename` values after a test module or directory is moved. Assertion-rewrite caches are reused when the source hash still matches, and in-memory code objects are pointed at the current path. - [#&#8203;14586](https://github.com/pytest-dev/pytest/issues/14586): Negative values passed to `log_auto_indent` now correctly fall back to no indentation, matching the documented behavior. - [#&#8203;14619](https://github.com/pytest-dev/pytest/issues/14619): Fixed a crash in `pytest.mark.parametrize` when a non-sequence value is passed for a parameter set. It now provides a clear error message during collection. - [#&#8203;14635](https://github.com/pytest-dev/pytest/issues/14635): Fixed fixture resolution failures when specifying multiple test paths on the command line that share common parent directories. Parametrized fixtures defined in a `conftest.py` could be silently dropped depending on the order of the specified paths. - [#&#8203;14637](https://github.com/pytest-dev/pytest/issues/14637): Pytest now correctly skips identical trailing characters in assertion text diffs even when the compared strings differ at the beginning. - [#&#8203;14638](https://github.com/pytest-dev/pytest/issues/14638): Top-level options in `pytest.toml` and `.pytest.toml` files now raise an error instead of being silently ignored when no `[pytest]` table is present. - [#&#8203;14683](https://github.com/pytest-dev/pytest/issues/14683): Fixed a regression in pytest 9.1 where a conftest.py located in the rootdir was no longer visible to tests and doctests collected from *outside* the rootdir (for example when passing a parent directory of the rootdir as a collection argument, or setting `--rootdir` to a subdirectory). As a result, fixtures defined in such a conftest -- including `doctest_namespace` injections -- were not available, causing errors such as `NameError` in doctests. - [#&#8203;14700](https://github.com/pytest-dev/pytest/issues/14700): Fixed an internal error on Python 3.12 when a doctest on a fixture-decorated function was skipped. - [#&#8203;14705](https://github.com/pytest-dev/pytest/issues/14705): TOML configuration files passed via `-c` now also read their configuration from the `[pytest]` table, the one pytest's own configuration files use. The `[tool.pytest]` and `[tool.pytest.ini_options]` tables such files were previously restricted to keep working; using both styles in one file is an error. - [#&#8203;14828](https://github.com/pytest-dev/pytest/issues/14828): Exception groups raised from another exception now print their cause chain only once in the traceback output. - [#&#8203;14864](https://github.com/pytest-dev/pytest/issues/14864): Fixed collection on Windows collecting the whole suite instead of the given path, on file systems which do not support file IDs (`st_ino` is `0` for every file, as seen for example on `sshfs-win`/WinFsp mounts). - [#&#8203;14884](https://github.com/pytest-dev/pytest/issues/14884): `Cache.get()`, `Cache.set()` and `Cache.mkdir()` now reject keys that resolve outside the cache directory, and `--cache-show` ignores glob matches outside it. - [#&#8203;14909](https://github.com/pytest-dev/pytest/issues/14909): Fixed `MonkeyPatch.delattr <pytest.MonkeyPatch.delattr>`, `MonkeyPatch.setitem <pytest.MonkeyPatch.setitem>` and `MonkeyPatch.delitem <pytest.MonkeyPatch.delitem>` recording a stale undo entry when the underlying mutation failed, which could cause spurious errors during teardown. The undo entry is now recorded only after the mutation succeeds, matching the behavior of `MonkeyPatch.setattr <pytest.MonkeyPatch.setattr>`. - [#&#8203;14912](https://github.com/pytest-dev/pytest/issues/14912): `~pytest.PytestWarning` instances defined in `_pytest.deprecated` are no longer reused across `warnings.warn` calls, so warnings raised as errors (e.g. with `-W error`) no longer accumulate stale traceback frames from previous raises. - [#&#8203;14942](https://github.com/pytest-dev/pytest/issues/14942): Fixed a regression in 9.1.0 that made collection very slow (quadratic) when many fixtures are defined with the same name. This can happen particularly when many tests are defined in separate classes which inherit from a base class which defines fixtures (the fixtures are repeated per class). - [#&#8203;15005](https://github.com/pytest-dev/pytest/issues/15005): `pytest.approx` no longer treats finite `~decimal.Decimal` values outside the `float` range (such as `Decimal("1e400")`) as infinite, which made in-tolerance comparisons fail. - [#&#8203;15006](https://github.com/pytest-dev/pytest/issues/15006): Restored the tolerance shown by `pytest.approx` for `~decimal.Decimal` values, which since 9.0 displayed `???` for the default tolerance and reported the raw `rel` ratio instead of the absolute tolerance actually compared against. - [#&#8203;15006](https://github.com/pytest-dev/pytest/issues/15006): The failure message for `pytest.approx` comparisons of `~decimal.Decimal` collections no longer reports `Max absolute difference: -inf`, or crashes for mappings, when the `decimal.FloatOperation` trap is set. - [#&#8203;15006](https://github.com/pytest-dev/pytest/issues/15006): `pytest.approx` no longer raises `AttributeError` when comparing `numpy.ndarray` instances with `object` dtype, such as arrays of `~decimal.Decimal`. - [#&#8203;15032](https://github.com/pytest-dev/pytest/issues/15032): Help texts for command-line options and configuration options now keep their indentation and blank lines. Previously each line was stripped before wrapping, so a wrapped list item was indistinguishable from a new one and blank lines were dropped; configuration option help lost its line breaks entirely. - [#&#8203;15043](https://github.com/pytest-dev/pytest/issues/15043): Cache writes now emit `pytest.PytestCacheWarning` when writing or closing the cache file fails, consistent with errors opening the file. - [#&#8203;15052](https://github.com/pytest-dev/pytest/issues/15052): Fixed possible off-by-one line numbers in `--fixtures` and `--fixtures-per-test` output. - [#&#8203;15145](https://github.com/pytest-dev/pytest/issues/15145): With `console_output_style` set to `times`, durations just below a unit boundary are now shown in the next unit (e.g. `1.000ms` instead of `1000.0us`). - [#&#8203;15172](https://github.com/pytest-dev/pytest/issues/15172): Assertion diffs now pretty-print the built-in `frozendict` (Python 3.15+) across multiple lines, similarly to how `dict` is displayed. - [#&#8203;4569](https://github.com/pytest-dev/pytest/issues/4569): `-k` no longer matches attributes that end up in a test function's `__dict__` without being meant as keywords, such as pytest's own `pytestmark` attribute and the bookkeeping left behind by `functools.wraps` and `functools.lru_cache`. - [#&#8203;6750](https://github.com/pytest-dev/pytest/issues/6750): Fix fixture argument discovery for custom collectors that pass bound methods to `pytest.Function`. - [#&#8203;6997](https://github.com/pytest-dev/pytest/issues/6997): XFAIL reports from teardown phases now include the phase in the short test summary. - [#&#8203;7940](https://github.com/pytest-dev/pytest/issues/7940): Fixed cleanup of temporary directories failing when subdirectories have their execute permission removed. - [#&#8203;8321](https://github.com/pytest-dev/pytest/issues/8321): Fixed exception chains being duplicated in the traceback output when an exception in the chain (`__cause__`/`__context__`) has no traceback of its own, and that exception is itself linked to further exceptions. - [#&#8203;8914](https://github.com/pytest-dev/pytest/issues/8914): Tests parametrized with higher-than-function scope are now reordered by parameter *value* rather than by parameter *index*, so that items using equal parameter values are grouped together and share a single fixture setup, even when they are parametrized by separate `@pytest.mark.parametrize <pytest.mark.parametrize ref>` calls. Previously, an expensive higher-scoped fixture could be set up and torn down repeatedly for the same parameter value. Unhashable parameter values (e.g. dicts) keep the previous index-based grouping behavior. As a consequence, the order in which parametrized tests run may change (fixture setup/teardown counts can only decrease, not increase). - [#&#8203;9924](https://github.com/pytest-dev/pytest/issues/9924): Fixed doctest option flags leaking between docstrings after a failure, skip, or expected failure. #### Improved documentation - [#&#8203;10721](https://github.com/pytest-dev/pytest/issues/10721): Replaced `setup.py` usage with `pyproject.toml` in `writing-plugins`. - [#&#8203;12658](https://github.com/pytest-dev/pytest/issues/12658): Moved the fixture setup and finalizer hooks to the test running hooks section in the reference documentation. - [#&#8203;12857](https://github.com/pytest-dev/pytest/issues/12857): Documented how `--confcutdir` affects initial `conftest.py` discovery. - [#&#8203;14157](https://github.com/pytest-dev/pytest/issues/14157): Added the `pytest-flakefighters` plugin to the list of flaky test plugins in `plugins.rst`. Added flaky test papers published on the [Test FLARE](https://test-flare.github.io/) project to the list of flaky papers in `plugins.rst`. - [#&#8203;15127](https://github.com/pytest-dev/pytest/issues/15127): Added guidance on typing yield fixtures, including annotating fixture functions with their generator type and fixture consumers with the yielded value type. - [#&#8203;15242](https://github.com/pytest-dev/pytest/issues/15242): The `installation instructions <installation>` and `install-package-with-pip` now show how to install pytest into a virtual environment with venv and pip, uv or virtualenv, and explain the `externally-managed-environment` error. - [#&#8203;4569](https://github.com/pytest-dev/pytest/issues/4569): `pytest --help`, the `-k` reference entry and `select-tests` no longer describe `-k` as a Python expression matched against test names only; `keyword expressions` now shows marker names being matched as well. The examples that looked up a marker use `Node.get_closest_marker <_pytest.nodes.Node.get_closest_marker>` rather than `item.keywords`. - [#&#8203;9614](https://github.com/pytest-dev/pytest/issues/9614): Clarified that `session.items` and `session.testscollected` exclude deselected tests in the `pytest_collection` documentation. #### Packaging updates and notes for downstreams - [#&#8203;11680](https://github.com/pytest-dev/pytest/issues/11680): Source archives of arbitrary commits -- the tarballs GitHub serves under `/archive/`, not just the ones for tags -- can now be built into an sdist or a wheel with a correct version. A `.git_archival.txt` file, expanded by `git archive` via `export-subst`, carries the describe output that `setuptools-scm` would otherwise have to ask `git` for. The archival file deliberately omits `ref-names`. Recording it would make the content of an archive -- and therefore its checksum -- change whenever a branch that points at the archived commit is moved afterwards, which is how the equivalent tarballs of tagged releases became unstable for other projects. Describe output alone depends only on the commit and on the tags reachable from it. The archival file is not shipped in the sdist -- an sdist carries its version in its metadata, and the template is only ever expanded by `git archive`. Building pytest from a git checkout now requires `setuptools-scm >= 10.1`. - [#&#8203;9236](https://github.com/pytest-dev/pytest/issues/9236): `pluggy>=1.6` is now required. Older pluggy versions stopped running the remaining hook wrapper teardowns once an old-style `hookwrapper` raised in its own teardown. The logging plugin's wrapper was left suspended, and when it was finalised later it detached the handler that `caplog` of a subsequent test was recording through, so that test saw no records. #### Contributor-facing changes - [#&#8203;14813](https://github.com/pytest-dev/pytest/issues/14813): Added a systematic coverage matrix for assertion rewriting. - [#&#8203;14921](https://github.com/pytest-dev/pytest/issues/14921): Added <span class="title-ref">scripts/diff-assert-rewrite.py</span>, which diffs the assert-rewritten form of a snippet between the plain source, this checkout and released pytest versions. - [#&#8203;15190](https://github.com/pytest-dev/pytest/issues/15190): Fixed the documentation build with Pluggy 1.7 by ignoring a reference to its undocumented `DistFacade` compatibility class. #### Miscellaneous internal changes - [#&#8203;13888](https://github.com/pytest-dev/pytest/issues/13888): `FixtureRequest.node <pytest.FixtureRequest.node>` is now explicitly annotated as returning `Any`, so strict pyright no longer reports it as `Unknown`. The return type stays deliberately broad, see `13888`. - [#&#8203;14758](https://github.com/pytest-dev/pytest/issues/14758): Internal node ids (the `::`-separated strings identifying collected items, e.g. `path/to/test_file.py::TestClass::test_method[param]`) are now represented internally by a single structured `~_pytest.nodeid.NodeId` dataclass instead of being repeatedly re-parsed as plain strings. The public `nodeid: str` attribute on nodes and reports is unchanged and remains fully backward compatible for plugins. ### [`v9.1.1`](https://github.com/pytest-dev/pytest/releases/tag/9.1.1) [Compare Source](https://github.com/pytest-dev/pytest/compare/9.1.0...9.1.1) ### pytest 9.1.1 (2026-06-19) #### Bug fixes - [#&#8203;14220](https://github.com/pytest-dev/pytest/issues/14220): Fixed a logic bug in `pytest.RaisesGroup` which would might cause it to display incorrect "It matches <span class="title-ref">FooError()</span> which was paired with <span class="title-ref">BarError</span>" messages. - [#&#8203;14591](https://github.com/pytest-dev/pytest/issues/14591): Fixed a regression in pytest 9.1.0 which caused overriding a parametrized fixture with an indirect <span class="title-ref">[@&#8203;pytest](https://github.com/pytest).mark.parametrize</span> to fail with "duplicate parametrization of '\<fixture name>'". - [#&#8203;14606](https://github.com/pytest-dev/pytest/issues/14606): Fixed `list-item` typing errors from mypy in `@pytest.mark.parametrize <pytest.mark.parametrize ref>` `argvalues` parameter. - [#&#8203;14608](https://github.com/pytest-dev/pytest/issues/14608): Fixed a regression in pytest 9.1.0 where `conftest.py` files located in `<invocation dir>/test*` were no longer loaded as initial conftests when invoked without arguments. This could cause certain hooks (like `pytest_addoption`) in these files to not fire. ### [`v9.1.0`](https://github.com/pytest-dev/pytest/releases/tag/9.1.0) [Compare Source](https://github.com/pytest-dev/pytest/compare/9.0.3...9.1.0) ### pytest 9.1.0 (2026-06-13) #### Removals and backward incompatible breaking changes - [#&#8203;14533](https://github.com/pytest-dev/pytest/issues/14533): When using `--doctest-modules`, autouse fixtures with `module`, `package` or `session` scope that are defined inline in Python test modules (not plugins or conftests) will now possibly execute twice. If this is undesirable, move the fixture definition to a `conftest.py` file if possible. Technical explanation for those interested: When using <span class="title-ref">--doctest-modules</span>, pytest possibly collects Python modules twice, once as `pytest.Module` and once as a `DoctestModule` (depending on the configuration). Due to improvements in pytest's fixture implementation, if e.g. the `DoctestModule` collects a fixture, it is now visible to it only, and not to the `Module`. This means that both need to register the fixtures independently. #### Deprecations (removal in next major release) - [#&#8203;10819](https://github.com/pytest-dev/pytest/issues/10819): Added a deprecation warning for class-scoped fixtures defined as instance methods (without `@classmethod`). Such fixtures set attributes on a different instance than the test methods use, leading to unexpected behavior. Use `@classmethod` decorator instead -- by `yastcher`. See `10819` and `14011`. - [#&#8203;12882](https://github.com/pytest-dev/pytest/issues/12882): Calling `request.getfixturevalue() <pytest.FixtureRequest.getfixturevalue>` during teardown to request a fixture that was not already requested is now deprecated and will become an error in pytest 10. See `dynamic-fixture-request-during-teardown` for details. - [#&#8203;13409](https://github.com/pytest-dev/pytest/issues/13409): Using non-`~collections.abc.Collection` iterables (such as generators, iterators, or custom iterable objects) for the `argvalues` parameter in `@pytest.mark.parametrize <pytest.mark.parametrize ref>` and `metafunc.parametrize <pytest.Metafunc.parametrize>` is now deprecated. These iterables get exhausted after the first iteration, leading to tests getting unexpectedly skipped in cases such as running `pytest.main()` multiple times, using class-level parametrize decorators, or collecting tests multiple times. See `parametrize-iterators` for details and suggestions. - [#&#8203;13946](https://github.com/pytest-dev/pytest/issues/13946): The private `config.inicfg` attribute is now deprecated. Use `config.getini() <pytest.Config.getini>` to access configuration values instead. See `config-inicfg` for more details. - [#&#8203;14004](https://github.com/pytest-dev/pytest/issues/14004): Passing `baseid` to `~pytest.FixtureDef` or `nodeid` strings to fixture registration APIs is now deprecated. These are internal pytest APIs that are used by some plugins. Use the `node` parameter instead for fixture scoping. This enables more robust node-based matching instead of string prefix matching. If you've used `nodeid=None`, pass `node=session` instead. This will be removed in pytest 10. - [#&#8203;14335](https://github.com/pytest-dev/pytest/issues/14335): The method of configuring hooks using markers, deprecated since pytest 7.2, is now scheduled to be removed in pytest 10. See `hook-markers` for more details. - [#&#8203;14434](https://github.com/pytest-dev/pytest/issues/14434): The `--pastebin` option is now deprecated. The same functionality is now available in an external plugin, `pytest-pastebin`. See `pastebin-deprecated` for more details. - [#&#8203;14513](https://github.com/pytest-dev/pytest/issues/14513): The private `FixtureDef.has_location` attribute is now deprecated and will be removed in pytest 10. See `fixturedef-has-location-deprecated` for details. - [#&#8203;1764](https://github.com/pytest-dev/pytest/issues/1764): `pytest.console_main` is now deprecated and will be removed in pytest 10. It was never intended for programmatic use; use `pytest.main` instead. #### New features - [#&#8203;12376](https://github.com/pytest-dev/pytest/issues/12376): Added `pytest.register_fixture()` to register fixtures using an imperative interface. This is an advanced function intended for use by plugins. Normally, fixtures should be registered declaratively using the `@pytest.fixture <pytest.fixture>` decorator. Pytest looks for these fixture definitions during the collection phase and registers them automatically. For some plugin usecases the declarative interface can be cumbersome or unviable, in which case this imperative interface can be used. - [#&#8203;14023](https://github.com/pytest-dev/pytest/issues/14023): Added <span class="title-ref">--report-chars</span> long CLI option. - [#&#8203;14371](https://github.com/pytest-dev/pytest/issues/14371): Added `--max-warnings` command-line option and `max_warnings` configuration option to fail the test run when the number of warnings exceeds a given threshold -- by `miketheman`. - [#&#8203;6757](https://github.com/pytest-dev/pytest/issues/6757): Added the `assertion_text_diff_style` configuration option, allowing string equality failures to be rendered as separate `Left:` and `Right:` blocks instead of `ndiff` output. - [#&#8203;8395](https://github.com/pytest-dev/pytest/issues/8395): Added support for `~datetime.datetime` and `~datetime.timedelta` comparisons with `pytest.approx`. An explicit `abs` or `rel` tolerance as a `~datetime.timedelta` is required and relative tolerance is not supported for datetime comparisons -- by `hamza-mobeen`. #### Improvements in existing functionality - [#&#8203;11225](https://github.com/pytest-dev/pytest/issues/11225): `pytest.warns` now shows "Regex pattern did not match" instead of "DID NOT WARN" when warnings were emitted but the `match` pattern did not match. - [#&#8203;11295](https://github.com/pytest-dev/pytest/issues/11295): Improved output of `--fixtures-per-test` by excluding internal-implementation fixtures generated by `@pytest.mark.parametrize` and similar. - [#&#8203;13241](https://github.com/pytest-dev/pytest/issues/13241): `pytest.raises`, `pytest.warns` and `pytest.deprecated_call` now uses `ParamSpec` for the type hint to the (old and not recommended) callable overload, instead of `Any`. This allows type checkers to raise errors when passing incorrect function parameters. `func` can now also be passed as a kwarg, which the type hint previously showed as possible but didn't accept. - [#&#8203;13862](https://github.com/pytest-dev/pytest/issues/13862): Improved the readability of "DID NOT RAISE" error messages by using the exception type's name instead of its <span class="title-ref">repr</span>. - [#&#8203;14026](https://github.com/pytest-dev/pytest/issues/14026): Added test coverage for compiled regex patterns in `pytest.raises` match parameter. - [#&#8203;14137](https://github.com/pytest-dev/pytest/issues/14137): <span class="title-ref">pytest.ScopeName</span> is now public to allow using it in function signatures. - [#&#8203;14342](https://github.com/pytest-dev/pytest/issues/14342): Marked `yield_fixture` as deprecated to type checkers using the `deprecated` decorator. Note it `has originally been deprecated <yield-fixture-deprecated>` in pytest 6.2 already. - [#&#8203;14373](https://github.com/pytest-dev/pytest/issues/14373): Added type annotations for `pytest.approx`. - [#&#8203;14430](https://github.com/pytest-dev/pytest/issues/14430): When using `--setup-show`, a space is now printed after the test name (and possibly used fixtures), to separate it from the test result. - [#&#8203;14441](https://github.com/pytest-dev/pytest/issues/14441): Reduced the default number of `gc.collect()` passes in the `unraisableexception` plugin from 5 to 1 on CPython, where reference counting makes a single pass sufficient. PyPy retains 5 passes due to object resurrection via `__del__`. This can noticeably speed up test suites that trigger many pytester runs. - [#&#8203;14461](https://github.com/pytest-dev/pytest/issues/14461): Improved assertion failure explanations for equality comparisons between mapping objects that are not `dict` instances. - [#&#8203;14513](https://github.com/pytest-dev/pytest/issues/14513): The order in which fixture definitions overriding each other are resolved is now determined first by their *visibility* in the collection tree rather than by the order in which they are registered. A fixture defined for a more specific node (e.g. a module or an item) now always takes precedence over one with the same name defined for a more general node (e.g. the session), even when the more general one was registered later. Fixtures with non-comparable visibility or the same visibility keep the existing behavior of "last registered wins". This change is supposed to only affect plugins which register multiple fixtures programmatically with the same name. - [#&#8203;14524](https://github.com/pytest-dev/pytest/issues/14524): Add official Python 3.15 support. - [#&#8203;1764](https://github.com/pytest-dev/pytest/issues/1764): Improved argparse program name to show `pytest`, `python -m pytest`, or `pytest.main()` based on how pytest was invoked, making help and error messages clearer. - [#&#8203;8265](https://github.com/pytest-dev/pytest/issues/8265): Emit a `PytestCollectionWarning` when a module-level `__getattr__` returns `None` for `pytestmark` instead of raising `AttributeError`. Previously this caused a cryptic `TypeError: got None instead of Mark` error. Now pytest issues a helpful warning and continues collecting the module normally. #### Bug fixes - [#&#8203;13192](https://github.com/pytest-dev/pytest/issues/13192): Fixed <span class="title-ref">|</span> (pipe) not being treated as a regex meta-character that needs escaping in `pytest.raises(match=...) <pytest.raises>`. - [#&#8203;13484](https://github.com/pytest-dev/pytest/issues/13484): Fixed `-W` option values being duplicated in `Config.known_args_namespace`. - [#&#8203;13626](https://github.com/pytest-dev/pytest/issues/13626): Fixed function-scoped fixture values being kept alive after a test was interrupted by `KeyboardInterrupt` or early exit, allowing them to potentially be released more promptly. - [#&#8203;13784](https://github.com/pytest-dev/pytest/issues/13784): Fixed `capteesys` producing doubled output when used with `--capture=no` (`-s`). - [#&#8203;13817](https://github.com/pytest-dev/pytest/issues/13817): Fixed a secondary <span class="title-ref">AttributeError</span> masking the original error when an option argument fails to initialize. - [#&#8203;13884](https://github.com/pytest-dev/pytest/issues/13884): Fixed rare internal IndexError caused by <span class="title-ref">builtins.compile</span> being overridden in client code. - [#&#8203;13885](https://github.com/pytest-dev/pytest/issues/13885): Fixed autouse fixtures defined inside a `unittest.TestCase` class running even when the class is decorated with `unittest.skip` or `unittest.skipIf` -- regression since pytest 8.1.0. - [#&#8203;13917](https://github.com/pytest-dev/pytest/issues/13917): `unittest.SkipTest` is no longer considered an interactive exception, i.e. `pytest_exception_interact` is no longer called for it. - [#&#8203;13963](https://github.com/pytest-dev/pytest/issues/13963): Fixed subtests running with `pytest-xdist` when their contexts contain objects that are not JSON-serializable. Fixes [pytest-dev/pytest-xdist#1273](https://github.com/pytest-dev/pytest-xdist/issues/1273). - [#&#8203;14004](https://github.com/pytest-dev/pytest/issues/14004): Fixed conftest.py fixture scoping when `testpaths` points outside of the `rootdir <rootdir>`. Previously, fixtures from nested conftest.py files would incorrectly leak to sibling directories when using a relative `testpaths` like `../tests/sdk`. Conftest fixtures are now parsed during `Directory <pytest.Directory>` collection, using the `Directory` node for proper scoping. - [#&#8203;14050](https://github.com/pytest-dev/pytest/issues/14050): Display dictionary differences in assertion failures using the original key insertion order instead of sorted order. - [#&#8203;14080](https://github.com/pytest-dev/pytest/issues/14080): fix missing type annotations on `Pytester.makepyfile` and `Pytester.maketxtfile` methods. - [#&#8203;14114](https://github.com/pytest-dev/pytest/issues/14114): An exception from `pytest_fixture_post_finalizer` no longer prevents fixtures from being torn down, causing additional errors in the following tests. - [#&#8203;14161](https://github.com/pytest-dev/pytest/issues/14161): Fixed `monkeypatch.setattr() <pytest.MonkeyPatch.setattr>` leaving a stale entry on the undo stack when the underlying `setattr()` call fails (e.g. on immutable targets), causing an `AttributeError` crash during teardown. - [#&#8203;14214](https://github.com/pytest-dev/pytest/issues/14214): Fixed `-v` hint in `pytest.raises` match diff not working because assertion verbosity was not propagated. - [#&#8203;14234](https://github.com/pytest-dev/pytest/issues/14234): Allow `pytest.HIDDEN_PARAM <hidden-param>` in `@pytest.mark.parametrize(ids=...) <pytest.mark.parametrize ref>` typing. - [#&#8203;14248](https://github.com/pytest-dev/pytest/issues/14248): Fixed direct parametrization causing the static fixture closure (as reflected in `request.fixturenames <pytest.FixtureRequest.fixturenames>`) to omit fixtures that are requested transitively from overridden fixtures. - [#&#8203;14263](https://github.com/pytest-dev/pytest/issues/14263): Unraisable exceptions from finalizers are now collected during `pytest_unconfigure`, before pytest tears down the warning filters installed for the session. Previously the collection ran from a cleanup callback whose order relative to other plugins' cleanups was not guaranteed, so an active `error` filter could be removed before the exception surfaced and a late resource leak would pass silently. A `-W error` filter, or any filter matching `pytest.PytestUnraisableExceptionWarning`, now promotes these exceptions to failures regardless of plugin cleanup order. - [#&#8203;14377](https://github.com/pytest-dev/pytest/issues/14377): Fixed crash in <span class="title-ref">Config.get_terminal_writer</span> when an assertion fails with the `terminalreporter` plugin disabled. - [#&#8203;14381](https://github.com/pytest-dev/pytest/issues/14381): Fixed `-V` (short form of `--version`) to properly display the current version. - [#&#8203;14389](https://github.com/pytest-dev/pytest/issues/14389): Improved `pytest.raises(..., match=...) <pytest.raises>` failures to suppress the mismatched exception as a cause of the resulting `AssertionError`. - [#&#8203;14392](https://github.com/pytest-dev/pytest/issues/14392): Fixed a bug in `pytest.raises(match=...) <pytest.raises>` "fully escaped" detection, causing the regex diff display to be shown in some instances when the raw string diff display should be shown instead. - [#&#8203;14442](https://github.com/pytest-dev/pytest/issues/14442): Fixed a regression in pytest 9.0 where `--strict-markers` and `--strict-config` specified through `addopts` were silently ignored. Note that when targeting pytest >= 9.0, it's nicer to use `strict_markers` and `strict_config`, or `strict mode <strict mode>`. - [#&#8203;14456](https://github.com/pytest-dev/pytest/issues/14456): Fixed `pytest.approx` not recognizing types with `__array_interface__` as numpy-like arrays. - [#&#8203;14474](https://github.com/pytest-dev/pytest/issues/14474): Fixed a regression where `-k` and `-m` expressions containing both backslash characters in identifiers and string literal arguments would incorrectly raise a `SyntaxError` about escaping. - [#&#8203;14483](https://github.com/pytest-dev/pytest/issues/14483): Fixed JUnit XML report incorrectly escaping high Unicode codepoints (supplementary plane characters like emoji) in test failure messages. -- by `EternalRights` - [#&#8203;14492](https://github.com/pytest-dev/pytest/issues/14492): Fixed `Code.getargs()` incorrectly including local variable names in the returned argument tuple for functions with `*args` and/or `**kwargs`. The method was using `co_flags` bitmask values (`4` and `8`) directly as counts instead of converting them to `1` via `bool()`, and was not accounting for `co_kwonlyargcount` when `var=True`. - [#&#8203;3697](https://github.com/pytest-dev/pytest/issues/3697): Logging capture now works for non-propagating loggers. Previously only logs which reached the root logger were captured. This includes `caplog` and the "Captured log calls" test reporting. - [#&#8203;3850](https://github.com/pytest-dev/pytest/issues/3850): Fixed JUnit XML report: the `tests` attribute of the `<testsuite>` element now always matches the number of `<testcase>` elements in the file. In some cases (test passes but fails during teardown) the `tests` attribute would report an incorrect number of testcases in the XML file. - [#&#8203;5848](https://github.com/pytest-dev/pytest/issues/5848): `pytest_fixture_post_finalizer` is no longer called extra times for the same fixture teardown in some cases. - [#&#8203;719](https://github.com/pytest-dev/pytest/issues/719): Fixed `@pytest.mark.parametrize <pytest.mark.parametrize ref>` not unpacking single-element tuple values when using a string argnames with a trailing comma (e.g., `"arg,"`). The trailing comma form now correctly behaves like the tuple form `("arg",)`, treating argvalues as a list of tuples to unpack. #### Improved documentation - [#&#8203;11022](https://github.com/pytest-dev/pytest/issues/11022): Document safer alternatives and scope guidance for monkeypatching standard library functions. - [#&#8203;11307](https://github.com/pytest-dev/pytest/issues/11307): Document that `@pytest.hookimpl(specname=...)` only works for function names starting with `pytest_`. - [#&#8203;13038](https://github.com/pytest-dev/pytest/issues/13038): Document that doctests do not support parametrized fixtures, including parametrized autouse fixtures. - [#&#8203;13155](https://github.com/pytest-dev/pytest/issues/13155): Clarified how the `request` fixture provides indirect parametrization values via `request.param`. - [#&#8203;13304](https://github.com/pytest-dev/pytest/issues/13304): Clarified in the documentation that hook implementations defined in `conftest.py` files are not available to other plugins during their `pytest_addoption()` execution, as conftest files are discovered and loaded after builtin and third-party plugins have been initialized. However, initial conftest files themselves can implement `pytest_addoption()` to add their own command-line options. - [#&#8203;13902](https://github.com/pytest-dev/pytest/issues/13902): Clarified how subtest progress markers are shown in the documentation. - [#&#8203;14012](https://github.com/pytest-dev/pytest/issues/14012): The `ini options ref` section of the API Reference now specified the type and default value of every configuration option. - [#&#8203;14148](https://github.com/pytest-dev/pytest/issues/14148): Documented a safe `pytestconfig.cache` access pattern when the `cacheprovider` plugin is disabled. - [#&#8203;14303](https://github.com/pytest-dev/pytest/issues/14303): The documentation is now built with Sphinx >= 9. - [#&#8203;14465](https://github.com/pytest-dev/pytest/issues/14465): Updated the hooks how-to page to link the `newhooks.py` file in `pytest-xdist` at tag `v3.8.0` instead of an unrelated 2017-era commit under the old layout. Pointing at a tag keeps the example in sync with the version users actually install, while remaining stable when the project's main branch moves on. #### Miscellaneous internal changes - [#&#8203;14582](https://github.com/pytest-dev/pytest/issues/14582): Improved the recursion traceback test to exercise all requested traceback styles. </details> <details> <summary>pytest-dev/pytest-asyncio (pytest-asyncio)</summary> ### [`v1.5.0`](https://github.com/pytest-dev/pytest-asyncio/releases/tag/v1.5.0): pytest-asyncio v1.5.0 [Compare Source](https://github.com/pytest-dev/pytest-asyncio/compare/v1.4.1.post1...v1.5.0) ### [1.5.0](https://github.com/pytest-dev/pytest-asyncio/tree/1.5.0) - 2026-11-12 #### Added - A `fixture-scope` value for `asyncio_default_fixture_loop_scope`. With it, an asynchronous fixture without `loop_scope` uses its `scope` as its loop scope. This is the behavior of an unset option in pytest-asyncio 1.x. ([#&#8203;1095](https://github.com/pytest-dev/pytest-asyncio/issues/1095)) #### Fixed - Invalid arguments to the `asyncio` marker, including an invalid `loop_scope`, are reported with a message that names the test instead of a traceback. ([#&#8203;1584](https://github.com/pytest-dev/pytest-asyncio/issues/1584)) </details> <details> <summary>actions/python-versions (python)</summary> ### [`v3.15.2`](https://github.com/actions/python-versions/releases/tag/3.15.2-40340363276): 3.15.2 [Compare Source](https://github.com/actions/python-versions/compare/3.15.1-39619321210...3.15.2-40340363276) Python 3.15.2 ### [`v3.15.1`](https://github.com/actions/python-versions/releases/tag/3.15.1-39619321210): 3.15.1 [Compare Source](https://github.com/actions/python-versions/compare/3.15.0-38076878863...3.15.1-39619321210) Python 3.15.1 ### [`v3.15.0`](https://github.com/actions/python-versions/releases/tag/3.15.0-38076878863): 3.15.0 [Compare Source](https://github.com/actions/python-versions/compare/3.14.10-40336797752...3.15.0-38076878863) Python 3.15.0 ### [`v3.14.10`](https://github.com/actions/python-versions/releases/tag/3.14.10-40336797752): 3.14.10 [Compare Source](https://github.com/actions/python-versions/compare/3.14.9-39619022138...3.14.10-40336797752) Python 3.14.10 ### [`v3.14.9`](https://github.com/actions/python-versions/releases/tag/3.14.9-39619022138): 3.14.9 [Compare Source](https://github.com/actions/python-versions/compare/3.14.8-36806082737...3.14.9-39619022138) Python 3.14.9 ### [`v3.14.8`](https://github.com/actions/python-versions/releases/tag/3.14.8-36806082737): 3.14.8 [Compare Source](https://github.com/actions/python-versions/compare/3.14.7-31064857500...3.14.8-36806082737) Python 3.14.8 ### [`v3.14.7`](https://github.com/actions/python-versions/releases/tag/3.14.7-31064857500): 3.14.7 [Compare Source](https://github.com/actions/python-versions/compare/3.14.6-27283001424...3.14.7-31064857500) Python 3.14.7 ### [`v3.14.6`](https://github.com/actions/python-versions/releases/tag/3.14.6-27283001424): 3.14.6 [Compare Source](https://github.com/actions/python-versions/compare/3.14.5-25647354415...3.14.6-27283001424) Python 3.14.6 ### [`v3.14.5`](https://github.com/actions/python-versions/releases/tag/3.14.5-25647354415): 3.14.5 [Compare Source](https://github.com/actions/python-versions/compare/3.14.4-25113653268...3.14.5-25647354415) Python 3.14.5 ### [`v3.14.4`](https://github.com/actions/python-versions/releases/tag/3.14.4-25113653268): 3.14.4 [Compare Source](https://github.com/actions/python-versions/compare/3.14.3-21673711214...3.14.4-25113653268) Python 3.14.4 ### [`v3.14.3`](https://github.com/actions/python-versions/releases/tag/3.14.3-21673711214): 3.14.3 [Compare Source](https://github.com/actions/python-versions/compare/3.14.2-20014991423...3.14.3-21673711214) Python 3.14.3 ### [`v3.14.2`](https://github.com/actions/python-versions/releases/tag/3.14.2-20014991423): 3.14.2 [Compare Source](https://github.com/actions/python-versions/compare/3.14.1-19879739908...3.14.2-20014991423) Python 3.14.2 ### [`v3.14.1`](https://github.com/actions/python-versions/releases/tag/3.14.1-19879739908): 3.14.1 [Compare Source](https://github.com/actions/python-versions/compare/3.14.0-18313368925...3.14.1-19879739908) Python 3.14.1 ### [`v3.14.0`](https://github.com/actions/python-versions/releases/tag/3.14.0-18313368925): 3.14.0 [Compare Source](https://github.com/actions/python-versions/compare/3.13.18-40336726450...3.14.0-18313368925) Python 3.14.0 ### [`v3.13.18`](https://github.com/actions/python-versions/releases/tag/3.13.18-40336726450): 3.13.18 [Compare Source](https://github.com/actions/python-versions/compare/3.13.17-39711892467...3.13.18-40336726450) Python 3.13.18 ### [`v3.13.17`](https://github.com/actions/python-versions/releases/tag/3.13.17-39711892467): 3.13.17 [Compare Source](https://github.com/actions/python-versions/compare/3.13.16-36805956071...3.13.17-39711892467) Python 3.13.17 ### [`v3.13.16`](https://github.com/actions/python-versions/releases/tag/3.13.16-36805956071): 3.13.16 [Compare Source](https://github.com/actions/python-versions/compare/3.13.15-31064747964...3.13.16-36805956071) Python 3.13.16 ### [`v3.13.15`](https://github.com/actions/python-versions/releases/tag/3.13.15-31064747964): 3.13.15 [Compare Source](https://github.com/actions/python-versions/compare/3.13.14-27320626148...3.13.15-31064747964) Python 3.13.15 ### [`v3.13.14`](https://github.com/actions/python-versions/releases/tag/3.13.14-27320626148): 3.13.14 [Compare Source](https://github.com/actions/python-versions/compare/3.13.13-27225391538...3.13.14-27320626148) Python 3.13.14 ### [`v3.13.13`](https://github.com/actions/python-versions/releases/tag/3.13.13-27225391538): 3.13.13 [Compare Source](https://github.com/actions/python-versions/compare/3.13.12-21673645133...3.13.13-27225391538) Python 3.13.13 ### [`v3.13.12`](https://github.com/actions/python-versions/releases/tag/3.13.12-21673645133): 3.13.12 [Compare Source](https://github.com/actions/python-versions/compare/3.13.11-20014977833...3.13.12-21673645133) Python 3.13.12 ### [`v3.13.11`](https://github.com/actions/python-versions/releases/tag/3.13.11-20014977833): 3.13.11 [Compare Source](https://github.com/actions/python-versions/compare/3.13.10-19879712315...3.13.11-20014977833) Python 3.13.11 ### [`v3.13.10`](https://github.com/actions/python-versions/releases/tag/3.13.10-19879712315): 3.13.10 [Compare Source](https://github.com/actions/python-versions/compare/3.13.9-18515951191...3.13.10-19879712315) Python 3.13.10 ### [`v3.13.9`](https://github.com/actions/python-versions/releases/tag/3.13.9-18515951191): 3.13.9 [Compare Source](https://github.com/actions/python-versions/compare/3.13.8-18331000654...3.13.9-18515951191) Python 3.13.9 ### [`v3.13.8`](https://github.com/actions/python-versions/releases/tag/3.13.8-18331000654): 3.13.8 [Compare Source](https://github.com/actions/python-versions/compare/3.13.7-16980743123...3.13.8-18331000654) Python 3.13.8 ### [`v3.13.7`](https://github.com/actions/python-versions/releases/tag/3.13.7-16980743123): 3.13.7 [Compare Source](https://github.com/actions/python-versions/compare/3.13.6-16792117939...3.13.7-16980743123) Python 3.13.7 ### [`v3.13.6`](https://github.com/actions/python-versions/releases/tag/3.13.6-16792117939): 3.13.6 [Compare Source](https://github.com/actions/python-versions/compare/3.13.5-15601068749...3.13.6-16792117939) Python 3.13.6 ### [`v3.13.5`](https://github.com/actions/python-versions/releases/tag/3.13.5-15601068749): 3.13.5 [Compare Source](https://github.com/actions/python-versions/compare/3.13.4-15433317575...3.13.5-15601068749) Python 3.13.5 ### [`v3.13.4`](https://github.com/actions/python-versions/releases/tag/3.13.4-15433317575): 3.13.4 [Compare Source](https://github.com/actions/python-versions/compare/3.13.3-14344076652...3.13.4-15433317575) Python 3.13.4 ### [`v3.13.3`](https://github.com/actions/python-versions/releases/tag/3.13.3-14344076652): 3.13.3 [Compare Source](https://github.com/actions/python-versions/compare/3.13.2-13708744326...3.13.3-14344076652) Python 3.13.3 ### [`v3.13.2`](https://github.com/actions/python-versions/releases/tag/3.13.2-13708744326): 3.13.2 [Compare Source](https://github.com/actions/python-versions/compare/3.13.1-13437882550...3.13.2-13708744326) Python 3.13.2 ### [`v3.13.1`](https://github.com/actions/python-versions/releases/tag/3.13.1-13437882550): 3.13.1 [Compare Source](https://github.com/actions/python-versions/compare/3.13.0-13707372259...3.13.1-13437882550) Python 3.13.1 ### [`v3.13.0`](https://github.com/actions/python-versions/releases/tag/3.13.0-13707372259): 3.13.0 [Compare Source](https://github.com/actions/python-versions/compare/3.12.16-40260402378...3.13.0-13707372259) Python 3.13.0 </details> <details> <summary>SergeyPirogov/webdriver_manager (webdriver-manager)</summary> ### [`v4.1.2`](https://github.com/SergeyPirogov/webdriver_manager/blob/HEAD/CHANGELOG.md#412) [Compare Source](https://github.com/SergeyPirogov/webdriver_manager/compare/v4.1.1...v4.1.2) ##### Fixes - ChromeDriver: restored legacy ChromeDriver storage URL handling for Chrome/ChromeDriver 114 and older, fixing invalid Chrome for Testing download URLs for older versions such as ChromeDriver `102.0.5005.61` on Windows. ([#&#8203;736](https://github.com/SergeyPirogov/webdriver_manager/issues/736)) - ChromeDriver on 64-bit Windows: use the legacy `win32` archive name for ChromeDriver 114 and older while preserving `win64` Chrome for Testing downloads for ChromeDriver 115 and newer. ([#&#8203;736](https://github.com/SergeyPirogov/webdriver_manager/issues/736)) - Firefox/GeckoDriver: report a readable error when a GeckoDriver release does not contain an asset matching the requested OS type instead of failing with an ambiguous missing-list entry. ##### Tests - Added regression coverage for ChromeDriver `102.0.5005.61` URL construction, legacy latest-release lookup, and the `ChromeDriverManager.install()` download-manager path without live network calls. ([#&#8203;736](https://github.com/SergeyPirogov/webdriver_manager/issues/736)) - Pinned GeckoDriver cache coverage to a known release and added coverage for missing GeckoDriver release assets. ##### CI - Windows: install Google Chrome only when it is missing, while continuing to install Chromium, Opera, and Brave through Chocolatey. - Linux: install Chromium through `browser-actions/setup-chrome` and expose it as `chromium`, avoiding the unavailable/unstable `apt` Chromium package path on GitHub Actions. *** ### [`v4.1.1`](https://github.com/SergeyPirogov/webdriver_manager/blob/HEAD/CHANGELOG.md#411) [Compare Source](https://github.com/SergeyPirogov/webdriver_manager/compare/v4.1.0...v4.1.1) ##### Packaging - Fixed package metadata shown on PyPI. - Added Python version classifiers for currently supported Python versions. - Removed obsolete universal wheel metadata. - Ensured release metadata better reflects the current Python support policy. ##### Docs - Fixed PyPI badge package name in README. - Updated README badges to use the published package name `webdriver-manager`. ##### Notes - No functional driver-resolution changes are included in this release. - This is a packaging and documentation cleanup release following 4.1.0. *** ### [`v4.1.0`](https://github.com/SergeyPirogov/webdriver_manager/blob/HEAD/CHANGELOG.md#410) [Compare Source](https://github.com/SergeyPirogov/webdriver_manager/compare/v4.0.2...v4.1.0) ##### Compatibility - Added support for Python 3.12, 3.13, and 3.14. - Added CI coverage for Python 3.15.0-beta.1. - Kept compatibility with both Selenium 3 and Selenium 4 usage patterns. - Improved Chrome / Chromium / Brave support for Chrome 115+ and Chrome for Testing driver resolution. - Improved Microsoft Edge driver resolution through updated endpoint handling and platform mapping. - Improved Firefox/geckodriver resolution on Linux ARM64. - Improved Windows browser version detection through safer PowerShell command execution. - Improved Docker, CI, and serverless compatibility when default cache locations are unavailable or read-only. ##### Fixes - Chrome/Chromium: improved Chrome for Testing resolution and fallbacks for missing exact build metadata, readable errors, and stable URL resolution. ([#&#8203;706](https://github.com/SergeyPirogov/webdriver_manager/issues/706), [#&#8203;685](https://github.com/SergeyPirogov/webdriver_manager/issues/685), [#&#8203;639](https://github.com/SergeyPirogov/webdriver_manager/issues/639)) - Chrome on Windows: prefer `win64` on 64-bit hosts with safe fallback to `win32` when the `win64` asset is unavailable. ([#&#8203;647](https://github.com/SergeyPirogov/webdriver_manager/issues/647), [#&#8203;686](https://github.com/SergeyPirogov/webdriver_manager/issues/686)) - Edge: updated driver endpoint and improved OS/platform mapping for driver artifacts. ([#&#8203;697](https://github.com/SergeyPirogov/webdriver_manager/issues/697)) - Firefox on Linux ARM64: prefer `linux-aarch64` geckodriver to avoid architecture mismatch. ([#&#8203;616](https://github.com/SergeyPirogov/webdriver_manager/issues/616)) - Windows browser version detection: switched to PowerShell `-EncodedCommand` flow to avoid quoting and expansion failures in browser version probes. ([#&#8203;625](https://github.com/SergeyPirogov/webdriver_manager/issues/625)) - Opera driver install path handling when cache already returns a binary file path, preventing `NotADirectoryError` caused by directory-only assumptions. ([#&#8203;730](https://github.com/SergeyPirogov/webdriver_manager/issues/730)) - Cache reliability: avoid remote version lookup when a valid browser-version cache entry already exists. ([#&#8203;661](https://github.com/SergeyPirogov/webdriver_manager/issues/661)) - Cache stability: cache resolved driver version inside the cache manager to reduce repeated metadata and network requests. ([#&#8203;656](https://github.com/SergeyPirogov/webdriver_manager/issues/656)) - Concurrency: added an inter-process install lock with post-lock cache recheck to prevent parallel download and unpack races such as `BadZipFile` and startup failures. ([#&#8203;700](https://github.com/SergeyPirogov/webdriver_manager/issues/700), [#&#8203;631](https://github.com/SergeyPirogov/webdriver_manager/issues/631)) - Archive extraction robustness: improved zip fallback handling in concurrent or busy-file scenarios. - Docker/serverless cache path safety: fall back to a writable temp directory when `HOME` or project-root cache targets are invalid or read-only. ([#&#8203;636](https://github.com/SergeyPirogov/webdriver_manager/issues/636), [#&#8203;651](https://github.com/SergeyPirogov/webdriver_manager/issues/651), [#&#8203;682](https://github.com/SergeyPirogov/webdriver_manager/issues/682), [#&#8203;694](https://github.com/SergeyPirogov/webdriver_manager/issues/694)) - Binary selection safety: prevent selecting non-executable companion files such as `THIRD_PARTY_NOTICES.*` as driver executables. ([#&#8203;667](https://github.com/SergeyPirogov/webdriver_manager/issues/667), [#&#8203;670](https://github.com/SergeyPirogov/webdriver_manager/issues/670), [#&#8203;683](https://github.com/SergeyPirogov/webdriver_manager/issues/683), [#&#8203;699](https://github.com/SergeyPirogov/webdriver_manager/issues/699)) - Logger API: `set_logger()` now accepts logger-like objects exposing `log(level, message)`, not only `logging.Logger`. ([#&#8203;688](https://github.com/SergeyPirogov/webdriver_manager/issues/688)) ##### Tests - Added regression tests for Chrome 115+ Chrome for Testing resolution flows and Chrome 118 resolution. - Added tests for compressed and invalid Chrome for Testing metadata parsing paths. - Added tests for cache lookup behavior and no-network cache hit paths. - Added tests for binary selection safety to avoid selecting `THIRD_PARTY_NOTICES.*`. - Added tests for Firefox ARM64 OS mapping. - Added tests for manager concurrency and cache recheck behavior. - Added tests for constants and cache path behavior in frozen/PyInstaller and invalid `HOME` scenarios. - Expanded CI matrix for Python 3.12, 3.13, 3.14, and 3.15.0-beta.1. ##### Docs - Reworked README structure for the 4.1.0 release to focus on installation, usage, compatibility, configuration, and maintenance information. - Added guidance on when to use `webdriver-manager` instead of Selenium Manager. - Clarified package/import naming: `webdriver-manager` is the package name, `webdriver_manager` is the import name. ([#&#8203;660](https://github.com/SergeyPirogov/webdriver_manager/issues/660)) - Added desktop browser automation scope guidance and clarified that Android/PyDroid local browser automation is out of scope. ([#&#8203;640](https://github.com/SergeyPirogov/webdriver_manager/issues/640)) - Added Docker, CI, and serverless cache-path recommendations. ([#&#8203;630](https://github.com/SergeyPirogov/webdriver_manager/issues/630)) - Updated Selenium 3 and Selenium 4 usage examples for Chrome, Chromium, Brave, Edge, Firefox, IE, and Opera. - Documented configuration use cases for custom cache, custom OS/architecture detection, custom download URLs, GitHub token usage, SSL verification, custom logger, and custom HTTP client. ##### CI - Added CI coverage for Python 3.12, 3.13, 3.14, and 3.15.0-beta.1. - Stabilized Linux test runs with explicit `xvfb-run`. - Improved cross-platform test stability for Edge, IE, Opera, cache handling, and extraction race scenarios. *** </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/Berlin) - Branch creation - Between 12:00 AM and 05:59 AM, only on Monday (`* 0-5 * * 1`) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMi41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJjaSIsImRlcGVuZGVuY2llcyIsIm1pbm9yIiwicHl0aG9uIl19-->
fix(deps): update all non-major dependencies
Some checks failed
renovate/stability-days Updates have met minimum release age requirement
Test / test (pull_request) Failing after 23s
3d0a5522a5
Some checks failed
renovate/stability-days Updates have met minimum release age requirement
Test / test (pull_request) Failing after 23s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'renovate/all-minor-patch:renovate/all-minor-patch'
git switch 'renovate/all-minor-patch'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'renovate/all-minor-patch'
git switch 'renovate/all-minor-patch'
git rebase 'main'
git switch 'main'
git merge --ff-only 'renovate/all-minor-patch'
git switch 'renovate/all-minor-patch'
git rebase 'main'
git switch 'main'
git merge --no-ff 'renovate/all-minor-patch'
git switch 'main'
git merge --squash 'renovate/all-minor-patch'
git switch 'main'
git merge --ff-only 'renovate/all-minor-patch'
git switch 'main'
git merge 'renovate/all-minor-patch'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
dawid/rag-agent!116
No description provided.