Add type annotations, describe function return values, and remove unused code

Summary of Changes:
- Added type annotations for improved code clarity
- Describe function return values for better documentation
- Removed unused functions and variables to declutter the code

Related to: #736
This commit is contained in:
刘棒棒 2024-02-02 15:49:40 +08:00
parent 1a1610a67e
commit f605fc4617
2 changed files with 21 additions and 39 deletions

View file

@ -8,8 +8,6 @@ async def test_code_running():
executor = ExecuteNbCode()
output, is_success = await executor.run("print('hello world!')")
assert is_success
output, is_success = await executor.run({"code": "print('hello world!')", "language": "python"})
assert is_success
@pytest.mark.asyncio