Commit b607774
committed
chore(ruff) Autofixes for ruff with Python 3.10+
Fixed 10 errors:
- src/vcspull/_internal/config_reader.py:
1 × UP035 (deprecated-import)
- src/vcspull/config.py:
1 × I001 (unsorted-imports)
1 × UP035 (deprecated-import)
- src/vcspull/types.py:
1 × I001 (unsorted-imports)
1 × UP035 (deprecated-import)
- src/vcspull/validator.py:
1 × UP035 (deprecated-import)
- tests/test_cli.py:
1 × UP007 (non-pep604-annotation-union)
1 × UP035 (deprecated-import)
1 × I001 (unsorted-imports)
1 × UP045 (non-pep604-annotation-optional)
Found 10 errors (10 fixed, 0 remaining).
Changes:
- Moved TypeAlias imports from typing_extensions to typing for Python 3.10+ compatibility
- Updated imports to use typing.TypeGuard and typing.Literal instead of typing_extensions
- Converted Union/Optional patterns to PEP 604 union syntax
- Fixed import sorting and deprecated import patterns1 parent 348a417 commit b607774
6 files changed
Lines changed: 8 additions & 8 deletions
File tree
- src/vcspull
- _internal
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments