Commit 020e5ad
fix: .get() on the regexes proxy is no longer swallowed by __getattr__
1.4's #256 deprecation told users ".get() remains available for
intentional soft access". On CONSTANTS.capitalization_exceptions that
holds -- TupleManager subclasses dict, so .get() comes for free. The
regexes proxy is not a dict, and its catch-all __getattr__ claimed the
name `get` as a regex lookup, so the escape hatch the deprecation
message pointed at raised AttributeError instead.
Define get() explicitly, with dict.get semantics.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent bf1141c commit 020e5ad
2 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
527 | 533 | | |
528 | 534 | | |
529 | 535 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
198 | 210 | | |
199 | 211 | | |
200 | 212 | | |
| |||
0 commit comments