Update dependency attrs to v18.2.0 #18
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==18.1.0->==18.2.0Release Notes
python-attrs/attrs (attrs)
v18.2.0Compare Source
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
attrsnow ships its own PEP 484 type hints.Together with mypy's
attrsplugin, 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.ibandattr.s, and a corresponding kw_only attribute toattr.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_slowdisabled to prevent CI breakage on slower computers.#364,
#396
attr.validators.in_()now raises aValueErrorwith 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 replaceNonevalues in attributes.For example
attr.ib(converter=default_if_none(""))replacesNoneby empty strings.#400,
#414
Fixed a reference leak where the original class would remain live after being replaced when
slots=Trueis set.#407
Slotted classes can now be made weakly referenceable by passing
@attr.s(weakref_slot=True).#420
Added cache_hash option to
@attr.swhich causes the hash code to be computed once and stored on the object.#426
Attributes can be named
propertyanditemgetternow.#430
It is now possible to override a base class' class variable using only class annotations.
#431
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.
This PR was generated by Mend Renovate. View the repository job log.