We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b14f000 commit 8ce57fcCopy full SHA for 8ce57fc
codeflash/code_utils/formatter.py
@@ -8,7 +8,7 @@
8
import subprocess
9
import tempfile
10
from pathlib import Path
11
-from typing import Optional, Union
+from typing import Any, Optional, Union
12
13
import isort
14
@@ -163,7 +163,7 @@ def format_code(
163
return formatted_code
164
165
166
-def sort_imports(code: str, **kwargs) -> str: # noqa: ANN003
+def sort_imports(code: str, **kwargs: Any) -> str: # noqa : ANN401
167
try:
168
# Deduplicate and sort imports, modify the code in memory, not on disk
169
sorted_code = isort.code(code, **kwargs)
0 commit comments