MCPcopy Create free account
hub / github.com/AutoForgeAI/autoforge / get_dependencies_safe

Method get_dependencies_safe

api/database.py:80–86  ·  view source on GitHub ↗

Safely extract dependencies, handling NULL and malformed data.

(self)

Source from the content-addressed store, hash-verified

78 }
79
80 def get_dependencies_safe(self) -> list[int]:
81 """Safely extract dependencies, handling NULL and malformed data."""
82 if self.dependencies is None:
83 return []
84 if isinstance(self.dependencies, list):
85 return [d for d in self.dependencies if isinstance(d, int)]
86 return []
87
88
89class Schedule(Base):

Callers 1

_get_test_batchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected