Commit 74007f6
ClassBuilder: eval only once (#1407)
* ClassBuilder: eval only once
* avoid Attribute.evolve
* speed up `_make_attr_tuple_class`
* speed up `_add_method_dunders`
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* optimize _CountingAttrs more
* Fix up `_add_method_dunders`
* avoid a hot splitlines
* restore old type_hash
* fix scriptlines handling
* restore contextlib.suppress
* Revert "fix scriptlines handling"
This reverts commit 4e0af4b.
* Revert "avoid a hot splitlines"
This reverts commit 532faed.
* add some hints
* fix tests
* Refactor `_Attributes`
* Reflow
* Reflow docs
* Microoptimization
* Rework type hints a little
* Fix arg name
* Add changelog entry
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent e048efc commit 74007f6
6 files changed
Lines changed: 279 additions & 204 deletions
File tree
- changelog.d
- src/attr
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments