Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

serge-sans-paille
Copy link
Contributor

Related to #1404

@hynek
Copy link
Member

hynek commented Feb 8, 2025

Thanks! How would you summarize the change for the changelog and .. versionchanged?

attrs.make_class() now allows for Unicode class and field names.

?

@serge-sans-paille
Copy link
Contributor Author

serge-sans-paille commented Feb 8, 2025

It's actually just

attrs.make_class() now allows for Unicode class name

Attribute name was correctly supported before that patch, it's just my testing code that was incorrect (I was testing a kwargs that contained the unnormalized attribute name, and that doesn't work for real class, there's no reason it should work with attrs)

Do you want me to update the patch (if so, where?) or are you going to do the doc/changelog update on your own?

btw thanks for the quick answers!

@hynek
Copy link
Member

hynek commented Feb 9, 2025

thanks; it was faster to do it myself, than explaining it: fc8b9c6

@hynek hynek enabled auto-merge February 9, 2025 07:09
@hynek hynek added this pull request to the merge queue Feb 9, 2025
Merged via the queue into python-attrs:main with commit 75723b7 Feb 9, 2025
18 checks passed
luketainton pushed a commit to luketainton/pypilot that referenced this pull request Mar 12, 2025
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [attrs](https://github.com/python-attrs/attrs) ([changelog](https://www.attrs.org/en/stable/changelog.html)) | project.dependencies | minor | `==25.1.0` -> `==25.2.0` |

---

### Release Notes

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

### [`v25.2.0`](https://github.com/python-attrs/attrs/blob/HEAD/CHANGELOG.md#2520---2025-03-12)

[Compare Source](python-attrs/attrs@25.1.0...25.2.0)

##### Changes

-   Checking mandatory vs non-mandatory attribute order is now performed after the field transformer, since the field transformer may change attributes and/or their order.
    [#&#8203;1147](python-attrs/attrs#1147)
-   `attrs.make_class()` now allows for Unicode class names.
    [#&#8203;1406](python-attrs/attrs#1406)
-   Speed up class creation by 30%-50% by compiling methods only once and using a variety of other techniques.
    [#&#8203;1407](python-attrs/attrs#1407)
-   The error message if an attribute has both an annotation and a type argument will now disclose *what* attribute seems to be the problem.
    [#&#8203;1410](python-attrs/attrs#1410)

</details>

---

### Configuration

πŸ“… **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

β™» **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

πŸ”• **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xOTYuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE5Ni4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: https://git.tainton.uk/repos/pypilot/pulls/316
Reviewed-by: Luke Tainton <[email protected]>
Co-authored-by: Renovate [BOT] <[email protected]>
Co-committed-by: Renovate [BOT] <[email protected]>
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.

2 participants