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

Update dependency attrs to v20.3.0 #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Sep 5, 2020

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
attrs (source, changelog) ==20.1.0 -> ==20.3.0 age adoption passing confidence

Release Notes

python-attrs/attrs

v20.3.0

Compare Source

Backward-incompatible Changes
  • attr.define(), attr.frozen(), attr.mutable(), and attr.field() remain provisional.

    This release does not change anything about them and they are already used widely in production though.

    If you wish to use them together with mypy, you can simply drop this plugin into your project.

    Feel free to provide feedback to them in the linked issue #​668.

    We will release the attrs namespace once we have the feeling that the APIs have properly settled.
    #​668

Changes
  • attr.s() now has a field_transformer hook that is called for all Attributes and returns a (modified or updated) list of Attribute instances.
    attr.asdict() has a value_serializer hook that can change the way values are converted.
    Both hooks are meant to help with data (de-)serialization workflows.
    #​653
  • kw_only=True now works on Python 2.
    #​700
  • raise from now works on frozen classes on PyPy.
    #​703,
    #​712
  • attr.asdict() and attr.astuple() now treat frozensets like sets with regards to the retain_collection_types argument.
    #​704
  • The type stubs for attr.s() and attr.make_class() are not missing the collect_by_mro argument anymore.
    #​711

v20.2.0

Compare Source

Backward-incompatible Changes
  • attr.define(), attr.frozen(), attr.mutable(), and attr.field() remain provisional.

    This release fixes a bunch of bugs and ergonomics but they remain mostly unchanged.

    If you wish to use them together with mypy, you can simply drop this plugin into your project.

    Feel free to provide feedback to them in the linked issue #​668.

    We will release the attrs namespace once we have the feeling that the APIs have properly settled.
    #​668

Changes
  • attr.define() et al now correctly detect __eq__ and __ne__.
    #​671

  • attr.define() et al's hybrid behavior now also works correctly when arguments are passed.
    #​675

  • It's possible to define custom __setattr__ methods on slotted classes again.
    #​681

  • In 20.1.0 we introduced the inherited attribute on the attr.Attribute class to differentiate attributes that have been inherited and those that have been defined directly on the class.

    It has shown to be problematic to involve that attribute when comparing instances of attr.Attribute though, because when sub-classing, attributes from base classes are suddenly not equal to themselves in a super class.

    Therefore the inherited attribute will now be ignored when hashing and comparing instances of attr.Attribute.
    #​684

  • zope.interface is now a "soft dependency" when running the test suite; if zope.interface is not installed when running the test suite, the interface-related tests will be automatically skipped.
    #​685

  • The ergonomics of creating frozen classes using @define(frozen=True) and sub-classing frozen classes has been improved:
    you don't have to set on_setattr=None anymore.
    #​687



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 renovate bot force-pushed the renovate/attrs-20.x branch from fc87c32 to a9d7e91 Compare November 14, 2020 05:58
@renovate renovate bot changed the title Update dependency attrs to v20.2.0 Update dependency attrs to v20.3.0 Nov 14, 2020
@renovate
Copy link
Author

renovate bot commented Mar 23, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant