more linting tests

pull/700/head
Patrick Devaney 3 weeks ago
parent 50476b9a84
commit 2432ac16c3

@ -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)

@ -93,13 +93,13 @@ class SwarmsIssueReporter:
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."""
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."""

Loading…
Cancel
Save