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

Add attrs namespace #887

Merged
merged 14 commits into from Dec 25, 2021
Merged

Add attrs namespace #887

merged 14 commits into from Dec 25, 2021

Conversation

hynek
Copy link
Member

@hynek hynek commented Dec 15, 2021

Summary

ROCK’N’ROLL

Fixes #487, fixes #705,

I don't think it's practical to already update all the docs to the new namespace. Especially since it's provisional for now.

Pull Request Check List

  • Added tests for changed code.
  • New features have been added to our Hypothesis testing strategy.
  • Changes or additions to public APIs are reflected in our type stubs (files ending in .pyi).
    • ...and used in the stub test file tests/typing_example.py.
  • Updated documentation for changed code.
    • New functions/classes have to be added to docs/api.rst by hand.
    • Changes to the signature of @attr.s() have to be added by hand too.
    • Changed/added classes/methods/functions have appropriate versionadded, versionchanged, or deprecated directives. Find the appropriate next version in our __init__.py file.
  • Documentation in .rst files is written using semantic newlines.
  • Changes (and possible deprecations) have news fragments in changelog.d.

@hynek
Copy link
Member Author

hynek commented Dec 15, 2021

collapses on the floor

pls someone have mercy and a look 🐶🥺

@hynek hynek force-pushed the import-attrs branch 2 times, most recently from 57d6ea9 to a6a4f79 Compare December 17, 2021 07:20
@@ -447,6 +447,7 @@ def make_class(
# these:
# https://github.com/python/mypy/issues/4236
# https://github.com/python/typing/issues/253
# XXX: remember to fix attrs.asdict/astuple too!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this for now or for later?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

later – its referring to the changes to mypy/typing that once they're done, we need to fix both places :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack, i wondered since both links point to closed issues

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope sOmEoNe tackles it then 😇

@Tinche
Copy link
Member

Tinche commented Dec 18, 2021

If attrs is the future, shouldn't we move all the code over there and import it in attr?

@hynek
Copy link
Member Author

hynek commented Dec 18, 2021

If attrs is the future, shouldn't we move all the code over there and import it in attr?

Technically yes, but that would be a breaking change whose blast radius I can't fathom.

This way, even MyPy keeps working out of the box.

@Tinche
Copy link
Member

Tinche commented Dec 20, 2021

>>> from attrs.converters import optional
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'attrs.converters'

@hynek
Copy link
Member Author

hynek commented Dec 20, 2021

ugh crap, I guess we have to mirror all packages into the new namespace?

@hynek
Copy link
Member Author

hynek commented Dec 20, 2021

fe3c53e is ugly but should do the job?

@hynek
Copy link
Member Author

hynek commented Dec 20, 2021

I played with reveal_type and it seems to work? Did they improve or am I missing something?

@wbolster
Copy link
Member

ah ok, i think the separate .pyi file makes it work in this case.

in general, i don't think it works well with (modern) embedded annotations directly in the source code.

@hynek
Copy link
Member Author

hynek commented Dec 20, 2021

I'm open to suggestions for improvement, but one more repetition would mean one more place we could forget about. :-/

@euresti
Copy link
Contributor

euresti commented Dec 20, 2021

Do you need the pyi file or would mypy pick up the types from the py file?

@hynek
Copy link
Member Author

hynek commented Dec 20, 2021

We need overloads, so I'm reasonably sure we need pyi files?

@wbolster
Copy link
Member

imho, as a mostly bystander and casual contributor (aka ignore me), doing these things at the same time would be perfect timing: 🙃

  • introducing new package name attrs
  • becoming py37+ only (only supported pythons from next week)

…but i suspect you may hold different opinions on that, based on py2 notes in the docs

@hynek
Copy link
Member Author

hynek commented Dec 20, 2021

While that would solve other pain points, overloads are AFAIK something that you need stub files for still. :)

@wbolster
Copy link
Member

We need overloads, so I'm reasonably sure we need pyi files?

overloads work fine in source code, see e.g.
https://github.com/wbolster/jsonlines/blob/master/jsonlines/jsonlines.py

@euresti
Copy link
Contributor

euresti commented Dec 20, 2021

Yeah. We could definitely move the stubs into the py files. Though attrs has quite a bit of "fake" types that we wouldn't want mypy checking. It could be an interesting project.

@euresti
Copy link
Contributor

euresti commented Dec 20, 2021

Is the expectation that import attr is frozen and will not be receiving any new features that import attrs might be? Or is anything available in attrs gonna be available in attr?

@wbolster
Copy link
Member

Though attrs has quite a bit of "fake" types that we wouldn't want mypy checking.

@typing.type_check_only may help here: docs

@hynek
Copy link
Member Author

hynek commented Dec 21, 2021

This all sounds very promising, but this diff is already way too big. Can I somehow convince y'all to help me with inline types for the next release?

attrs 2.7 downloads seem to be down to 2.22% so I might change my mind soon-ish:

category percent downloads
3.7 40.10% 19,465,561
3.8 21.25% 10,315,653
3.6 12.75% 6,189,331
null 10.43% 5,063,048
3.9 9.15% 4,442,703
2.7 2.22% 1,079,185
3.10 2.06% 998,378
3.5 2.01% 974,174
3.4 0.03% 13,247
3.11 0.01% 3,357
2.6 0.00% 8
3.3 0.00% 6
3.2 0.00% 4
Total 48,544,655

Date range: 2021-12-01 - 2021-12-20

@Tinche
Copy link
Member

Tinche commented Dec 21, 2021

I'm going to follow attrs lead in cattrs (big surprise), and have a PR ready. What do I say in the changelog though? Are we recommending new code to import from attrs/cattrs instead? Do we ever plan on removing attr/cattr?

@hynek
Copy link
Member Author

hynek commented Dec 22, 2021

Well, you can see what I've said in https://github.com/python-attrs/attrs/pull/887/files#diff-826ab996c410e75f5930990d312d073db10300312fc9fabe2f01fb327a007bde

I'm leaving it provisional for one release, but I think changing the docs to primarily use the new APIs is a strong indicator. ;)

Since we had almost 90 million downloads per month with attr in Place, I don't remove it, ever. I think I'll eventually switch the import direction but that's it. 🤔

@hynek hynek enabled auto-merge (squash) December 25, 2021 14:14
@hynek hynek disabled auto-merge December 25, 2021 14:15
@hynek hynek merged commit e734558 into main Dec 25, 2021
@hynek hynek deleted the import-attrs branch December 25, 2021 14:15
@hynek
Copy link
Member Author

hynek commented Dec 25, 2021

I don't think I can make anyone review a +830/-368 PR so here we go and let's hope for the best. Merry Xmas to me. 🤪

bors bot added a commit to ChrisRBe/PP-P2P-Parser that referenced this pull request Dec 28, 2021
465: build(deps): bump attrs from 21.2.0 to 21.3.0 r=ChrisRBe a=dependabot[bot]

