Commit 57dfcac
authored
feat!: adopt Python 3.13 as minimum supported version (#61)
* feat!: adopt Python 3.13 as minimum supported version
- Bump requires-python to >=3.13 (drops 3.10–3.12 support)
- Add .python-version pinned to 3.13.11 via pyenv
- Update black target-version to py313
- Add README Requirements section noting Python >= 3.13
- decorators.py: use generic function syntax [T: Callable] (PEP 695)
so type checkers preserve the decorated callable's type
- decorator_processor.py: add DecoratorInfo, ElementResult TypedDicts
with ReadOnly fields (PEP 705, typing.ReadOnly new in 3.13); add
FormattedEntry/RequirementAnnotations/FormattedData TypedDicts for
format_results return type; add `type Results` alias (PEP 695)
* chore: loosen .python-version to 3.13 (latest 3.13.x)1 parent 4b745a3 commit 57dfcac
5 files changed
Lines changed: 54 additions & 17 deletions
File tree
- src/reqstool_python_decorators
- decorators
- processors
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
Lines changed: 39 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
22 | 52 | | |
23 | 53 | | |
24 | 54 | | |
| |||
47 | 77 | | |
48 | 78 | | |
49 | 79 | | |
50 | | - | |
| 80 | + | |
51 | 81 | | |
52 | 82 | | |
53 | 83 | | |
| |||
86 | 116 | | |
87 | 117 | | |
88 | 118 | | |
89 | | - | |
| 119 | + | |
90 | 120 | | |
91 | 121 | | |
92 | 122 | | |
| |||
132 | 162 | | |
133 | 163 | | |
134 | 164 | | |
135 | | - | |
| 165 | + | |
136 | 166 | | |
137 | 167 | | |
138 | 168 | | |
139 | 169 | | |
140 | 170 | | |
141 | 171 | | |
142 | 172 | | |
143 | | - | |
| 173 | + | |
144 | 174 | | |
145 | 175 | | |
146 | 176 | | |
147 | 177 | | |
148 | 178 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
154 | 184 | | |
155 | 185 | | |
156 | 186 | | |
| |||
0 commit comments