Commit 6c5a6e7
committed
fix: docs examples python version in tests
When performing test on docs example use the version of Python that is
specified by the test block to set the target version of Python.
This fixes failures with later ruff versions which validate the syntax
according to the target Python version more strictly, which was
resulting in a failure then except* was used in the example code against
Python 3.9.1 parent 8039c20 commit 6c5a6e7
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| 170 | + | |
| 171 | + | |
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
| |||
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
191 | | - | |
| 194 | + | |
192 | 195 | | |
193 | 196 | | |
194 | 197 | | |
| |||
0 commit comments