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

deps: update dependency attrs to v22.2.0 #2146

Merged

Conversation

renovate-bot
Copy link
Contributor

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
attrs (changelog) ==22.1.0 -> ==22.2.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

python-attrs/attrs (attrs)

v22.2.0

Compare Source

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


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


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

This PR has been generated by Mend Renovate. View repository job log here.

@renovate-bot renovate-bot requested a review from a team as a code owner October 16, 2023 18:52
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Oct 16, 2023
@trusted-contributions-gcf trusted-contributions-gcf bot added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Oct 16, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Oct 16, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 16, 2023
@sonarcloud
Copy link

sonarcloud bot commented Oct 16, 2023

[gapic-generator-java-root] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarcloud
Copy link

sonarcloud bot commented Oct 16, 2023

[java_showcase_integration_tests] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@lqiu96 lqiu96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 16, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 16, 2023
@lqiu96 lqiu96 added the automerge Merge the pull request once unit tests and other checks pass. label Oct 16, 2023
@gcf-merge-on-green gcf-merge-on-green bot merged commit 49d7f55 into googleapis:main Oct 16, 2023
33 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Oct 16, 2023
@renovate-bot renovate-bot deleted the renovate/attrs-22.x branch October 16, 2023 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants