MCPcopy Create free account
hub / github.com/modelscope/modelscope / __init__

Method __init__

modelscope/utils/input_output.py:325–336  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

323 """
324
325 def __init__(self) -> None:
326 super().__init__()
327 self.parameters = []
328 self.has_call = False
329 self.preprocess_parameters = []
330 self.has_preprocess = False
331 self.has_postprocess = False
332 self.has_forward = False
333 self.forward_parameters = []
334 self.postprocess_parameters = []
335 self.lineno = 0
336 self.end_lineno = 0
337
338 def visit_FunctionDef(self, node: ast.FunctionDef) -> Any:
339 if node.name == '__call__':

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected