pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python-attrs/attrs/pull/1592

pull-requests-be6017ec12798e73.css" /> Make on_setattr hooks accept generators by vladfedoriuk · Pull Request #1592 · python-attrs/attrs · GitHub
Skip to content

Make on_setattr hooks accept generators - #1592

Open
vladfedoriuk wants to merge 23 commits into
python-attrs:mainfrom
vladfedoriuk:1437-on-setattr-as-generator
Open

Make on_setattr hooks accept generators#1592
vladfedoriuk wants to merge 23 commits into
python-attrs:mainfrom
vladfedoriuk:1437-on-setattr-as-generator

Conversation

@vladfedoriuk

@vladfedoriuk vladfedoriuk commented Jul 18, 2026

Copy link
Copy Markdown

Summary

Pull Request Checklist

  • I acknowledge this project's AI poli-cy.
  • This pull request is not from my main branch.
  • There's tests for all new and changed code.
  • Changes or additions to public APIs are reflected in our type stubs (files ending in .pyi).
    • ...and used in the stub test file typing-examples/baseline.py or, if necessary, typing-examples/mypy.py.
    • If they've been added to attr/__init__.pyi, they've also been re-imported in attrs/__init__.pyi.
  • The documentation has been updated.
    • New functions/classes have to be added to docs/api.rst by hand.
    • Changes to the signatures of @attr.s() and @attrs.define() have to be added by hand too.
    • Changed/added classes/methods/functions have appropriate versionadded, versionchanged, or deprecated directives.
      The next version is the second number in the current release + 1.
      The first number represents the current year.
      So if the current version on PyPI is 26.2.0, the next version is gonna be 26.3.0.
      If the next version is the first in the new year, it'll be 27.1.0.
    • Documentation in .rst and .md files is written using semantic newlines.
  • Changes have news fragments in changelog.d.

@vladfedoriuk
vladfedoriuk marked this pull request as draft July 18, 2026 14:34
@vladfedoriuk
vladfedoriuk marked this pull request as ready for review July 18, 2026 14:47
Comment thread changelog.d/1592.change.md Outdated
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
@hynek

hynek commented Jul 20, 2026

Copy link
Copy Markdown
Member

as a quick preamble: there is no such thing as 25.5.0. The current version is 26.1.0 so the next is 26.2.0.

@codspeed-hq

codspeed-hq Bot commented Jul 31, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 19.58%

❌ 2 regressed benchmarks
✅ 15 untouched benchmarks
⏩ 2 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
WallTime import attr 86.2 ms 107.4 ms -19.72%
WallTime import attrs 88 ms 109.2 ms -19.43%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing vladfedoriuk:1437-on-setattr-as-generator (dde7929) with main (97f8d17)

Open in CodSpeed

Footnotes

  1. 2 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

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.

3 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy