You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+8-1
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,10 @@ so always check `git diff` before comitting any changes!
17
17
Since this tool uses [pyupgrade][pyu], it's best used for
18
18
projects that use it already.
19
19
20
+
**Python 3.10**
21
+
This tool depends on `autoflake` which doesn't yet support Python 3.10.
22
+
However, you can use `3.10` to update older Python syntax.
23
+
20
24
21
25
## Limitations
22
26
Due to the way the tool works, it will reorder the imports multiple times.
@@ -72,7 +76,7 @@ Number of files to process concurrently during initial load.
72
76
**`--full-reorder`**
73
77
Use additional options from [python-reorder-imports][pri] to rewrite
74
78
-`--py38-plus` (default): Imports from `mypy_extensions` and `typing_extensions` when possible.
75
-
-`--py39-plus`: Rewrite [PEP 585][PEP585] typing imports. Additionally `typing.Hashable` and `typing.Sized` will also be replace by their `collections.abc` equivalents.
79
+
-`--py39-plus`: Rewrite [PEP 585][PEP585] typing imports. Additionally `typing.Hashable` and `typing.Sized` will also be replaced by their `collections.abc` equivalents.
76
80
77
81
**`--keep-updates`**
78
82
Keep updates even if no import was removed. Use with caution, might result in more errors.
@@ -107,6 +111,9 @@ Check `git diff` before committing!
107
111
108
112
### Python version options
109
113
114
+
**`--py37-plus`**
115
+
Set the minimum Python syntax version to **3.7**. (Default: **3.8**)
116
+
110
117
**`--py38-plus`**
111
118
Set the minimum Python syntax version to **3.8**. This is the default.
0 commit comments