Skip to content

Commit 2137413

Browse files
committed
refactor: fix mypy linter errors
1 parent 1fc38cf commit 2137413

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

raito/handlers/system/eval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async def _execute_code(message: Message, code: str, data: dict[str, Any]) -> No
3838
if evaluation_data.error:
3939
pre_blocks.append(evaluation_data.error[:3000])
4040
elif evaluation_data.result is not None:
41-
text = pre_blocks.append(evaluation_data.result[:3000])
41+
pre_blocks.append(evaluation_data.result[:3000])
4242
else:
4343
pre_blocks.append("no output")
4444

raito/utils/helpers/code_evaluator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ def _wrap_code(self, code: str) -> ast.Module:
6464
kw_defaults=[],
6565
),
6666
body=body,
67+
decorator_list=[],
6768
)
6869

69-
wrapped_module = ast.Module(body=[func_def])
70+
wrapped_module = ast.Module(body=[func_def], type_ignores=[])
7071
ast.fix_missing_locations(wrapped_module)
7172
return wrapped_module
7273

0 commit comments

Comments
 (0)