Skip to content
This repository was archived by the owner on Jun 2, 2020. It is now read-only.

Conversation

@dependabot-preview
Copy link

Bumps attrs from 17.4.0 to 19.1.0.

Changelog

Sourced from attrs's changelog.

19.1.0 (2019-03-03)

Backward-incompatible Changes

  • Fixed a bug where deserialized objects with cache_hash=True could have incorrect hash code values. This change breaks classes with cache_hash=True when a custom __setstate__ is present. An exception will be thrown when applying the attrs annotation to such a class. This limitation is tracked in issue #494. #482

Changes

  • Add is_callable, deep_iterable, and deep_mapping validators.

    • is_callable: validates that a value is callable
    • deep_iterable: Allows recursion down into an iterable, applying another validator to every member in the iterable as well as applying an optional validator to the iterable itself.
    • deep_mapping: Allows recursion down into the items in a mapping object, applying a key validator and a value validator to the key and value in every item. Also applies an optional validator to the mapping object itself.

    You can find them in the attr.validators package. #425

  • Fixed stub files to prevent errors raised by mypy's disallow_any_generics = True option. #443

  • Attributes with init=False now can follow after kw_only=True attributes. #450

  • attrs now has first class support for defining exception classes.

    If you define a class using [@​attr.s](https://github.com/attr.s)(auto_exc=True) and subclass an exception, the class will behave like a well-behaved exception class including an appropriate __str__ method, and all attributes additionally available in an args attribute. #500

  • Clarified documentation for hashing to warn that hashable objects should be deeply immutable (in their usage, even if this is not enforced). #503


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

Changes

  • attrs now ships its own PEP 484 type hints. Together with mypy'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 about type annotations in attrs. #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, #411

  • The test suite now runs with hypothesis.HealthCheck.too_slow disabled to prevent CI breakage on slower computers. #364, #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

  • attr.asdict() now properly handles deeply nested lists and dictionaries. #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, #414

  • Fixed a reference leak where the original class would remain live after being replaced when slots=True is set. #407

  • Slotted classes can now be made weakly referenceable by passing [@&#8203;attr.s](https://github.com/attr.s)(weakref_slot=True). #420

... (truncated)
Commits
  • 0356f06 Prepare 19.1.0
  • 8b83ef7 Brandon got TLS now!
  • 0f453c6 Add a pointless line to newsfragment to trick towncrier
  • d74434f Ignore pip-wheel-metadata
  • 4b88f92 Remove _add_init
  • 25a98cb Implement first class exception support (#500)
  • a35d8fb fix and simplify docs CI
  • aa9f62f Use 3.7 for RTD
  • 4de9481 Exclude test_annotations from pypy3
  • 1fada3d Be consistent in calling slotted classes slotted
  • 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 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 17.4.0 to 19.1.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@17.4.0...19.1.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
@codecov
Copy link

codecov bot commented Mar 4, 2019

Codecov Report

Merging #28 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #28   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           5      5           
  Lines          52     52           
=====================================
  Hits           52     52

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 dbd619d...df7f3a0. Read the comment docs.

@dependabot-preview
Copy link
Author

Superseded by #53.

@dependabot-preview dependabot-preview bot deleted the dependabot/pip/attrs-19.1.0 branch October 2, 2019 05:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants