Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump attrs from 22.1.0 to 22.2.0 #2509

Merged
merged 1 commit into from
Jan 17, 2023
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 21, 2022

Bumps attrs from 22.1.0 to 22.2.0.

Release notes

Sourced from attrs's releases.

22.2.0

Highlights

It's been a lot busier than the changelog indicates, but a lot of the work happened under the hood (like some impressive performance improvements). But we've got still one big new feature that's are worthy the holidays:

Fields now have an alias argument that allows you to set the field's name in the generated __init__ method. This is especially useful for those who aren't fans of attrs's behavior of stripping underscores from private attribute names.

Special Thanks

This release would not be possible without my generous sponsors! Thank you to all of you making sustainable maintenance possible! If you would like to join them, go to https://github.com/sponsors/hynek and check out the sweet perks!

Above and Beyond

Variomedia AG (@​variomedia), Tidelift (@​tidelift), Sentry (@​getsentry), HiredScore (@​HiredScore), FilePreviews (@​filepreviews), and Daniel Fortunov (@​asqui).

Maintenance Sustainers

@​rzijp, Adam Hill (@​adamghill), Dan Groshev (@​si14), Tamir Bahar (@​tmr232), Adi Roiban (@​adiroiban), Magnus Watn (@​magnuswatn), David Cramer (@​dcramer), Moving Content AG (@​moving-content), Stein Magnus Jodal (@​jodal), Iwan Aucamp (@​aucampia), ProteinQure (@​ProteinQure), Jesse Snyder (@​jessesnyder), Rivo Laks (@​rivol), Thomas Ballinger (@​thomasballinger), @​medecau, Ionel Cristian Mărieș (@​ionelmc), The Westervelt Company (@​westerveltco), Philippe Galvan (@​PhilippeGalvan), Birk Jernström (@​birkjernstrom), Jannis Leidel (@​jezdez), Tim Schilling (@​tim-schilling), Chris Withers (@​cjw296), and Christopher Dignam (@​chdsbd).

Not to forget 2 more amazing humans who chose to be generous but anonymous!

Full Changlog

Backwards-incompatible Changes

  • Python 3.5 is not supported anymore. #988

Deprecations

  • Python 3.6 is now deprecated and support will be removed in the next release. #1017

Changes

  • attrs.field() now supports an alias option for explicit __init__ argument names.

    Get __init__ signatures matching any taste, peculiar or plain! The PEP 681 compatible alias option can be use to override private attribute name mangling, or add other arbitrary field argument name overrides. #950

  • attrs.NOTHING is now an enum value, making it possible to use with e.g. typing.Literal. #983

  • Added missing re-import of attr.AttrsInstance to the attrs namespace. #987

  • Fix slight performance regression in classes with custom __setattr__ and speedup even more. #991

  • Class-creation performance improvements by switching performance-sensitive templating operations to f-strings.

    You can expect an improvement of about 5% -- even for very simple classes. #995

... (truncated)

Changelog

Sourced from attrs's changelog.

22.2.0 - 2022-12-21

Backwards-incompatible Changes

  • Python 3.5 is not supported anymore. #988

Deprecations

  • Python 3.6 is now deprecated and support will be removed in the next release. #1017

Changes

  • attrs.field() now supports an alias option for explicit __init__ argument names.

    Get __init__ signatures matching any taste, peculiar or plain! The PEP 681 compatible alias option can be use to override private attribute name mangling, or add other arbitrary field argument name overrides. #950

  • attrs.NOTHING is now an enum value, making it possible to use with e.g. typing.Literal. #983

  • Added missing re-import of attr.AttrsInstance to the attrs namespace. #987

  • Fix slight performance regression in classes with custom __setattr__ and speedup even more. #991

  • Class-creation performance improvements by switching performance-sensitive templating operations to f-strings.

    You can expect an improvement of about 5% -- even for very simple classes. #995

  • attrs.has() is now a TypeGuard for AttrsInstance. That means that type checkers know a class is an instance of an attrs class if you check it using attrs.has() (or attr.has()) first. #997

  • Made attrs.AttrsInstance stub available at runtime and fixed type errors related to the usage of attrs.AttrsInstance in Pyright. #999

  • On Python 3.10 and later, call abc.update_abstractmethods() on dict classes after creation. This improves the detection of abstractness. #1001

  • attrs's pickling methods now use dicts instead of tuples. That is safer and more robust across different versions of a class. #1009

  • Added attrs.validators.not_(wrapped_validator) to logically invert wrapped_validator by accepting only values where wrapped_validator rejects the value with a ValueError or TypeError (by default, exception types configurable). #1010

  • The type stubs for attrs.cmp_using() now have default values. #1027

  • To conform with PEP 681, attr.s() and attrs.define() now accept unsafe_hash in addition to hash. #1065

Commits
  • a9960de Prepare 22.2.0
  • 566248a Don't linkcheck tree links
  • 0f62805 Make towncrier marker independent from warning
  • b9f35eb Fix minor stub issues (#1072)
  • 4ad4ea0 Use MyST-native include
  • 519423d Use MyST-native doctest blocks in all MD
  • 403adab Remove stray file
  • 6957e4a Use new typographic branding in the last rst file, too
  • 1bb2864 Convert examples.rst to md
  • c1c24cc Convert glossary.rst to md
  • Additional commits viewable 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Dec 21, 2022
@codecov
Copy link

codecov bot commented Dec 21, 2022

Codecov Report

Merging #2509 (5031655) into master (91a1350) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2509   +/-   ##
=======================================
  Coverage   92.46%   92.46%           
=======================================
  Files         118      118           
  Lines       16327    16327           
  Branches     3156     3156           
=======================================
  Hits        15096    15096           
  Misses       1103     1103           
  Partials      128      128           

@A5rocks
Copy link
Contributor

A5rocks commented Dec 25, 2022

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/pip/attrs-22.2.0 branch from 48900ab to 171c45f Compare December 25, 2022 01:40
@A5rocks
Copy link
Contributor

A5rocks commented Dec 25, 2022

Rebasing one more time so hopefully the alpine CI actually kicks in. It hasn't done so the last 2 times. @dependabot rebase

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 25, 2022

Looks like this PR is already up-to-date with master! If you'd still like to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@A5rocks
Copy link
Contributor

A5rocks commented Dec 25, 2022

@dependabot recreate

Bumps [attrs](https://github.com/python-attrs/attrs) from 22.1.0 to 22.2.0.
- [Release notes](https://github.com/python-attrs/attrs/releases)
- [Changelog](https://github.com/python-attrs/attrs/blob/main/CHANGELOG.md)
- [Commits](python-attrs/attrs@22.1.0...22.2.0)

---
updated-dependencies:
- dependency-name: attrs
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/attrs-22.2.0 branch from 171c45f to 5031655 Compare December 25, 2022 18:08
@A5rocks A5rocks closed this Dec 28, 2022
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 28, 2022

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@A5rocks A5rocks reopened this Dec 28, 2022
@A5rocks A5rocks enabled auto-merge January 17, 2023 14:01
@A5rocks A5rocks merged commit 4286063 into master Jan 17, 2023
@dependabot dependabot bot deleted the dependabot/pip/attrs-22.2.0 branch January 17, 2023 14:07
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant