Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency attrs to v21.4.0 #207

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Apr 27, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
attrs (changelog) ==21.2.0 -> ==21.4.0 age adoption passing confidence

Release Notes

python-attrs/attrs

v21.4.0

Compare Source

Changes
  • Fixed the test suite on PyPy3.8 where cloudpickle does not work.
    #​892
  • Fixed coverage report for projects that use attrs and don't set a --source.
    #​895,
    #​896

v21.3.0

Compare Source

Backward-incompatible Changes
  • When using @define, converters are now run by default when setting an attribute on an instance -- additionally to validators.
    I.e. the new default is on_setattr=[attrs.setters.convert, attrs.setters.validate].

    This is unfortunately a breaking change, but it was an oversight, impossible to raise a DeprecationWarning about, and it's better to fix it now while the APIs are very fresh with few users.
    #​835,
    #​886

  • import attrs has finally landed!
    As of this release, you can finally import attrs using its proper name.

    Not all names from the attr namespace have been transferred; most notably attr.s and attr.ib are missing.
    See attrs.define and attrs.field if you haven't seen our next-generation APIs yet.
    A more elaborate explanation can be found On The Core API Names

    This feature is at least for one release provisional.
    We don't plan on changing anything, but such a big change is unlikely to go perfectly on the first strike.

    The API docs have been mostly updated, but it will be an ongoing effort to change everything to the new APIs.
    Please note that we have not moved -- or even removed -- anything from attr!

    Please do report any bugs or documentation inconsistencies!
    #​887

Changes
  • attr.asdict(retain_collection_types=False) (default) dumps collection-esque keys as tuples.
    #​646,
    #​888
  • __match_args__ are now generated to support Python 3.10's
    Structural Pattern Matching.
    This can be controlled by the match_args argument to the class decorators on Python 3.10 and later.
    On older versions, it is never added and the argument is ignored.
    #​815
  • If the class-level on_setattr is set to attrs.setters.validate (default in @define and @mutable) but no field defines a validator, pretend that it's not set.
    #​817
  • The generated __repr__ is significantly faster on Pythons with f-strings.
    #​819
  • Attributes transformed via field_transformer are wrapped with AttrsClass again.
    #​824
  • Generated source code is now cached more efficiently for identical classes.
    #​828
  • Added attrs.converters.to_bool().
    #​830
  • attrs.resolve_types() now resolves types of subclasses after the parents are resolved.
    #​842
    #​843
  • Added new validators: lt(val) (< val), le(va) (≤ val), ge(val) (≥ val), gt(val) (> val), and maxlen(n).
    #​845
  • attrs classes are now fully compatible with cloudpickle (no need to disable repr anymore).
    #​857
  • Added new context manager attrs.validators.disabled() and functions attrs.validators.(set|get)_disabled().
    They deprecate attrs.(set|get)_run_validators().
    All functions are interoperable and modify the same internal state.
    They are not – and never were – thread-safe, though.
    #​859
  • attrs.validators.matches_re() now accepts pre-compiled regular expressions in addition to pattern strings.
    #​877


Configuration

📅 Schedule: Branch creation - "before 2am" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from billsioros as a code owner April 27, 2023 00:05
@renovate renovate bot added the 🎲 dependencies Working on dependencies label Apr 27, 2023
@stale
Copy link

stale bot commented May 4, 2023

This issue has been marked stale, as it had no activity in the last 7 days. If the issue remains stale for an additional 7 days (a total of two weeks with no activity), it will be automatically closed.

@stale stale bot added the 💀 stale This had no recent activity label May 4, 2023
@stale
Copy link

stale bot commented May 11, 2023

Closing the issue due to inactivity.

@stale stale bot closed this May 11, 2023
@renovate
Copy link
Author

renovate bot commented May 11, 2023

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (==21.4.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/attrs-21.x branch May 11, 2023 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎲 dependencies Working on dependencies 💀 stale This had no recent activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants