Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 5, 2020

Bumps attrs from 19.3.0 to 20.3.0.

Release notes

Sourced from attrs's releases.

20.3.0

Backward-incompatible Changes

  • attr.define(), attr.frozen(), attr.mutable(), and attr.field() remain provisional.

    This release does not change 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

20.2.0

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 correct 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.

... (truncated)

Changelog

Sourced from attrs's changelog.

20.3.0 (2020-11-05)

Backward-incompatible Changes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  • attr.define(), attr.frozen(), attr.mutable(), and attr.field() remain provisional.

    This release does not change 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 <https://gist.github.com/hynek/1e3844d0c99e479e716169034b5fa963#file-attrs_ng_plugin-py>_ 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](https://github.com/python-attrs/attrs/issues/668) <https://github.com/python-attrs/attrs/issues/668>_

Changes ^^^^^^^

  • attr.s() now has a field_transformer hook that is called for all Attribute\ s 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](https://github.com/python-attrs/attrs/issues/653) <https://github.com/python-attrs/attrs/issues/653>_
  • kw_only=True now works on Python 2. [#700](https://github.com/python-attrs/attrs/issues/700) <https://github.com/python-attrs/attrs/issues/700>_
  • raise from now works on frozen classes on PyPy. [#703](https://github.com/python-attrs/attrs/issues/703) <https://github.com/python-attrs/attrs/issues/703>, [#712](https://github.com/python-attrs/attrs/issues/712) <https://github.com/python-attrs/attrs/issues/712>
  • attr.asdict() and attr.astuple() now treat frozenset\ s like set\ s with regards to the retain_collection_types argument. [#704](https://github.com/python-attrs/attrs/issues/704) <https://github.com/python-attrs/attrs/issues/704>_
  • The type stubs for attr.s() and attr.make_class() are not missing the collect_by_mro argument anymore. [#711](https://github.com/python-attrs/attrs/issues/711) <https://github.com/python-attrs/attrs/issues/711>_

20.2.0 (2020-09-05)

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 <https://gist.github.com/hynek/1e3844d0c99e479e716169034b5fa963#file-attrs_ng_plugin-py>_ into your project.

... (truncated)

Commits
  • f3762ba Prepare 20.3.0
  • 3d66e57 Exclude GitHub issues from linkcheck to avoid rate limits
  • 06d0f8e Add funding URLs to metadata
  • d23924f Add provisional notice
  • cd2f886 Use 'i' and 'k' to better distinguish variables in an example (#713)
  • f2dabea Fix exception chaining on PyPy (#712)
  • 6b4a1f1 Tighten up mypy configuration
  • 9f7d11e Add types to collect_by_mro annotations m(
  • 7020c8b pre-commit autoupdate
  • 56c7308 Add missing collect_by_mro to typing stubs
  • 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 Nov 5, 2020
@dependabot dependabot bot force-pushed the dependabot/pip/attrs-20.3.0 branch 2 times, most recently from 24f4d9f to 11eb084 Compare November 12, 2020 16:30
@jtrh
Copy link
Contributor

jtrh commented Dec 15, 2020

@dependabot recreate

@dependabot dependabot bot force-pushed the dependabot/pip/attrs-20.3.0 branch from 11eb084 to bcef64a Compare December 15, 2020 19:06
@codecov-io
Copy link

codecov-io commented Dec 15, 2020

Codecov Report

Merging #156 (bcef64a) into develop (6dce7a9) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #156   +/-   ##
========================================
  Coverage    78.26%   78.26%           
========================================
  Files           26       26           
  Lines         1725     1725           
  Branches       279      279           
========================================
  Hits          1350     1350           
  Misses         255      255           
  Partials       120      120           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6dce7a9...bcef64a. Read the comment docs.

@dependabot dependabot bot force-pushed the dependabot/pip/attrs-20.3.0 branch from bcef64a to bc7d8c9 Compare December 15, 2020 19:19
@jtrh jtrh self-assigned this Dec 15, 2020
@jtrh
Copy link
Contributor

jtrh commented Dec 15, 2020

@dependabot recreate

@dependabot dependabot bot force-pushed the dependabot/pip/attrs-20.3.0 branch from bc7d8c9 to 592d1c5 Compare December 15, 2020 19:33
@jtrh jtrh requested a review from glarrain December 15, 2020 19:44
@jtrh jtrh merged commit 5a28009 into develop Dec 15, 2020
@jtrh jtrh deleted the dependabot/pip/attrs-20.3.0 branch December 15, 2020 19:44
@jtrh jtrh mentioned this pull request Dec 16, 2020
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.

3 participants