Skip to content

Commit 8ce57fc

Browse files
author
Codeflash Bot
committed
mypy fix
1 parent b14f000 commit 8ce57fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeflash/code_utils/formatter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import subprocess
99
import tempfile
1010
from pathlib import Path
11-
from typing import Optional, Union
11+
from typing import Any, Optional, Union
1212

1313
import isort
1414

@@ -163,7 +163,7 @@ def format_code(
163163
return formatted_code
164164

165165

166-
def sort_imports(code: str, **kwargs) -> str: # noqa: ANN003
166+
def sort_imports(code: str, **kwargs: Any) -> str: # noqa : ANN401
167167
try:
168168
# Deduplicate and sort imports, modify the code in memory, not on disk
169169
sorted_code = isort.code(code, **kwargs)

0 commit comments

Comments
 (0)