Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
IMladjenovic committed Dec 13, 2024
1 parent f3c9abe commit 348949e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions backend/src/agents/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ async def invoke(self, utterance: str) -> str:


def chat_agent(name: str, description: str, tools: List[Tool] = None):

Check failure on line 70 in backend/src/agents/agent.py

View workflow job for this annotation

GitHub Actions / Type Checking Backend

Expression of type "None" cannot be assigned to parameter of type "List[Tool]"   "None" is not assignable to "List[Tool]" (reportArgumentType)
if not tools:
tools = []

def decorator(chat_agent: Type[T]) -> Type[T]:
chat_agent.name = name
chat_agent.description = description
Expand Down
2 changes: 1 addition & 1 deletion backend/tests/utils/file_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_handle_file_upload_size():
assert err.value.detail == 'File upload must be less than 10485760 bytes'


def test_handle_file_upload_unsupported_type():
def test_handle_file_upload_missing_file_name():
headers = Headers({"content-type": "text/html"})
with pytest.raises(HTTPException) as err:
handle_file_upload(UploadFile(file=BinaryIO(), size=15*1024, headers=headers, filename="test.txt"))
Expand Down

0 comments on commit 348949e

Please sign in to comment.