Skip to content

Commit

Permalink
more linting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbdevaney committed Dec 23, 2024
1 parent 50476b9 commit 2432ac1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion new_features_examples/multi_tool_usage_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ToolDefinition:
callable: Optional[Callable] = None


def extract_type_hints(func: Callable) -> Dict[str, Any]:
def extract_type_hints(func: Callable) -> dict:
"""Extract parameter types from function type hints."""
return typing.get_type_hints(func)

Expand Down
12 changes: 6 additions & 6 deletions tests/agent_evals/auto_test_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ def __init__(
self.last_issue_time = datetime.now()

def _get_swarms_version(self) -> str:
"""Get the installed version of Swarms."""
try:
import swarms
"""Get the installed version of Swarms."""

Check failure

Code scanning / Pyre

Parsing failure Error test

Parsing failure [404]: expected an indented block after function definition on line 95
try:
import swarms

return swarms.__version__
except:
return "Unknown"
return swarms.__version__
except:
return "Unknown"

def _get_gpu_info(self) -> Tuple[bool, Optional[str]]:
"""Get GPU information and CUDA availability."""
Expand Down

0 comments on commit 2432ac1

Please sign in to comment.