MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / is_simple_requires

Function is_simple_requires

src/packagedcode/pypi.py:2155–2163  ·  view source on GitHub ↗

Return True if ``requires`` is a sequence of strings.

(requires)

Source from the content-addressed store, hash-verified

2153
2154
2155def is_simple_requires(requires):
2156 """
2157 Return True if ``requires`` is a sequence of strings.
2158 """
2159 return (
2160 requires
2161 and isinstance(requires, list)
2162 and all(isinstance(i, str) for i in requires)
2163 )
2164
2165
2166def get_dist_dependencies(dist):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected