MCPcopy
hub / github.com/kubeflow/pipelines / fn

Method fn

sdk/python/kfp/cli/utils/parsing_test.py:55–65  ·  view source on GitHub ↗

My fn. Args: a (str): String a. b (str): String b. Returns: str: Concat str.

(a: str, b: str)

Source from the content-addressed store, hash-verified

53 def test_function(self):
54
55 def fn(a: str, b: str):
56 """My fn.
57
58 Args:
59 a (str): String a.
60 b (str): String b.
61
62 Returns:
63 str: Concat str.
64 """
65 return a + b
66
67 a_descr = parsing.get_param_descr(fn, 'a')
68 self.assertEqual(a_descr, 'String a.')

Callers 15

constructorMethod · 0.80
SidePanel.test.tsxFile · 0.80
generatePropsFunction · 0.80
generatePropsFunction · 0.80
generatePagePropsFunction · 0.80
Trigger.test.tsxFile · 0.80
Toolbar.test.tsxFile · 0.80
generatePropsFunction · 0.80
generatePagePropsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected