Skip to content

Bump attrs from 16.3.0 to 18.2.0#8

Closed
dependabot-preview[bot] wants to merge 1 commit into
developfrom
dependabot/pip/develop/attrs-18.2.0
Closed

Bump attrs from 16.3.0 to 18.2.0#8
dependabot-preview[bot] wants to merge 1 commit into
developfrom
dependabot/pip/develop/attrs-18.2.0

Conversation

@dependabot-preview
Copy link
Copy Markdown

Bumps attrs from 16.3.0 to 18.2.0.

Release notes

Sourced from attrs's releases.

Minor typo in docs

No code changes, no new distributions.

Changelog

Sourced from attrs's changelog.

18.2.0 (2018-09-01)

Deprecations
^^^^^^^^^^^^

  • Comparing subclasses using <, >, <=, and >= is now deprecated.
    The docs always claimed that instances are only compared if the types are identical, so this is a first step to conform to the docs.

    Equality operators (== and !=) were always strict in this regard.
    #394 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/394>_

Changes
^^^^^^^

  • attrs now ships its own PEP 484 <https://www.python.org/dev/peps/pep-0484/>_ type hints.
    Together with mypy <http://mypy-lang.org>_'s attrs plugin, you've got all you need for writing statically typed code in both Python 2 and 3!

    At that occasion, we've also added narrative docs <https://www.attrs.org/en/stable/types.html>_ about type annotations in attrs.
    #238 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/238>_

  • Added kw_only arguments to attr.ib and attr.s, and a corresponding kw_only attribute to attr.Attribute.
    This change makes it possible to have a generated __init__ with keyword-only arguments on Python 3, relaxing the required ordering of default and non-default valued attributes.
    #281 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/281>,
    #411 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/411>

  • The test suite now runs with hypothesis.HealthCheck.too_slow disabled to prevent CI breakage on slower computers.
    #364 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/364>,
    #396 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/396>

  • attr.validators.in_() now raises a ValueError with a useful message even if the options are a string and the value is not a string.
    #383 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/383>_

  • attr.asdict() now properly handles deeply nested lists and dictionaries.
    #395 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/395>_

  • Added attr.converters.default_if_none() that allows to replace None values in attributes.
    For example attr.ib(converter=default_if_none("")) replaces None by empty strings.
    #400 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/400>,
    #414 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/414>

  • Fixed a reference leak where the original class would remain live after being replaced when slots=True is set.
    #407 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/407>_

  • Slotted classes can now be made weakly referenceable by passing [**attr**](https://github.com/attr).s(weakref_slot=True).
    #420 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/420>_

  • Added cache_hash option to [**attr**](https://github.com/attr).s which causes the hash code to be computed once and stored on the object.
    #425 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/425>_

  • Attributes can be named property and itemgetter now.
    #430 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/430>_

  • It is now possible to override a base class' class variable using only class annotations.
    #431 <https://github-redirect.dependabot.com/python-attrs/attrs/issues/431>_


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


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

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 cancel merge will cancel a previously requested merge
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot ignore this [patch|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 these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

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)
  • Pull request limits (per update run and/or open at any time)
  • 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.

Bumps [attrs](https://github.com/python-attrs/attrs) from 16.3.0 to 18.2.0.
- [Release notes](https://github.com/python-attrs/attrs/releases)
- [Changelog](https://github.com/python-attrs/attrs/blob/master/CHANGELOG.rst)
- [Commits](python-attrs/attrs@16.3.0...18.2.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview Bot added the dependencies Pull requests that update a dependency file label Nov 18, 2018
@dependabot-preview
Copy link
Copy Markdown
Author

Superseded by #27.

@dependabot-preview dependabot-preview Bot deleted the dependabot/pip/develop/attrs-18.2.0 branch March 4, 2019 10:18
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