MCPcopy Index your code
hub / github.com/modelscope/modelscope / fn_in

Function fn_in

modelscope/utils/plugins.py:250–254  ·  view source on GitHub ↗
(package_name: str, pattern_set: Set[str])

Source from the content-addressed store, hash-verified

248 exclude = exclude if exclude else set()
249
250 def fn_in(package_name: str, pattern_set: Set[str]) -> bool:
251 for pattern in pattern_set:
252 if fnmatch(package_name, pattern):
253 return True
254 return False
255
256 if not fn_in(package_name, include) and fn_in(package_name, exclude):
257 return

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…