Skip to content

chore(deps-dev): Bump no-defaults from 2.0.0 to 2.1.0 - #3139

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/pip/no-defaults-2.1.0
Aug 11, 2026
Merged

chore(deps-dev): Bump no-defaults from 2.0.0 to 2.1.0#3139
github-actions[bot] merged 1 commit into
mainfrom
dependabot/pip/no-defaults-2.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 11, 2026

Copy link
Copy Markdown
Contributor

Bumps no-defaults from 2.0.0 to 2.1.0.

Release notes

Sourced from no-defaults's releases.

v2.1.0

What's Changed

Full Changelog: adamtheturtle/no-defaults@v2.0.0...v2.1.0

Changelog

Sourced from no-defaults's changelog.

2.1.0 - 2026-08-07

Anyone on 2.0.0 who uses --fix on a project containing .pyi stubs should upgrade: see the first entry under ### Fixed.

Added

  • --fix updates the construction sites of a dataclass whose base is a dataclass in the same file. The base's fields come first in the generated constructor, so Child() becomes Child(a=1, b=2) where a is the base's, and a subclass that removed nothing of its own still gets back the defaults its base lost. It stays narrow: one base only, because dataclasses walks the reverse MRO to order several; the base must be named directly and its own constructor fully known; and a name two classes share resolves to neither. Anything else keeps the existing warning.

Changed

  • A file whose fix would not have parsed is left alone by itself, rather than aborting the whole run with exit status 2 and writing nothing anywhere. One file this linter has a bug on no longer blocks fixing an entire project. The file is named in a warning, counted as remaining rather than fixed, and the run exits 1 with an accurate summary.

Fixed

  • A default that cannot be removed now keeps the defaults after it. Since 2.0.0 made = ... in a stub unfixable, a signature mixing it with an ordinary default was rewritten into def f(x: int = ..., y: int), which Python rejects — on the pinned Typeshed checkout that hit 175 files, and 2.0.0 aborted the whole run over it, fixing nothing anywhere. The dataclass form was worse: a: int = ... followed by a fixed b: int is valid syntax, so it was written out and raised TypeError: non-default argument 'b' follows default argument 'a' at import. Keyword-only parameters and fields are exempt, since order does not constrain them.

Documentation

  • The ## Performance section quotes measured 2.0.0 figures rather than 1.0.0 ones, gives full and concise side by side, and drops a caveat about full-output memory that the fixes to its quadratic behaviour made obsolete.
Commits
  • 1d2ff2e Prepare the 2.1.0 release (#83)
  • f3e194c Keep the defaults that follow one which cannot be removed (#82)
  • e022b2e Report call sites even when no default was removed (#80)
  • d933a43 Do not count a default in an unfixed file as removed (#79)
  • ad172a4 Refresh the performance figures for 2.0.0 (#78)
  • 9c4641a Inherit the fields of a base that is a dataclass in the same file (#77)
  • 43a5f70 Leave one unfixable file alone rather than aborting the run (#76)
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [no-defaults](https://github.com/adamtheturtle/no-defaults) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/adamtheturtle/no-defaults/releases)
- [Changelog](https://github.com/adamtheturtle/no-defaults/blob/main/CHANGELOG.md)
- [Commits](adamtheturtle/no-defaults@v2.0.0...v2.1.0)

---
updated-dependencies:
- dependency-name: no-defaults
  dependency-version: 2.1.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Aug 11, 2026
@dependabot
dependabot Bot deployed to development August 11, 2026 10:33 Active
@github-actions
github-actions Bot enabled auto-merge August 11, 2026 10:33
@github-actions
github-actions Bot merged commit eda8e11 into main Aug 11, 2026
13 checks passed
@github-actions
github-actions Bot deleted the dependabot/pip/no-defaults-2.1.0 branch August 11, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants