Skip to content

Commit

Permalink
deps: update dependency attrs to v22.2.0 (#2146)
Browse files Browse the repository at this point in the history
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [attrs](https://togithub.com/python-attrs/attrs) ([changelog](https://www.attrs.org/en/stable/changelog.html)) | `==22.1.0` -> `==22.2.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/attrs/22.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/attrs/22.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/attrs/22.1.0/22.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/attrs/22.1.0/22.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>python-attrs/attrs (attrs)</summary>

### [`v22.2.0`](https://togithub.com/python-attrs/attrs/blob/HEAD/CHANGELOG.md#2220---2022-12-21)

[Compare Source](https://togithub.com/python-attrs/attrs/compare/22.1.0...22.2.0)

##### Backwards-incompatible Changes

-   Python 3.5 is not supported anymore.
    [#&#8203;988](https://togithub.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://togithub.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://togithub.com/python-attrs/attrs/issues/950)
-   `attrs.NOTHING` is now an enum value, making it possible to use with e.g. [`typing.Literal`](https://docs.python.org/3/library/typing.html#typing.Literal).
    [#&#8203;983](https://togithub.com/python-attrs/attrs/issues/983)
-   Added missing re-import of `attr.AttrsInstance` to the `attrs` namespace.
    [#&#8203;987](https://togithub.com/python-attrs/attrs/issues/987)
-   Fix slight performance regression in classes with custom `__setattr__` and speedup even more.
    [#&#8203;991](https://togithub.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://togithub.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://togithub.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://togithub.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://togithub.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://togithub.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://togithub.com/python-attrs/attrs/issues/1010)
-   The type stubs for `attrs.cmp_using()` now have default values.
    [#&#8203;1027](https://togithub.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://togithub.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 [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/sdk-platform-java).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xOS4yIiwidXBkYXRlZEluVmVyIjoiMzcuMTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
  • Loading branch information
renovate-bot committed Oct 16, 2023
1 parent db37d5b commit 49d7f55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .kokoro/requirements.txt
Expand Up @@ -4,9 +4,9 @@
#
# pip-compile --generate-hashes .kokoro/requirements.in
#
attrs==22.1.0 \
--hash=sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 \
--hash=sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c
attrs==22.2.0 \
--hash=sha256:29e95c7f6778868dbd49170f98f8818f78f3dc5e0e37c0b1f474e3561b240836 \
--hash=sha256:c9227bfc2f01993c03f68db37d1d15c9690188323c067c641f1a35ca58185f99
# via gcp-releasetool
cachetools==4.2.4 \
--hash=sha256:89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693 \
Expand Down

0 comments on commit 49d7f55

Please sign in to comment.