Update dependency attrs to v19.3.0 #29
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:
==19.1.0→==19.3.0Release Notes
python-attrs/attrs (attrs)
v19.3.0Compare Source
Changes
auto_attribsusage when default values cannot be compared directly with==, such asnumpyarrays.#585
v19.2.0Compare Source
Backward-incompatible Changes
Removed deprecated
Attributeattributeconvertper scheduled removal on 2019/1.This planned deprecation is tracked in issue #307.
#504
__lt__,__le__,__gt__, and__ge__do not consider subclasses comparable anymore.This has been deprecated since 18.2.0 and was raising a
DeprecationWarningfor over a year.#570
Deprecations
The
cmpargument toattr.s()andattr.ib()is now deprecated.Please use
eqto add equality methods (__eq__and__ne__) andorderto add ordering methods (__lt__,__le__,__gt__, and__ge__) instead – just like with dataclasses.Both are effectively
Trueby default but it's enough to seteq=Falseto disable both at once.Passing
eq=False, order=Trueexplicitly will raise aValueErrorthough.Since this is arguably a deeper backward-compatibility break, it will have an extended deprecation period until 2021-06-01.
After that day, the
cmpargument will be removed.attr.Attributealso isn't orderable anymore.#574
Changes
attr.validators.__all__to include new validators added in [#425].#517
__class__cell when rebuilding the class, sosuper()works even on environments wherectypesis not installed.#522
@attr.s(auto_attribs=True), attributes with a default ofNoneare now deleted too.#523,
#556
attr.validators.deep_iterable()andattr.validators.deep_mapping()type stubs.#533
attr.validators.is_callable()validator now raises an exceptionattr.exceptions.NotCallableError, a subclass ofTypeError, informing the received value.#536
@attr.s(auto_exc=True)now generates classes that are hashable by ID, as the documentation always claimed it would.#543,
#563
attr.validators.matches_re()that checks string attributes whether they match a regular expression.#552
kw_only=True) and attributes that are excluded from theattrs's__init__(init=False) now can appear before mandatory attributes.#559
It won't change when you restart the process.
#560
@attr.ib(repr=…)can now be either a boolean (as before) or a callable.That callable must return a string and is then used for formatting the attribute by the generated
__repr__()method.#568
attr.__version_info__that can be used to reliably check the version ofattrsand write forward- and backward-compatible code.Please check out the section on deprecated APIs on how to use it.
#580
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.