more linting tests

pull/700/head
Patrick Devaney 1 month ago
parent 50476b9a84
commit 2432ac16c3

@ -19,7 +19,7 @@ class ToolDefinition:
callable: Optional[Callable] = None 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.""" """Extract parameter types from function type hints."""
return typing.get_type_hints(func) return typing.get_type_hints(func)

@ -93,13 +93,13 @@ class SwarmsIssueReporter:
self.last_issue_time = datetime.now() self.last_issue_time = datetime.now()
def _get_swarms_version(self) -> str: def _get_swarms_version(self) -> str:
"""Get the installed version of Swarms.""" """Get the installed version of Swarms."""
try: try:
import swarms import swarms
return swarms.__version__ return swarms.__version__
except: except:
return "Unknown" return "Unknown"
def _get_gpu_info(self) -> Tuple[bool, Optional[str]]: def _get_gpu_info(self) -> Tuple[bool, Optional[str]]:
"""Get GPU information and CUDA availability.""" """Get GPU information and CUDA availability."""

Loading…
Cancel
Save