Bumps [attrs](https://github.com/python-attrs/attrs) from 21.2.0 to 21.3.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/python-attrs/attrs/releases">attrs's releases</a>.</em></p>
<blockquote>
<h2>21.3.0</h2>
<p>This is a big release in the history of <code>attrs</code> and finishes an arc that took way too long and also delayed this very overdue release. But it's done: <code>import attrs</code> that has been talked about for years[^issue], but fell victim to “just this one more thing” has <em>finally</em> landed.</p>
<p>From now on, modern <code>attrs</code> code looks like this:</p>
<pre lang="python"><code>from attrs import define
<p><a href="https://github.com/define"><code>`@​define</code></a>`
class HelloWorld:
modern: bool = True
</code></pre></p>
<p>The <code>define</code>/<code>field</code> APIs have been around for over a year and were very popular, now the rest of the package followed suit. I'm very excited that <code>attrs</code> remains relevant and keeps evolving over now more than half a decade. If you're curious about some of the background, the docs now contain a short <a href="https://www.attrs.org/en/stable/names.html">explanation and history lesson</a>. As long as our users keep pushing us, we will keep pushing forward class generation in Python!</p>
<p>Big thanks to my <a href="https://github.com/sponsors/hynek/dashboard">GitHub Sponsors</a>, <a href="https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&amp;utm_medium=referral&amp;utm_campaign=enterprise&amp;utm_term=repo">Tidelift subscribers</a>, and <a href="https://ko-fi.com/the_hynekl">Ko-fi buyers</a> that help me mustering the motivation for such long-running project!</p>
<hr />
<p>Since the release took so long, there's more highlights than we can enumerate here, we'd just like to point out a breaking change in the new APIs: converters now run on setting attributes by default. If this is causing problems to you, you can disable that behavior by setting <code>`@define(on_setattr=[])</code>.</p>`
<p>[^issue]:  I have an issue from 2018 that I wanted to &quot;come back the moment this lands&quot;.</p>
<h1>Full Changelog</h1>
<h2>Backward-incompatible Changes</h2>
<ul>
<li>
<p>When using <code>`@define</code>,` converters are now run by default when setting an attribute on an instance -- additionally to validators. I.e. the new default is <code>on_setattr=[attrs.setters.convert, attrs.setters.validate]</code>.</p>
<p>This is unfortunately a breaking change, but it was an oversight, impossible to raise a <code>DeprecationWarning</code> about, and it's better to fix it now while the APIs are very fresh with few users. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/835">#835</a>, <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/886">#886</a></p>
</li>
<li>
<p><code>import attrs</code> has finally landed! As of this release, you can finally import <code>attrs</code> using its proper name.</p>
<p>Not all names from the <code>attr</code> namespace have been transferred; most notably <code>attr.s</code> and <code>attr.ib</code> are missing. See <code>attrs.define</code> and <code>attrs.field</code> if you haven't seen our next-generation APIs yet. A more elaborate explanation can be found <a href="https://www.attrs.org/en/latest/names.html">On The Core API Names</a></p>
<p>This feature is at least for one release <strong>provisional</strong>. We don't <em>plan</em> on changing anything, but such a big change is unlikely to go perfectly on the first strike.</p>
<p>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 <strong>not</strong> moved -- or even removed -- anything from <code>attr</code>!</p>
<p>Please do report any bugs or documentation inconsistencies! <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/887">#887</a></p>
</li>
</ul>
<h2>Changes</h2>
<ul>
<li><code>attr.asdict(retain_collection_types=False)</code> (default) dumps collection-esque keys as tuples. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/646">#646</a>, <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/888">#888</a></li>
<li><code>__match_args__</code> are now generated to support Python 3.10's <a href="https://docs.python.org/3.10/whatsnew/3.10.html#pep-634-structural-pattern-matching">Structural Pattern Matching</a>. This can be controlled by the <code>match_args</code> argument to the class decorators on Python 3.10 and later. On older versions, it is never added and the argument is ignored. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/815">#815</a></li>
<li>If the class-level <em>on_setattr</em> is set to <code>attrs.setters.validate</code> (default in <code>`@define</code>` and <code>`@mutable</code>)` but no field defines a validator, pretend that it's not set. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/817">#817</a></li>
<li>The generated <code>__repr__</code> is significantly faster on Pythons with f-strings. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/819">#819</a></li>
<li>Attributes transformed via <code>field_transformer</code> are wrapped with <code>AttrsClass</code> again. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/824">#824</a></li>
<li>Generated source code is now cached more efficiently for identical classes. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/828">#828</a></li>
<li>Added <code>attrs.converters.to_bool()</code>. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/830">#830</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/python-attrs/attrs/blob/main/CHANGELOG.rst">attrs's changelog</a>.</em></p>
<blockquote>
<h2>21.3.0 (2021-12-28)</h2>
<p>Backward-incompatible Changes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</p>
<ul>
<li>
<p>When using <code>`@define</code>,` converters are now run by default when setting an attribute on an instance -- additionally to validators.
I.e. the new default is <code>on_setattr=[attrs.setters.convert, attrs.setters.validate]</code>.</p>
<p>This is unfortunately a breaking change, but it was an oversight, impossible to raise a <code>DeprecationWarning</code> about, and it's better to fix it now while the APIs are very fresh with few users.
<code>[#835](python-attrs/attrs#835) &lt;https://github.com/python-attrs/attrs/issues/835&gt;</code><em>,
<code>[#886](python-attrs/attrs#886) &lt;https://github.com/python-attrs/attrs/issues/886&gt;</code></em></p>
</li>
<li>
<p><code>import attrs</code> has finally landed!
As of this release, you can finally import <code>attrs</code> using its proper name.</p>
<p>Not all names from the <code>attr</code> namespace have been transferred; most notably <code>attr.s</code> and <code>attr.ib</code> are missing.
See <code>attrs.define</code> and <code>attrs.field</code> if you haven't seen our next-generation APIs yet.
A more elaborate explanation can be found <code>On The Core API Names &lt;https://www.attrs.org/en/latest/names.html&gt;</code>_</p>
<p>This feature is at least for one release <strong>provisional</strong>.
We don't <em>plan</em> on changing anything, but such a big change is unlikely to go perfectly on the first strike.</p>
<p>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 <strong>not</strong> moved -- or even removed -- anything from <code>attr</code>!</p>
<p>Please do report any bugs or documentation inconsistencies!
<code>[#887](python-attrs/attrs#887) &lt;https://github.com/python-attrs/attrs/issues/887&gt;</code>_</p>
</li>
</ul>
<p>Changes
^^^^^^^</p>
<ul>
<li><code>attr.asdict(retain_collection_types=False)</code> (default) dumps collection-esque keys as tuples.
<code>[#646](python-attrs/attrs#646) &lt;https://github.com/python-attrs/attrs/issues/646&gt;</code><em>,
<code>[#888](python-attrs/attrs#888) &lt;https://github.com/python-attrs/attrs/issues/888&gt;</code></em></li>
<li><code>__match_args__</code> are now generated to support Python 3.10's
<code>Structural Pattern Matching &lt;https://docs.python.org/3.10/whatsnew/3.10.html#pep-634-structural-pattern-matching&gt;</code><em>.
This can be controlled by the <code>match_args</code> argument to the class decorators on Python 3.10 and later.
On older versions, it is never added and the argument is ignored.
<code>[#815](python-attrs/attrs#815) &lt;https://github.com/python-attrs/attrs/issues/815&gt;</code></em></li>
<li>If the class-level <em>on_setattr</em> is set to <code>attrs.setters.validate</code> (default in <code>`@define</code>` and <code>`@mutable</code>)` but no field defines a validator, pretend that it's not set.
<code>[#817](python-attrs/attrs#817) &lt;https://github.com/python-attrs/attrs/issues/817&gt;</code>_</li>
<li>The generated <code>__repr__</code> is significantly faster on Pythons with f-strings.
<code>[#819](python-attrs/attrs#819) &lt;https://github.com/python-attrs/attrs/issues/819&gt;</code>_</li>
<li>Attributes transformed via <code>field_transformer</code> are wrapped with <code>AttrsClass</code> again.
<code>[#824](python-attrs/attrs#824) &lt;https://github.com/python-attrs/attrs/issues/824&gt;</code>_</li>
<li>Generated source code is now cached more efficiently for identical classes.
<code>[#828](python-attrs/attrs#828) &lt;https://github.com/python-attrs/attrs/issues/828&gt;</code>_</li>
<li>Added <code>attrs.converters.to_bool()</code>.
<code>[#830](python-attrs/attrs#830) &lt;https://github.com/python-attrs/attrs/issues/830&gt;</code>_</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/python-attrs/attrs/commit/dd26edd68e12879f716c6554f25d957af299b801"><code>dd26edd</code></a> Prepare 21.3.0</li>
<li><a href="https://github.com/python-attrs/attrs/commit/20bf4b6e54a75201b378cff8e6dd9521d2da28f1"><code>20bf4b6</code></a> Go over CONTRIBUTING.md</li>
<li><a href="https://github.com/python-attrs/attrs/commit/d528dd425980eff3f43b0e29b0ce4dc81ecd8d84"><code>d528dd4</code></a> Fix more links</li>
<li><a href="https://github.com/python-attrs/attrs/commit/fcfb5a692cc8c9f8fde8e39bbd2c5733a47fb1e7"><code>fcfb5a6</code></a> Last pass over changelogs</li>
<li><a href="https://github.com/python-attrs/attrs/commit/e09873485e14e9b11d5d590a55280894df367d92"><code>e098734</code></a> Add logo to PyPI description</li>
<li><a href="https://github.com/python-attrs/attrs/commit/26c0cef8e48bd131d062d45bdaa0c949d4a2d035"><code>26c0cef</code></a> Streamline workflow</li>
<li><a href="https://github.com/python-attrs/attrs/commit/3333e749781a107c829717f7bc0382d33b538b6e"><code>3333e74</code></a> Remove dead achor</li>
<li><a href="https://github.com/python-attrs/attrs/commit/2d77d83d4e3ceadbf4414da5963623a20564c415"><code>2d77d83</code></a> Fix dataclass_transform links</li>
<li><a href="https://github.com/python-attrs/attrs/commit/b4dc9b07c70c16848960da077fc7ac18fe5e9bc8"><code>b4dc9b0</code></a> Better 2.7 example</li>
<li><a href="https://github.com/python-attrs/attrs/commit/d4e32209dc5855796e57c2b08bdc1c1702d051ab"><code>d4e3220</code></a> Use attrs namespace throughout examples.rst</li>
<li>Additional commits viewable in <a href="https://github.com/python-attrs/attrs/compare/21.2.0...21.3.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=attrs&package-manager=pip&previous-version=21.2.0&new-version=21.3.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

466: build(deps): bump identify from 2.4.0 to 2.4.1 r=ChrisRBe a=dependabot[bot]

Bumps [identify](https://github.com/pre-commit/identify) from 2.4.0 to 2.4.1.
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/pre-commit/identify/commit/95e30a37bf7c044da3149d85de4a10f5ff494857"><code>95e30a3</code></a> v2.4.1</li>
<li><a href="https://github.com/pre-commit/identify/commit/127535d4fb489e5d6e95055b605d9104c526b3b9"><code>127535d</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/pre-commit/identify/issues/261">#261</a> from andreoliwa/add-prettierignore</li>
<li><a href="https://github.com/pre-commit/identify/commit/665321fee45f00da0f2002bc203fdd3a54348bb4"><code>665321f</code></a> Target prettierignore specifically</li>
<li><a href="https://github.com/pre-commit/identify/commit/08fdc8ef63ffbac7fc76d3270814f7c648959fab"><code>08fdc8e</code></a> Add .prettierignore extension</li>
<li><a href="https://github.com/pre-commit/identify/commit/a1d955bf83f8416d0345e4334b8d01df552e3c79"><code>a1d955b</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/pre-commit/identify/issues/260">#260</a> from pre-commit/pre-commit-ci-update-config</li>
<li><a href="https://github.com/pre-commit/identify/commit/eec46c02ad339b4b54adbcc2c0414057c0688838"><code>eec46c0</code></a> [pre-commit.ci] pre-commit autoupdate</li>
<li><a href="https://github.com/pre-commit/identify/commit/f95fbc36c708419d983e3c210c88f44217eab30d"><code>f95fbc3</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/pre-commit/identify/issues/257">#257</a> from pre-commit/pre-commit-ci-update-config</li>
<li><a href="https://github.com/pre-commit/identify/commit/5d5226d203b1551d1c96db73f7a140a2cdca1656"><code>5d5226d</code></a> [pre-commit.ci] pre-commit autoupdate</li>
<li><a href="https://github.com/pre-commit/identify/commit/2782f1cabd09df0c3ab4aa4f8c2b822fd4ea8c16"><code>2782f1c</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/pre-commit/identify/issues/256">#256</a> from pre-commit/all-repos_autofix_gh-funding-default</li>
<li><a href="https://github.com/pre-commit/identify/commit/761330ab6552e8687bc60d6ecdcad99078e16513"><code>761330a</code></a> Use org-default .github/FUNDING.yml</li>
<li>Additional commits viewable in <a href="https://github.com/pre-commit/identify/compare/v2.4.0...v2.4.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=identify&package-manager=pip&previous-version=2.4.0&new-version=2.4.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
bors bot added a commit to ChrisRBe/PP-P2P-Parser that referenced this pull request Dec 28, 2021
465: build(deps): bump attrs from 21.2.0 to 21.3.0 r=ChrisRBe a=dependabot[bot]

Bumps [attrs](https://github.com/python-attrs/attrs) from 21.2.0 to 21.3.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/python-attrs/attrs/releases">attrs's releases</a>.</em></p>
<blockquote>
<h2>21.3.0</h2>
<p>This is a big release in the history of <code>attrs</code> and finishes an arc that took way too long and also delayed this very overdue release. But it's done: <code>import attrs</code> that has been talked about for years[^issue], but fell victim to “just this one more thing” has <em>finally</em> landed.</p>
<p>From now on, modern <code>attrs</code> code looks like this:</p>
<pre lang="python"><code>from attrs import define
<p><a href="https://github.com/define"><code>`@​define</code></a>`
class HelloWorld:
modern: bool = True
</code></pre></p>
<p>The <code>define</code>/<code>field</code> APIs have been around for over a year and were very popular, now the rest of the package followed suit. I'm very excited that <code>attrs</code> remains relevant and keeps evolving over now more than half a decade. If you're curious about some of the background, the docs now contain a short <a href="https://www.attrs.org/en/stable/names.html">explanation and history lesson</a>. As long as our users keep pushing us, we will keep pushing forward class generation in Python!</p>
<p>Big thanks to my <a href="https://github.com/sponsors/hynek/dashboard">GitHub Sponsors</a>, <a href="https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&amp;utm_medium=referral&amp;utm_campaign=enterprise&amp;utm_term=repo">Tidelift subscribers</a>, and <a href="https://ko-fi.com/the_hynekl">Ko-fi buyers</a> that help me mustering the motivation for such long-running project!</p>
<hr />
<p>Since the release took so long, there's more highlights than we can enumerate here, we'd just like to point out a breaking change in the new APIs: converters now run on setting attributes by default. If this is causing problems to you, you can disable that behavior by setting <code>`@define(on_setattr=[])</code>.</p>`
<p>[^issue]:  I have an issue from 2018 that I wanted to &quot;come back the moment this lands&quot;.</p>
<h1>Full Changelog</h1>
<h2>Backward-incompatible Changes</h2>
<ul>
<li>
<p>When using <code>`@define</code>,` converters are now run by default when setting an attribute on an instance -- additionally to validators. I.e. the new default is <code>on_setattr=[attrs.setters.convert, attrs.setters.validate]</code>.</p>
<p>This is unfortunately a breaking change, but it was an oversight, impossible to raise a <code>DeprecationWarning</code> about, and it's better to fix it now while the APIs are very fresh with few users. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/835">#835</a>, <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/886">#886</a></p>
</li>
<li>
<p><code>import attrs</code> has finally landed! As of this release, you can finally import <code>attrs</code> using its proper name.</p>
<p>Not all names from the <code>attr</code> namespace have been transferred; most notably <code>attr.s</code> and <code>attr.ib</code> are missing. See <code>attrs.define</code> and <code>attrs.field</code> if you haven't seen our next-generation APIs yet. A more elaborate explanation can be found <a href="https://www.attrs.org/en/latest/names.html">On The Core API Names</a></p>
<p>This feature is at least for one release <strong>provisional</strong>. We don't <em>plan</em> on changing anything, but such a big change is unlikely to go perfectly on the first strike.</p>
<p>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 <strong>not</strong> moved -- or even removed -- anything from <code>attr</code>!</p>
<p>Please do report any bugs or documentation inconsistencies! <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/887">#887</a></p>
</li>
</ul>
<h2>Changes</h2>
<ul>
<li><code>attr.asdict(retain_collection_types=False)</code> (default) dumps collection-esque keys as tuples. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/646">#646</a>, <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/888">#888</a></li>
<li><code>__match_args__</code> are now generated to support Python 3.10's <a href="https://docs.python.org/3.10/whatsnew/3.10.html#pep-634-structural-pattern-matching">Structural Pattern Matching</a>. This can be controlled by the <code>match_args</code> argument to the class decorators on Python 3.10 and later. On older versions, it is never added and the argument is ignored. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/815">#815</a></li>
<li>If the class-level <em>on_setattr</em> is set to <code>attrs.setters.validate</code> (default in <code>`@define</code>` and <code>`@mutable</code>)` but no field defines a validator, pretend that it's not set. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/817">#817</a></li>
<li>The generated <code>__repr__</code> is significantly faster on Pythons with f-strings. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/819">#819</a></li>
<li>Attributes transformed via <code>field_transformer</code> are wrapped with <code>AttrsClass</code> again. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/824">#824</a></li>
<li>Generated source code is now cached more efficiently for identical classes. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/828">#828</a></li>
<li>Added <code>attrs.converters.to_bool()</code>. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/830">#830</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/python-attrs/attrs/blob/main/CHANGELOG.rst">attrs's changelog</a>.</em></p>
<blockquote>
<h2>21.3.0 (2021-12-28)</h2>
<p>Backward-incompatible Changes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</p>
<ul>
<li>
<p>When using <code>`@define</code>,` converters are now run by default when setting an attribute on an instance -- additionally to validators.
I.e. the new default is <code>on_setattr=[attrs.setters.convert, attrs.setters.validate]</code>.</p>
<p>This is unfortunately a breaking change, but it was an oversight, impossible to raise a <code>DeprecationWarning</code> about, and it's better to fix it now while the APIs are very fresh with few users.
<code>[#835](python-attrs/attrs#835) &lt;https://github.com/python-attrs/attrs/issues/835&gt;</code><em>,
<code>[#886](python-attrs/attrs#886) &lt;https://github.com/python-attrs/attrs/issues/886&gt;</code></em></p>
</li>
<li>
<p><code>import attrs</code> has finally landed!
As of this release, you can finally import <code>attrs</code> using its proper name.</p>
<p>Not all names from the <code>attr</code> namespace have been transferred; most notably <code>attr.s</code> and <code>attr.ib</code> are missing.
See <code>attrs.define</code> and <code>attrs.field</code> if you haven't seen our next-generation APIs yet.
A more elaborate explanation can be found <code>On The Core API Names &lt;https://www.attrs.org/en/latest/names.html&gt;</code>_</p>
<p>This feature is at least for one release <strong>provisional</strong>.
We don't <em>plan</em> on changing anything, but such a big change is unlikely to go perfectly on the first strike.</p>
<p>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 <strong>not</strong> moved -- or even removed -- anything from <code>attr</code>!</p>
<p>Please do report any bugs or documentation inconsistencies!
<code>[#887](python-attrs/attrs#887) &lt;https://github.com/python-attrs/attrs/issues/887&gt;</code>_</p>
</li>
</ul>
<p>Changes
^^^^^^^</p>
<ul>
<li><code>attr.asdict(retain_collection_types=False)</code> (default) dumps collection-esque keys as tuples.
<code>[#646](python-attrs/attrs#646) &lt;https://github.com/python-attrs/attrs/issues/646&gt;</code><em>,
<code>[#888](python-attrs/attrs#888) &lt;https://github.com/python-attrs/attrs/issues/888&gt;</code></em></li>
<li><code>__match_args__</code> are now generated to support Python 3.10's
<code>Structural Pattern Matching &lt;https://docs.python.org/3.10/whatsnew/3.10.html#pep-634-structural-pattern-matching&gt;</code><em>.
This can be controlled by the <code>match_args</code> argument to the class decorators on Python 3.10 and later.
On older versions, it is never added and the argument is ignored.
<code>[#815](python-attrs/attrs#815) &lt;https://github.com/python-attrs/attrs/issues/815&gt;</code></em></li>
<li>If the class-level <em>on_setattr</em> is set to <code>attrs.setters.validate</code> (default in <code>`@define</code>` and <code>`@mutable</code>)` but no field defines a validator, pretend that it's not set.
<code>[#817](python-attrs/attrs#817) &lt;https://github.com/python-attrs/attrs/issues/817&gt;</code>_</li>
<li>The generated <code>__repr__</code> is significantly faster on Pythons with f-strings.
<code>[#819](python-attrs/attrs#819) &lt;https://github.com/python-attrs/attrs/issues/819&gt;</code>_</li>
<li>Attributes transformed via <code>field_transformer</code> are wrapped with <code>AttrsClass</code> again.
<code>[#824](python-attrs/attrs#824) &lt;https://github.com/python-attrs/attrs/issues/824&gt;</code>_</li>
<li>Generated source code is now cached more efficiently for identical classes.
<code>[#828](python-attrs/attrs#828) &lt;https://github.com/python-attrs/attrs/issues/828&gt;</code>_</li>
<li>Added <code>attrs.converters.to_bool()</code>.
<code>[#830](python-attrs/attrs#830) &lt;https://github.com/python-attrs/attrs/issues/830&gt;</code>_</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/python-attrs/attrs/commit/dd26edd68e12879f716c6554f25d957af299b801"><code>dd26edd</code></a> Prepare 21.3.0</li>
<li><a href="https://github.com/python-attrs/attrs/commit/20bf4b6e54a75201b378cff8e6dd9521d2da28f1"><code>20bf4b6</code></a> Go over CONTRIBUTING.md</li>
<li><a href="https://github.com/python-attrs/attrs/commit/d528dd425980eff3f43b0e29b0ce4dc81ecd8d84"><code>d528dd4</code></a> Fix more links</li>
<li><a href="https://github.com/python-attrs/attrs/commit/fcfb5a692cc8c9f8fde8e39bbd2c5733a47fb1e7"><code>fcfb5a6</code></a> Last pass over changelogs</li>
<li><a href="https://github.com/python-attrs/attrs/commit/e09873485e14e9b11d5d590a55280894df367d92"><code>e098734</code></a> Add logo to PyPI description</li>
<li><a href="https://github.com/python-attrs/attrs/commit/26c0cef8e48bd131d062d45bdaa0c949d4a2d035"><code>26c0cef</code></a> Streamline workflow</li>
<li><a href="https://github.com/python-attrs/attrs/commit/3333e749781a107c829717f7bc0382d33b538b6e"><code>3333e74</code></a> Remove dead achor</li>
<li><a href="https://github.com/python-attrs/attrs/commit/2d77d83d4e3ceadbf4414da5963623a20564c415"><code>2d77d83</code></a> Fix dataclass_transform links</li>
<li><a href="https://github.com/python-attrs/attrs/commit/b4dc9b07c70c16848960da077fc7ac18fe5e9bc8"><code>b4dc9b0</code></a> Better 2.7 example</li>
<li><a href="https://github.com/python-attrs/attrs/commit/d4e32209dc5855796e57c2b08bdc1c1702d051ab"><code>d4e3220</code></a> Use attrs namespace throughout examples.rst</li>
<li>Additional commits viewable in <a href="https://github.com/python-attrs/attrs/compare/21.2.0...21.3.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=attrs&package-manager=pip&previous-version=21.2.0&new-version=21.3.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

467: build(deps): bump virtualenv from 20.10.0 to 20.11.0 r=ChrisRBe a=dependabot[bot]

Bumps [virtualenv](https://github.com/pypa/virtualenv) from 20.10.0 to 20.11.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/pypa/virtualenv/blob/main/docs/changelog.rst">virtualenv's changelog</a>.</em></p>
<blockquote>
<h2>v20.11.0 (2021-12-28)</h2>
<p>Features - 20.11.0</p>
<pre><code>- Avoid deprecation warning from py-filelock argument - by :user:`ofek`. (`[#2237](pypa/virtualenv#2237) &lt;https://github.com/pypa/virtualenv/issues/2237&gt;`_)
- Upgrade embedded setuptools to ``59.4.0`` from ``58.3.0`` - by :user:`gaborbernat`. (`[#2240](pypa/virtualenv#2240) &lt;https://github.com/pypa/virtualenv/issues/2240&gt;`_)
- Drop the runtime dependency of ``backports.entry-points-selectable`` - by :user:`hroncok`. (`[#2246](pypa/virtualenv#2246) &lt;https://github.com/pypa/virtualenv/issues/2246&gt;`_)
- Fish: PATH variables should not be quoted when being set - by :user:`hroncok`. (`[#2248](pypa/virtualenv#2248) &lt;https://github.com/pypa/virtualenv/issues/2248&gt;`_)
</code></pre>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/pypa/virtualenv/commit/72106af48f00936b50160ad9f7a921c91508c983"><code>72106af</code></a> release 20.11.0</li>
<li><a href="https://github.com/pypa/virtualenv/commit/592420e9011ace2b019ac1d833e507724a0f19aa"><code>592420e</code></a> Add changelog</li>
<li><a href="https://github.com/pypa/virtualenv/commit/878c6e09ded9b8e25a18ced1e04ba53075f2b5d2"><code>878c6e0</code></a> Fix the CI (<a href="https://github-redirect.dependabot.com/pypa/virtualenv/issues/2254">#2254</a>)</li>
<li><a href="https://github.com/pypa/virtualenv/commit/ba3541c84a28cb03b42725b3e38bd08526e4768a"><code>ba3541c</code></a> Bump embeded wheels (<a href="https://github-redirect.dependabot.com/pypa/virtualenv/issues/2252">#2252</a>)</li>
<li><a href="https://github.com/pypa/virtualenv/commit/abc655e428cd9a1070ee6ced2a83afcc3f972aa9"><code>abc655e</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://github-redirect.dependabot.com/pypa/virtualenv/issues/2242">#2242</a>)</li>
<li><a href="https://github.com/pypa/virtualenv/commit/bb82a73b6dbf577874f6d4bfaf72d2a7f59dfffe"><code>bb82a73</code></a> Use 'selectable' interface for entry points only when available (<a href="https://github-redirect.dependabot.com/pypa/virtualenv/issues/2246">#2246</a>)</li>
<li><a href="https://github.com/pypa/virtualenv/commit/12a1fc2860761a9cd47c88a24093455d121570a3"><code>12a1fc2</code></a> Properly hide PEP-632 warning on latest version of <code>setuptools</code> (<a href="https://github-redirect.dependabot.com/pypa/virtualenv/issues/2251">#2251</a>)</li>
<li><a href="https://github.com/pypa/virtualenv/commit/1431befa9373225d375d03dcd3aa2b83d51f7a62"><code>1431bef</code></a> fish: PATH variables should not be quoted when being set (<a href="https://github-redirect.dependabot.com/pypa/virtualenv/issues/2248">#2248</a>)</li>
<li><a href="https://github.com/pypa/virtualenv/commit/1f1fdc9a0a5b7af0faf5e6c684d34dfcbf69b61f"><code>1f1fdc9</code></a> Avoid a new deprecation warning from filelock dependency (<a href="https://github-redirect.dependabot.com/pypa/virtualenv/issues/2237">#2237</a>)</li>
<li><a href="https://github.com/pypa/virtualenv/commit/bf5691502d72fba98b2b65a65116dfe94687ea23"><code>bf56915</code></a> Update check.yml</li>
<li>Additional commits viewable in <a href="https://github.com/pypa/virtualenv/compare/20.10.0...20.11.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=virtualenv&package-manager=pip&previous-version=20.10.0&new-version=20.11.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
renefritze added a commit to renefritze/check_reqs that referenced this pull request Dec 29, 2021
Bumps [attrs](https://github.com/python-attrs/attrs) from 21.2.0 to 21.3.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/python-attrs/attrs/releases">attrs's releases</a>.</em></p>
<blockquote>
<h2>21.3.0</h2>
<p>This is a big release in the history of <code>attrs</code> and finishes an arc that took way too long and also delayed this very overdue release. But it's done: <code>import attrs</code> that has been talked about for years[^issue], but fell victim to “just this one more thing” has <em>finally</em> landed.</p>
<p>From now on, modern <code>attrs</code> code looks like this:</p>
<pre lang="python"><code>from attrs import define
<p><a href="https://github.com/define"><code>@​define</code></a>
class HelloWorld:
modern: bool = True
</code></pre></p>
<p>The <code>define</code>/<code>field</code> APIs have been around for over a year and were very popular, now the rest of the package followed suit. I'm very excited that <code>attrs</code> remains relevant and keeps evolving over now more than half a decade. If you're curious about some of the background, the docs now contain a short <a href="https://www.attrs.org/en/stable/names.html">explanation and history lesson</a>. As long as our users keep pushing us, we will keep pushing forward class generation in Python!</p>
<p>Big thanks to my <a href="https://github.com/sponsors/hynek/dashboard">GitHub Sponsors</a>, <a href="https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&amp;utm_medium=referral&amp;utm_campaign=enterprise&amp;utm_term=repo">Tidelift subscribers</a>, and <a href="https://ko-fi.com/the_hynekl">Ko-fi buyers</a> that help me mustering the motivation for such long-running project!</p>
<hr />
<p>Since the release took so long, there's more highlights than we can enumerate here, we'd just like to point out a breaking change in the new APIs: converters now run on setting attributes by default. If this is causing problems to you, you can disable that behavior by setting <code>@define(on_setattr=[])</code>.</p>
<p>[^issue]:  I have an issue from 2018 that I wanted to &quot;come back the moment this lands&quot;.</p>
<h1>Full Changelog</h1>
<h2>Backward-incompatible Changes</h2>
<ul>
<li>
<p>When using <code>@define</code>, converters are now run by default when setting an attribute on an instance -- additionally to validators. I.e. the new default is <code>on_setattr=[attrs.setters.convert, attrs.setters.validate]</code>.</p>
<p>This is unfortunately a breaking change, but it was an oversight, impossible to raise a <code>DeprecationWarning</code> about, and it's better to fix it now while the APIs are very fresh with few users. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/835">#835</a>, <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/886">#886</a></p>
</li>
<li>
<p><code>import attrs</code> has finally landed! As of this release, you can finally import <code>attrs</code> using its proper name.</p>
<p>Not all names from the <code>attr</code> namespace have been transferred; most notably <code>attr.s</code> and <code>attr.ib</code> are missing. See <code>attrs.define</code> and <code>attrs.field</code> if you haven't seen our next-generation APIs yet. A more elaborate explanation can be found <a href="https://www.attrs.org/en/latest/names.html">On The Core API Names</a></p>
<p>This feature is at least for one release <strong>provisional</strong>. We don't <em>plan</em> on changing anything, but such a big change is unlikely to go perfectly on the first strike.</p>
<p>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 <strong>not</strong> moved -- or even removed -- anything from <code>attr</code>!</p>
<p>Please do report any bugs or documentation inconsistencies! <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/887">#887</a></p>
</li>
</ul>
<h2>Changes</h2>
<ul>
<li><code>attr.asdict(retain_collection_types=False)</code> (default) dumps collection-esque keys as tuples. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/646">#646</a>, <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/888">#888</a></li>
<li><code>__match_args__</code> are now generated to support Python 3.10's <a href="https://docs.python.org/3.10/whatsnew/3.10.html#pep-634-structural-pattern-matching">Structural Pattern Matching</a>. This can be controlled by the <code>match_args</code> argument to the class decorators on Python 3.10 and later. On older versions, it is never added and the argument is ignored. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/815">#815</a></li>
<li>If the class-level <em>on_setattr</em> is set to <code>attrs.setters.validate</code> (default in <code>@define</code> and <code>@mutable</code>) but no field defines a validator, pretend that it's not set. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/817">#817</a></li>
<li>The generated <code>__repr__</code> is significantly faster on Pythons with f-strings. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/819">#819</a></li>
<li>Attributes transformed via <code>field_transformer</code> are wrapped with <code>AttrsClass</code> again. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/824">#824</a></li>
<li>Generated source code is now cached more efficiently for identical classes. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/828">#828</a></li>
<li>Added <code>attrs.converters.to_bool()</code>. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/830">#830</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/python-attrs/attrs/blob/main/CHANGELOG.rst">attrs's changelog</a>.</em></p>
<blockquote>
<h2>21.3.0 (2021-12-28)</h2>
<p>Backward-incompatible Changes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</p>
<ul>
<li>
<p>When using <code>@define</code>, converters are now run by default when setting an attribute on an instance -- additionally to validators.
I.e. the new default is <code>on_setattr=[attrs.setters.convert, attrs.setters.validate]</code>.</p>
<p>This is unfortunately a breaking change, but it was an oversight, impossible to raise a <code>DeprecationWarning</code> about, and it's better to fix it now while the APIs are very fresh with few users.
<code>[#835](python-attrs/attrs#835) &lt;https://github.com/python-attrs/attrs/issues/835&gt;</code><em>,
<code>[#886](python-attrs/attrs#886) &lt;https://github.com/python-attrs/attrs/issues/886&gt;</code></em></p>
</li>
<li>
<p><code>import attrs</code> has finally landed!
As of this release, you can finally import <code>attrs</code> using its proper name.</p>
<p>Not all names from the <code>attr</code> namespace have been transferred; most notably <code>attr.s</code> and <code>attr.ib</code> are missing.
See <code>attrs.define</code> and <code>attrs.field</code> if you haven't seen our next-generation APIs yet.
A more elaborate explanation can be found <code>On The Core API Names &lt;https://www.attrs.org/en/latest/names.html&gt;</code>_</p>
<p>This feature is at least for one release <strong>provisional</strong>.
We don't <em>plan</em> on changing anything, but such a big change is unlikely to go perfectly on the first strike.</p>
<p>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 <strong>not</strong> moved -- or even removed -- anything from <code>attr</code>!</p>
<p>Please do report any bugs or documentation inconsistencies!
<code>[#887](python-attrs/attrs#887) &lt;https://github.com/python-attrs/attrs/issues/887&gt;</code>_</p>
</li>
</ul>
<p>Changes
^^^^^^^</p>
<ul>
<li><code>attr.asdict(retain_collection_types=False)</code> (default) dumps collection-esque keys as tuples.
<code>[#646](python-attrs/attrs#646) &lt;https://github.com/python-attrs/attrs/issues/646&gt;</code><em>,
<code>[#888](python-attrs/attrs#888) &lt;https://github.com/python-attrs/attrs/issues/888&gt;</code></em></li>
<li><code>__match_args__</code> are now generated to support Python 3.10's
<code>Structural Pattern Matching &lt;https://docs.python.org/3.10/whatsnew/3.10.html#pep-634-structural-pattern-matching&gt;</code><em>.
This can be controlled by the <code>match_args</code> argument to the class decorators on Python 3.10 and later.
On older versions, it is never added and the argument is ignored.
<code>[#815](python-attrs/attrs#815) &lt;https://github.com/python-attrs/attrs/issues/815&gt;</code></em></li>
<li>If the class-level <em>on_setattr</em> is set to <code>attrs.setters.validate</code> (default in <code>@define</code> and <code>@mutable</code>) but no field defines a validator, pretend that it's not set.
<code>[#817](python-attrs/attrs#817) &lt;https://github.com/python-attrs/attrs/issues/817&gt;</code>_</li>
<li>The generated <code>__repr__</code> is significantly faster on Pythons with f-strings.
<code>[#819](python-attrs/attrs#819) &lt;https://github.com/python-attrs/attrs/issues/819&gt;</code>_</li>
<li>Attributes transformed via <code>field_transformer</code> are wrapped with <code>AttrsClass</code> again.
<code>[#824](python-attrs/attrs#824) &lt;https://github.com/python-attrs/attrs/issues/824&gt;</code>_</li>
<li>Generated source code is now cached more efficiently for identical classes.
<code>[#828](python-attrs/attrs#828) &lt;https://github.com/python-attrs/attrs/issues/828&gt;</code>_</li>
<li>Added <code>attrs.converters.to_bool()</code>.
<code>[#830](python-attrs/attrs#830) &lt;https://github.com/python-attrs/attrs/issues/830&gt;</code>_</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/python-attrs/attrs/commit/dd26edd68e12879f716c6554f25d957af299b801"><code>dd26edd</code></a> Prepare 21.3.0</li>
<li><a href="https://github.com/python-attrs/attrs/commit/20bf4b6e54a75201b378cff8e6dd9521d2da28f1"><code>20bf4b6</code></a> Go over CONTRIBUTING.md</li>
<li><a href="https://github.com/python-attrs/attrs/commit/d528dd425980eff3f43b0e29b0ce4dc81ecd8d84"><code>d528dd4</code></a> Fix more links</li>
<li><a href="https://github.com/python-attrs/attrs/commit/fcfb5a692cc8c9f8fde8e39bbd2c5733a47fb1e7"><code>fcfb5a6</code></a> Last pass over changelogs</li>
<li><a href="https://github.com/python-attrs/attrs/commit/e09873485e14e9b11d5d590a55280894df367d92"><code>e098734</code></a> Add logo to PyPI description</li>
<li><a href="https://github.com/python-attrs/attrs/commit/26c0cef8e48bd131d062d45bdaa0c949d4a2d035"><code>26c0cef</code></a> Streamline workflow</li>
<li><a href="https://github.com/python-attrs/attrs/commit/3333e749781a107c829717f7bc0382d33b538b6e"><code>3333e74</code></a> Remove dead achor</li>
<li><a href="https://github.com/python-attrs/attrs/commit/2d77d83d4e3ceadbf4414da5963623a20564c415"><code>2d77d83</code></a> Fix dataclass_transform links</li>
<li><a href="https://github.com/python-attrs/attrs/commit/b4dc9b07c70c16848960da077fc7ac18fe5e9bc8"><code>b4dc9b0</code></a> Better 2.7 example</li>
<li><a href="https://github.com/python-attrs/attrs/commit/d4e32209dc5855796e57c2b08bdc1c1702d051ab"><code>d4e3220</code></a> Use attrs namespace throughout examples.rst</li>
<li>Additional commits viewable in <a href="https://github.com/python-attrs/attrs/compare/21.2.0...21.3.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=attrs&package-manager=pip&previous-version=21.2.0&new-version=21.3.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>
bors bot added a commit to microsoft/Qcodes that referenced this pull request Dec 29, 2021
3746: Bump types-docutils from 0.17.1 to 0.17.2 r=jenshnielsen a=dependabot[bot]

Bumps [types-docutils](https://github.com/python/typeshed) from 0.17.1 to 0.17.2.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/python/typeshed/commits">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=types-docutils&package-manager=pip&previous-version=0.17.1&new-version=0.17.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

3747: Bump attrs from 21.2.0 to 21.3.0 r=jenshnielsen a=dependabot[bot]

Bumps [attrs](https://github.com/python-attrs/attrs) from 21.2.0 to 21.3.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/python-attrs/attrs/releases">attrs's releases</a>.</em></p>
<blockquote>
<h2>21.3.0</h2>
<p>This is a big release in the history of <code>attrs</code> and finishes an arc that took way too long and also delayed this very overdue release. But it's done: <code>import attrs</code> that has been talked about for years[^issue], but fell victim to “just this one more thing” has <em>finally</em> landed.</p>
<p>From now on, modern <code>attrs</code> code looks like this:</p>
<pre lang="python"><code>from attrs import define
<p><a href="https://github.com/define"><code>`@​define</code></a>`
class HelloWorld:
modern: bool = True
</code></pre></p>
<p>The <code>define</code>/<code>field</code> APIs have been around for over a year and were very popular, now the rest of the package followed suit. I'm very excited that <code>attrs</code> remains relevant and keeps evolving over now more than half a decade. If you're curious about some of the background, the docs now contain a short <a href="https://www.attrs.org/en/stable/names.html">explanation and history lesson</a>. As long as our users keep pushing us, we will keep pushing forward class generation in Python!</p>
<p>Big thanks to my <a href="https://github.com/sponsors/hynek/dashboard">GitHub Sponsors</a>, <a href="https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&amp;utm_medium=referral&amp;utm_campaign=enterprise&amp;utm_term=repo">Tidelift subscribers</a>, and <a href="https://ko-fi.com/the_hynekl">Ko-fi buyers</a> that help me mustering the motivation for such long-running project!</p>
<hr />
<p>Since the release took so long, there's more highlights than we can enumerate here, we'd just like to point out a breaking change in the new APIs: converters now run on setting attributes by default. If this is causing problems to you, you can disable that behavior by setting <code>`@define(on_setattr=[])</code>.</p>`
<p>[^issue]:  I have an issue from 2018 that I wanted to &quot;come back the moment this lands&quot;.</p>
<h1>Full Changelog</h1>
<h2>Backward-incompatible Changes</h2>
<ul>
<li>
<p>When using <code>`@define</code>,` converters are now run by default when setting an attribute on an instance -- additionally to validators. I.e. the new default is <code>on_setattr=[attrs.setters.convert, attrs.setters.validate]</code>.</p>
<p>This is unfortunately a breaking change, but it was an oversight, impossible to raise a <code>DeprecationWarning</code> about, and it's better to fix it now while the APIs are very fresh with few users. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/835">#835</a>, <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/886">#886</a></p>
</li>
<li>
<p><code>import attrs</code> has finally landed! As of this release, you can finally import <code>attrs</code> using its proper name.</p>
<p>Not all names from the <code>attr</code> namespace have been transferred; most notably <code>attr.s</code> and <code>attr.ib</code> are missing. See <code>attrs.define</code> and <code>attrs.field</code> if you haven't seen our next-generation APIs yet. A more elaborate explanation can be found <a href="https://www.attrs.org/en/latest/names.html">On The Core API Names</a></p>
<p>This feature is at least for one release <strong>provisional</strong>. We don't <em>plan</em> on changing anything, but such a big change is unlikely to go perfectly on the first strike.</p>
<p>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 <strong>not</strong> moved -- or even removed -- anything from <code>attr</code>!</p>
<p>Please do report any bugs or documentation inconsistencies! <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/887">#887</a></p>
</li>
</ul>
<h2>Changes</h2>
<ul>
<li><code>attr.asdict(retain_collection_types=False)</code> (default) dumps collection-esque keys as tuples. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/646">#646</a>, <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/888">#888</a></li>
<li><code>__match_args__</code> are now generated to support Python 3.10's <a href="https://docs.python.org/3.10/whatsnew/3.10.html#pep-634-structural-pattern-matching">Structural Pattern Matching</a>. This can be controlled by the <code>match_args</code> argument to the class decorators on Python 3.10 and later. On older versions, it is never added and the argument is ignored. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/815">#815</a></li>
<li>If the class-level <em>on_setattr</em> is set to <code>attrs.setters.validate</code> (default in <code>`@define</code>` and <code>`@mutable</code>)` but no field defines a validator, pretend that it's not set. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/817">#817</a></li>
<li>The generated <code>__repr__</code> is significantly faster on Pythons with f-strings. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/819">#819</a></li>
<li>Attributes transformed via <code>field_transformer</code> are wrapped with <code>AttrsClass</code> again. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/824">#824</a></li>
<li>Generated source code is now cached more efficiently for identical classes. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/828">#828</a></li>
<li>Added <code>attrs.converters.to_bool()</code>. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/830">#830</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/python-attrs/attrs/blob/main/CHANGELOG.rst">attrs's changelog</a>.</em></p>
<blockquote>
<h2>21.3.0 (2021-12-28)</h2>
<p>Backward-incompatible Changes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</p>
<ul>
<li>
<p>When using <code>`@define</code>,` converters are now run by default when setting an attribute on an instance -- additionally to validators.
I.e. the new default is <code>on_setattr=[attrs.setters.convert, attrs.setters.validate]</code>.</p>
<p>This is unfortunately a breaking change, but it was an oversight, impossible to raise a <code>DeprecationWarning</code> about, and it's better to fix it now while the APIs are very fresh with few users.
<code>[#835](python-attrs/attrs#835) &lt;https://github.com/python-attrs/attrs/issues/835&gt;</code><em>,
<code>[#886](python-attrs/attrs#886) &lt;https://github.com/python-attrs/attrs/issues/886&gt;</code></em></p>
</li>
<li>
<p><code>import attrs</code> has finally landed!
As of this release, you can finally import <code>attrs</code> using its proper name.</p>
<p>Not all names from the <code>attr</code> namespace have been transferred; most notably <code>attr.s</code> and <code>attr.ib</code> are missing.
See <code>attrs.define</code> and <code>attrs.field</code> if you haven't seen our next-generation APIs yet.
A more elaborate explanation can be found <code>On The Core API Names &lt;https://www.attrs.org/en/latest/names.html&gt;</code>_</p>
<p>This feature is at least for one release <strong>provisional</strong>.
We don't <em>plan</em> on changing anything, but such a big change is unlikely to go perfectly on the first strike.</p>
<p>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 <strong>not</strong> moved -- or even removed -- anything from <code>attr</code>!</p>
<p>Please do report any bugs or documentation inconsistencies!
<code>[#887](python-attrs/attrs#887) &lt;https://github.com/python-attrs/attrs/issues/887&gt;</code>_</p>
</li>
</ul>
<p>Changes
^^^^^^^</p>
<ul>
<li><code>attr.asdict(retain_collection_types=False)</code> (default) dumps collection-esque keys as tuples.
<code>[#646](python-attrs/attrs#646) &lt;https://github.com/python-attrs/attrs/issues/646&gt;</code><em>,
<code>[#888](python-attrs/attrs#888) &lt;https://github.com/python-attrs/attrs/issues/888&gt;</code></em></li>
<li><code>__match_args__</code> are now generated to support Python 3.10's
<code>Structural Pattern Matching &lt;https://docs.python.org/3.10/whatsnew/3.10.html#pep-634-structural-pattern-matching&gt;</code><em>.
This can be controlled by the <code>match_args</code> argument to the class decorators on Python 3.10 and later.
On older versions, it is never added and the argument is ignored.
<code>[#815](python-attrs/attrs#815) &lt;https://github.com/python-attrs/attrs/issues/815&gt;</code></em></li>
<li>If the class-level <em>on_setattr</em> is set to <code>attrs.setters.validate</code> (default in <code>`@define</code>` and <code>`@mutable</code>)` but no field defines a validator, pretend that it's not set.
<code>[#817](python-attrs/attrs#817) &lt;https://github.com/python-attrs/attrs/issues/817&gt;</code>_</li>
<li>The generated <code>__repr__</code> is significantly faster on Pythons with f-strings.
<code>[#819](python-attrs/attrs#819) &lt;https://github.com/python-attrs/attrs/issues/819&gt;</code>_</li>
<li>Attributes transformed via <code>field_transformer</code> are wrapped with <code>AttrsClass</code> again.
<code>[#824](python-attrs/attrs#824) &lt;https://github.com/python-attrs/attrs/issues/824&gt;</code>_</li>
<li>Generated source code is now cached more efficiently for identical classes.
<code>[#828](python-attrs/attrs#828) &lt;https://github.com/python-attrs/attrs/issues/828&gt;</code>_</li>
<li>Added <code>attrs.converters.to_bool()</code>.
<code>[#830](python-attrs/attrs#830) &lt;https://github.com/python-attrs/attrs/issues/830&gt;</code>_</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/python-attrs/attrs/commit/dd26edd68e12879f716c6554f25d957af299b801"><code>dd26edd</code></a> Prepare 21.3.0</li>
<li><a href="https://github.com/python-attrs/attrs/commit/20bf4b6e54a75201b378cff8e6dd9521d2da28f1"><code>20bf4b6</code></a> Go over CONTRIBUTING.md</li>
<li><a href="https://github.com/python-attrs/attrs/commit/d528dd425980eff3f43b0e29b0ce4dc81ecd8d84"><code>d528dd4</code></a> Fix more links</li>
<li><a href="https://github.com/python-attrs/attrs/commit/fcfb5a692cc8c9f8fde8e39bbd2c5733a47fb1e7"><code>fcfb5a6</code></a> Last pass over changelogs</li>
<li><a href="https://github.com/python-attrs/attrs/commit/e09873485e14e9b11d5d590a55280894df367d92"><code>e098734</code></a> Add logo to PyPI description</li>
<li><a href="https://github.com/python-attrs/attrs/commit/26c0cef8e48bd131d062d45bdaa0c949d4a2d035"><code>26c0cef</code></a> Streamline workflow</li>
<li><a href="https://github.com/python-attrs/attrs/commit/3333e749781a107c829717f7bc0382d33b538b6e"><code>3333e74</code></a> Remove dead achor</li>
<li><a href="https://github.com/python-attrs/attrs/commit/2d77d83d4e3ceadbf4414da5963623a20564c415"><code>2d77d83</code></a> Fix dataclass_transform links</li>
<li><a href="https://github.com/python-attrs/attrs/commit/b4dc9b07c70c16848960da077fc7ac18fe5e9bc8"><code>b4dc9b0</code></a> Better 2.7 example</li>
<li><a href="https://github.com/python-attrs/attrs/commit/d4e32209dc5855796e57c2b08bdc1c1702d051ab"><code>d4e3220</code></a> Use attrs namespace throughout examples.rst</li>
<li>Additional commits viewable in <a href="https://github.com/python-attrs/attrs/compare/21.2.0...21.3.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=attrs&package-manager=pip&previous-version=21.2.0&new-version=21.3.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
docs/api.rst Show resolved Hide resolved
hynek added a commit that referenced this pull request Jan 21, 2022
qujingpengf added a commit to qujingpengf/ChrisRBe that referenced this pull request Jan 22, 2022
465: build(deps): bump attrs from 21.2.0 to 21.3.0 r=ChrisRBe a=dependabot[bot]

Bumps [attrs](https://github.com/python-attrs/attrs) from 21.2.0 to 21.3.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/python-attrs/attrs/releases">attrs's releases</a>.</em></p>
<blockquote>
<h2>21.3.0</h2>
<p>This is a big release in the history of <code>attrs</code> and finishes an arc that took way too long and also delayed this very overdue release. But it's done: <code>import attrs</code> that has been talked about for years[^issue], but fell victim to “just this one more thing” has <em>finally</em> landed.</p>
<p>From now on, modern <code>attrs</code> code looks like this:</p>
<pre lang="python"><code>from attrs import define
<p><a href="https://github.com/define"><code>`@​define</code></a>`
class HelloWorld:
modern: bool = True
</code></pre></p>
<p>The <code>define</code>/<code>field</code> APIs have been around for over a year and were very popular, now the rest of the package followed suit. I'm very excited that <code>attrs</code> remains relevant and keeps evolving over now more than half a decade. If you're curious about some of the background, the docs now contain a short <a href="https://www.attrs.org/en/stable/names.html">explanation and history lesson</a>. As long as our users keep pushing us, we will keep pushing forward class generation in Python!</p>
<p>Big thanks to my <a href="https://github.com/sponsors/hynek/dashboard">GitHub Sponsors</a>, <a href="https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&amp;utm_medium=referral&amp;utm_campaign=enterprise&amp;utm_term=repo">Tidelift subscribers</a>, and <a href="https://ko-fi.com/the_hynekl">Ko-fi buyers</a> that help me mustering the motivation for such long-running project!</p>
<hr />
<p>Since the release took so long, there's more highlights than we can enumerate here, we'd just like to point out a breaking change in the new APIs: converters now run on setting attributes by default. If this is causing problems to you, you can disable that behavior by setting <code>`@define(on_setattr=[])</code>.</p>`
<p>[^issue]:  I have an issue from 2018 that I wanted to &quot;come back the moment this lands&quot;.</p>
<h1>Full Changelog</h1>
<h2>Backward-incompatible Changes</h2>
<ul>
<li>
<p>When using <code>`@define</code>,` converters are now run by default when setting an attribute on an instance -- additionally to validators. I.e. the new default is <code>on_setattr=[attrs.setters.convert, attrs.setters.validate]</code>.</p>
<p>This is unfortunately a breaking change, but it was an oversight, impossible to raise a <code>DeprecationWarning</code> about, and it's better to fix it now while the APIs are very fresh with few users. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/835">#835</a>, <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/886">#886</a></p>
</li>
<li>
<p><code>import attrs</code> has finally landed! As of this release, you can finally import <code>attrs</code> using its proper name.</p>
<p>Not all names from the <code>attr</code> namespace have been transferred; most notably <code>attr.s</code> and <code>attr.ib</code> are missing. See <code>attrs.define</code> and <code>attrs.field</code> if you haven't seen our next-generation APIs yet. A more elaborate explanation can be found <a href="https://www.attrs.org/en/latest/names.html">On The Core API Names</a></p>
<p>This feature is at least for one release <strong>provisional</strong>. We don't <em>plan</em> on changing anything, but such a big change is unlikely to go perfectly on the first strike.</p>
<p>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 <strong>not</strong> moved -- or even removed -- anything from <code>attr</code>!</p>
<p>Please do report any bugs or documentation inconsistencies! <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/887">#887</a></p>
</li>
</ul>
<h2>Changes</h2>
<ul>
<li><code>attr.asdict(retain_collection_types=False)</code> (default) dumps collection-esque keys as tuples. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/646">#646</a>, <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/888">#888</a></li>
<li><code>__match_args__</code> are now generated to support Python 3.10's <a href="https://docs.python.org/3.10/whatsnew/3.10.html#pep-634-structural-pattern-matching">Structural Pattern Matching</a>. This can be controlled by the <code>match_args</code> argument to the class decorators on Python 3.10 and later. On older versions, it is never added and the argument is ignored. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/815">#815</a></li>
<li>If the class-level <em>on_setattr</em> is set to <code>attrs.setters.validate</code> (default in <code>`@define</code>` and <code>`@mutable</code>)` but no field defines a validator, pretend that it's not set. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/817">#817</a></li>
<li>The generated <code>__repr__</code> is significantly faster on Pythons with f-strings. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/819">#819</a></li>
<li>Attributes transformed via <code>field_transformer</code> are wrapped with <code>AttrsClass</code> again. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/824">#824</a></li>
<li>Generated source code is now cached more efficiently for identical classes. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/828">#828</a></li>
<li>Added <code>attrs.converters.to_bool()</code>. <a href="https://github-redirect.dependabot.com/python-attrs/attrs/issues/830">#830</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/python-attrs/attrs/blob/main/CHANGELOG.rst">attrs's changelog</a>.</em></p>
<blockquote>
<h2>21.3.0 (2021-12-28)</h2>
<p>Backward-incompatible Changes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</p>
<ul>
<li>
<p>When using <code>`@define</code>,` converters are now run by default when setting an attribute on an instance -- additionally to validators.
I.e. the new default is <code>on_setattr=[attrs.setters.convert, attrs.setters.validate]</code>.</p>
<p>This is unfortunately a breaking change, but it was an oversight, impossible to raise a <code>DeprecationWarning</code> about, and it's better to fix it now while the APIs are very fresh with few users.
<code>[#835](python-attrs/attrs#835) &lt;https://github.com/python-attrs/attrs/issues/835&gt;</code><em>,
<code>[#886](python-attrs/attrs#886) &lt;https://github.com/python-attrs/attrs/issues/886&gt;</code></em></p>
</li>
<li>
<p><code>import attrs</code> has finally landed!
As of this release, you can finally import <code>attrs</code> using its proper name.</p>
<p>Not all names from the <code>attr</code> namespace have been transferred; most notably <code>attr.s</code> and <code>attr.ib</code> are missing.
See <code>attrs.define</code> and <code>attrs.field</code> if you haven't seen our next-generation APIs yet.
A more elaborate explanation can be found <code>On The Core API Names &lt;https://www.attrs.org/en/latest/names.html&gt;</code>_</p>
<p>This feature is at least for one release <strong>provisional</strong>.
We don't <em>plan</em> on changing anything, but such a big change is unlikely to go perfectly on the first strike.</p>
<p>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 <strong>not</strong> moved -- or even removed -- anything from <code>attr</code>!</p>
<p>Please do report any bugs or documentation inconsistencies!
<code>[#887](python-attrs/attrs#887) &lt;https://github.com/python-attrs/attrs/issues/887&gt;</code>_</p>
</li>
</ul>
<p>Changes
^^^^^^^</p>
<ul>
<li><code>attr.asdict(retain_collection_types=False)</code> (default) dumps collection-esque keys as tuples.
<code>[#646](python-attrs/attrs#646) &lt;https://github.com/python-attrs/attrs/issues/646&gt;</code><em>,
<code>[#888](python-attrs/attrs#888) &lt;https://github.com/python-attrs/attrs/issues/888&gt;</code></em></li>
<li><code>__match_args__</code> are now generated to support Python 3.10's
<code>Structural Pattern Matching &lt;https://docs.python.org/3.10/whatsnew/3.10.html#pep-634-structural-pattern-matching&gt;</code><em>.
This can be controlled by the <code>match_args</code> argument to the class decorators on Python 3.10 and later.
On older versions, it is never added and the argument is ignored.
<code>[#815](python-attrs/attrs#815) &lt;https://github.com/python-attrs/attrs/issues/815&gt;</code></em></li>
<li>If the class-level <em>on_setattr</em> is set to <code>attrs.setters.validate</code> (default in <code>`@define</code>` and <code>`@mutable</code>)` but no field defines a validator, pretend that it's not set.
<code>[#817](python-attrs/attrs#817) &lt;https://github.com/python-attrs/attrs/issues/817&gt;</code>_</li>
<li>The generated <code>__repr__</code> is significantly faster on Pythons with f-strings.
<code>[#819](python-attrs/attrs#819) &lt;https://github.com/python-attrs/attrs/issues/819&gt;</code>_</li>
<li>Attributes transformed via <code>field_transformer</code> are wrapped with <code>AttrsClass</code> again.
<code>[#824](python-attrs/attrs#824) &lt;https://github.com/python-attrs/attrs/issues/824&gt;</code>_</li>
<li>Generated source code is now cached more efficiently for identical classes.
<code>[#828](python-attrs/attrs#828) &lt;https://github.com/python-attrs/attrs/issues/828&gt;</code>_</li>
<li>Added <code>attrs.converters.to_bool()</code>.
<code>[#830](python-attrs/attrs#830) &lt;https://github.com/python-attrs/attrs/issues/830&gt;</code>_</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/python-attrs/attrs/commit/dd26edd68e12879f716c6554f25d957af299b801"><code>dd26edd</code></a> Prepare 21.3.0</li>
<li><a href="https://github.com/python-attrs/attrs/commit/20bf4b6e54a75201b378cff8e6dd9521d2da28f1"><code>20bf4b6</code></a> Go over CONTRIBUTING.md</li>
<li><a href="https://github.com/python-attrs/attrs/commit/d528dd425980eff3f43b0e29b0ce4dc81ecd8d84"><code>d528dd4</code></a> Fix more links</li>
<li><a href="https://github.com/python-attrs/attrs/commit/fcfb5a692cc8c9f8fde8e39bbd2c5733a47fb1e7"><code>fcfb5a6</code></a> Last pass over changelogs</li>
<li><a href="https://github.com/python-attrs/attrs/commit/e09873485e14e9b11d5d590a55280894df367d92"><code>e098734</code></a> Add logo to PyPI description</li>
<li><a href="https://github.com/python-attrs/attrs/commit/26c0cef8e48bd131d062d45bdaa0c949d4a2d035"><code>26c0cef</code></a> Streamline workflow</li>
<li><a href="https://github.com/python-attrs/attrs/commit/3333e749781a107c829717f7bc0382d33b538b6e"><code>3333e74</code></a> Remove dead achor</li>
<li><a href="https://github.com/python-attrs/attrs/commit/2d77d83d4e3ceadbf4414da5963623a20564c415"><code>2d77d83</code></a> Fix dataclass_transform links</li>
<li><a href="https://github.com/python-attrs/attrs/commit/b4dc9b07c70c16848960da077fc7ac18fe5e9bc8"><code>b4dc9b0</code></a> Better 2.7 example</li>
<li><a href="https://github.com/python-attrs/attrs/commit/d4e32209dc5855796e57c2b08bdc1c1702d051ab"><code>d4e3220</code></a> Use attrs namespace throughout examples.rst</li>
<li>Additional commits viewable in <a href="https://github.com/python-attrs/attrs/compare/21.2.0...21.3.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=attrs&package-manager=pip&previous-version=21.2.0&new-version=21.3.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

467: build(deps): bump virtualenv from 20.10.0 to 20.11.0 r=ChrisRBe a=dependabot[bot]

Bumps [virtualenv](https://github.com/pypa/virtualenv) from 20.10.0 to 20.11.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/pypa/virtualenv/blob/main/docs/changelog.rst">virtualenv's changelog</a>.</em></p>
<blockquote>
<h2>v20.11.0 (2021-12-28)</h2>
<p>Features - 20.11.0</p>
<pre><code>- Avoid deprecation warning from py-filelock argument - by :user:`ofek`. (`[#2237](pypa/virtualenv#2237) &lt;https://github.com/pypa/virtualenv/issues/2237&gt;`_)
- Upgrade embedded setuptools to ``59.4.0`` from ``58.3.0`` - by :user:`gaborbernat`. (`[#2240](pypa/virtualenv#2240) &lt;https://github.com/pypa/virtualenv/issues/2240&gt;`_)
- Drop the runtime dependency of ``backports.entry-points-selectable`` - by :user:`hroncok`. (`[#2246](pypa/virtualenv#2246) &lt;https://github.com/pypa/virtualenv/issues/2246&gt;`_)
- Fish: PATH variables should not be quoted when being set - by :user:`hroncok`. (`[#2248](pypa/virtualenv#2248) &lt;https://github.com/pypa/virtualenv/issues/2248&gt;`_)
</code></pre>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/pypa/virtualenv/commit/72106af48f00936b50160ad9f7a921c91508c983"><code>72106af</code></a> release 20.11.0</li>
<li><a href="https://github.com/pypa/virtualenv/commit/592420e9011ace2b019ac1d833e507724a0f19aa"><code>592420e</code></a> Add changelog</li>
<li><a href="https://github.com/pypa/virtualenv/commit/878c6e09ded9b8e25a18ced1e04ba53075f2b5d2"><code>878c6e0</code></a> Fix the CI (<a href="https://github-redirect.dependabot.com/pypa/virtualenv/issues/2254">#2254</a>)</li>
<li><a href="https://github.com/pypa/virtualenv/commit/ba3541c84a28cb03b42725b3e38bd08526e4768a"><code>ba3541c</code></a> Bump embeded wheels (<a href="https://github-redirect.dependabot.com/pypa/virtualenv/issues/2252">#2252</a>)</li>
<li><a href="https://github.com/pypa/virtualenv/commit/abc655e428cd9a1070ee6ced2a83afcc3f972aa9"><code>abc655e</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://github-redirect.dependabot.com/pypa/virtualenv/issues/2242">#2242</a>)</li>
<li><a href="https://github.com/pypa/virtualenv/commit/bb82a73b6dbf577874f6d4bfaf72d2a7f59dfffe"><code>bb82a73</code></a> Use 'selectable' interface for entry points only when available (<a href="https://github-redirect.dependabot.com/pypa/virtualenv/issues/2246">#2246</a>)</li>
<li><a href="https://github.com/pypa/virtualenv/commit/12a1fc2860761a9cd47c88a24093455d121570a3"><code>12a1fc2</code></a> Properly hide PEP-632 warning on latest version of <code>setuptools</code> (<a href="https://github-redirect.dependabot.com/pypa/virtualenv/issues/2251">#2251</a>)</li>
<li><a href="https://github.com/pypa/virtualenv/commit/1431befa9373225d375d03dcd3aa2b83d51f7a62"><code>1431bef</code></a> fish: PATH variables should not be quoted when being set (<a href="https://github-redirect.dependabot.com/pypa/virtualenv/issues/2248">#2248</a>)</li>
<li><a href="https://github.com/pypa/virtualenv/commit/1f1fdc9a0a5b7af0faf5e6c684d34dfcbf69b61f"><code>1f1fdc9</code></a> Avoid a new deprecation warning from filelock dependency (<a href="https://github-redirect.dependabot.com/pypa/virtualenv/issues/2237">#2237</a>)</li>
<li><a href="https://github.com/pypa/virtualenv/commit/bf5691502d72fba98b2b65a65116dfe94687ea23"><code>bf56915</code></a> Update check.yml</li>
<li>Additional commits viewable in <a href="https://github.com/pypa/virtualenv/compare/20.10.0...20.11.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=virtualenv&package-manager=pip&previous-version=20.10.0&new-version=20.11.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
hynek added a commit that referenced this pull request Feb 2, 2022
shinevue added a commit to shinevue/python-starter that referenced this pull request Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better defaults for asdict/astuple [RFC] Inconvenient defaults?
5 participants