GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Accept valid unicode identifiers as class parameter to make_class by serge-sans-paille · Pull Request #1406 · python-attrs/attrs

Conversation

@serge-sans-paille

@serge-sans-paille serge-sans-paille commented Feb 8, 2025

Copy link
Copy Markdown
Contributor

Related to #1404

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@serge-sans-paille
Accept valid unicode identifiers as class parameter to make_class
701d807
Related to python-attrs#1404
@serge-sans-paille serge-sans-paille mentioned this pull request Feb 8, 2025
Valid Unicode identifier can be used as field name but not as kwargs #1405
Closed
@hynek

hynek commented Feb 8, 2025

Copy link
Copy Markdown
Member

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

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

?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@serge-sans-paille

serge-sans-paille commented Feb 8, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

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!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

hynek added 2 commits February 9, 2025 08:03
@hynek
Test code style
c30e40e
@hynek
Add changelog
fc8b9c6
@hynek

hynek commented Feb 9, 2025

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hynek
hynek enabled auto-merge February 9, 2025 07:09
hynek
hynek approved these changes Feb 9, 2025
View reviewed changes
@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
luketainton pushed a commit to luketainton/repos_pypilot that referenced this pull request Mar 12, 2025
Renovate [BOT] @luketainton
fix(deps): update dependency attrs to v25.2.0 (#316)
90d3133
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

Reviewers

@hynek hynek hynek approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@serge-sans-paille @hynek
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.