Skip to content

Conversation

dependabot-preview[bot]
Copy link

Bumps attrs from 17.3.0 to 18.1.0.

Changelog

Sourced from attrs's changelog.

18.1.0 (2018-05-03)

Changes
^^^^^^^

  • x=X(); x.cycle = x; repr(x) will no longer raise a RecursionError, and will instead show as X(x=...).

    #95 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/95>_

  • attr.ib(factory=f) is now syntactic sugar for the common case of attr.ib(default=attr.Factory(f)).

    #178 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/178>,
    #356 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/356>

  • Added attr.field_dict() to return an ordered dictionary of attrs attributes for a class, whose keys are the attribute names.

    #290 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/290>,
    #349 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/349>

  • The order of attributes that are passed into attr.make_class() or the these argument of [**attr**](https://github.com/attr).s() is now retained if the dictionary is ordered (i.e. dict on Python 3.6 and later, collections.OrderedDict otherwise).

    Before, the order was always determined by the order in which the attributes have been defined which may not be desirable when creating classes programatically.

    #300 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/300>,
    #339 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/339>
    ,
    #343 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/343>_

  • In slotted classes, __getstate__ and __setstate__ now ignore the __weakref__ attribute.

    #311 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/311>,
    #326 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/326>

  • Setting the cell type is now completely best effort.
    This fixes attrs on Jython.

    We cannot make any guarantees regarding Jython though, because our test suite cannot run due to dependency incompatabilities.

    #321 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/321>,
    #334 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/334>

  • If attr.s is passed a these argument, it will not attempt to remove attributes with the same name from the class body anymore.

    #322 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/322>,
    #323 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/323>

  • The hash of attr.NOTHING is now vegan and faster on 32bit Python builds.

    #331 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/331>,
    #332 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/332>

  • The overhead of instantiating frozen dict classes is virtually eliminated.
    #336 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/336>_

  • Generated __init__ methods now have an __annotations__ attribute derived from the types of the fields.

    #363 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/363>_

  • We have restructured the documentation a bit to account for attrs' growth in scope.
    Instead of putting everything into the examples <http://www.attrs.org/en/stable/examples.html>_ page, we have started to extract narrative chapters.

... (truncated)
Commits

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 ignore this [minor|major] version will close this PR and stop Dependabot creating any more for this minor/major 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 use [this|these] label[s] will set the current labels as the default for future PRs for this repo and language

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

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

Successfully merging this pull request may close these issues.

1 participant