chore(deps): update dependency attrs to v22.2.0 #15

Open
renovate-bot wants to merge 1 commit from renovate/attrs-22.x into master
Member

This PR contains the following updates:

Package Update Change
attrs (changelog) minor ==22.1.0 -> ==22.2.0

Release Notes

python-attrs/attrs (attrs)

v22.2.0

Compare Source

Backwards-incompatible Changes
  • Python 3.5 is not supported anymore.
    #​988
Deprecations
  • Python 3.6 is now deprecated and support will be removed in the next release.
    #​1017
Changes
  • attrs.field() now supports an alias option for explicit __init__ argument names.

    Get __init__ signatures matching any taste, peculiar or plain!
    The PEP 681 compatible alias option can be use to override private attribute name mangling, or add other arbitrary field argument name overrides.
    #​950

  • attrs.NOTHING is now an enum value, making it possible to use with, for example, typing.Literal.
    #​983

  • Added missing re-import of attr.AttrsInstance to the attrs namespace.
    #​987

  • Fix slight performance regression in classes with custom __setattr__ and speedup even more.
    #​991

  • Class-creation performance improvements by switching performance-sensitive templating operations to f-strings.

    You can expect an improvement of about 5% -- even for very simple classes.
    #​995

  • attrs.has() is now a TypeGuard for AttrsInstance.
    That means that type checkers know a class is an instance of an attrs class if you check it using attrs.has() (or attr.has()) first.
    #​997

  • Made attrs.AttrsInstance stub available at runtime and fixed type errors related to the usage of attrs.AttrsInstance in Pyright.
    #​999

  • On Python 3.10 and later, call abc.update_abstractmethods() on dict classes after creation.
    This improves the detection of abstractness.
    #​1001

  • attrs's pickling methods now use dicts instead of tuples.
    That is safer and more robust across different versions of a class.
    #​1009

  • Added attrs.validators.not_(wrapped_validator) to logically invert wrapped_validator by accepting only values where wrapped_validator rejects the value with a ValueError or TypeError (by default, exception types configurable).
    #​1010

  • The type stubs for attrs.cmp_using() now have default values.
    #​1027

  • To conform with PEP 681, attr.s() and attrs.define() now accept unsafe_hash in addition to hash.
    #​1065


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.


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

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Update | Change | |---|---|---| | [attrs](https://github.com/python-attrs/attrs) ([changelog](https://www.attrs.org/en/stable/changelog.html)) | minor | `==22.1.0` -> `==22.2.0` | --- ### Release Notes <details> <summary>python-attrs/attrs (attrs)</summary> ### [`v22.2.0`](https://github.com/python-attrs/attrs/blob/HEAD/CHANGELOG.md#2220---2022-12-21) [Compare Source](https://github.com/python-attrs/attrs/compare/22.1.0...22.2.0) ##### Backwards-incompatible Changes - Python 3.5 is not supported anymore. [#&#8203;988](https://github.com/python-attrs/attrs/issues/988) ##### Deprecations - Python 3.6 is now deprecated and support will be removed in the next release. [#&#8203;1017](https://github.com/python-attrs/attrs/issues/1017) ##### Changes - `attrs.field()` now supports an *alias* option for explicit `__init__` argument names. Get `__init__` signatures matching any taste, peculiar or plain! The [PEP 681 compatible](https://peps.python.org/pep-0681/#field-specifier-parameters) *alias* option can be use to override private attribute name mangling, or add other arbitrary field argument name overrides. [#&#8203;950](https://github.com/python-attrs/attrs/issues/950) - `attrs.NOTHING` is now an enum value, making it possible to use with, for example, [`typing.Literal`](https://docs.python.org/3/library/typing.html#typing.Literal). [#&#8203;983](https://github.com/python-attrs/attrs/issues/983) - Added missing re-import of `attr.AttrsInstance` to the `attrs` namespace. [#&#8203;987](https://github.com/python-attrs/attrs/issues/987) - Fix slight performance regression in classes with custom `__setattr__` and speedup even more. [#&#8203;991](https://github.com/python-attrs/attrs/issues/991) - Class-creation performance improvements by switching performance-sensitive templating operations to f-strings. You can expect an improvement of about 5% -- even for very simple classes. [#&#8203;995](https://github.com/python-attrs/attrs/issues/995) - `attrs.has()` is now a [`TypeGuard`](https://docs.python.org/3/library/typing.html#typing.TypeGuard) for `AttrsInstance`. That means that type checkers know a class is an instance of an `attrs` class if you check it using `attrs.has()` (or `attr.has()`) first. [#&#8203;997](https://github.com/python-attrs/attrs/issues/997) - Made `attrs.AttrsInstance` stub available at runtime and fixed type errors related to the usage of `attrs.AttrsInstance` in *Pyright*. [#&#8203;999](https://github.com/python-attrs/attrs/issues/999) - On Python 3.10 and later, call [`abc.update_abstractmethods()`](https://docs.python.org/3/library/abc.html#abc.update_abstractmethods) on dict classes after creation. This improves the detection of abstractness. [#&#8203;1001](https://github.com/python-attrs/attrs/issues/1001) - *attrs*'s pickling methods now use dicts instead of tuples. That is safer and more robust across different versions of a class. [#&#8203;1009](https://github.com/python-attrs/attrs/issues/1009) - Added `attrs.validators.not_(wrapped_validator)` to logically invert *wrapped_validator* by accepting only values where *wrapped_validator* rejects the value with a `ValueError` or `TypeError` (by default, exception types configurable). [#&#8203;1010](https://github.com/python-attrs/attrs/issues/1010) - The type stubs for `attrs.cmp_using()` now have default values. [#&#8203;1027](https://github.com/python-attrs/attrs/issues/1027) - To conform with [PEP 681](https://peps.python.org/pep-0681/), `attr.s()` and `attrs.define()` now accept *unsafe_hash* in addition to *hash*. [#&#8203;1065](https://github.com/python-attrs/attrs/issues/1065) </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zODUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM4OC4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbInJlbm92YXRlLWJvdCJdfQ==-->
renovate-bot added the
renovate-bot
label 2024-06-04 10:24:38 +05:30
renovate-bot added 1 commit 2024-06-04 10:24:38 +05:30
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/attrs-22.x:renovate/attrs-22.x
git checkout renovate/attrs-22.x

Merge

Merge the changes and update on Forgejo.
git checkout master
git merge --no-ff renovate/attrs-22.x
git checkout master
git merge --ff-only renovate/attrs-22.x
git checkout renovate/attrs-22.x
git rebase master
git checkout master
git merge --no-ff renovate/attrs-22.x
git checkout master
git merge --squash renovate/attrs-22.x
git checkout master
git merge --ff-only renovate/attrs-22.x
git checkout master
git merge renovate/attrs-22.x
git push origin master
Sign in to join this conversation.
No description provided.