MCPcopy Index your code
hub / github.com/RustPython/RustPython / signature

Method signature

Lib/test/test_inspect/test_inspect.py:3049–3058  ·  view source on GitHub ↗
(func, **kw)

Source from the content-addressed store, hash-verified

3047class TestSignatureObject(unittest.TestCase):
3048 @staticmethod
3049 def signature(func, **kw):
3050 sig = inspect.signature(func, **kw)
3051 return (tuple((param.name,
3052 (... if param.default is param.empty else param.default),
3053 (... if param.annotation is param.empty
3054 else param.annotation),
3055 str(param.kind).lower())
3056 for param in sig.parameters.values()),
3057 (... if sig.return_annotation is sig.empty
3058 else sig.return_annotation))
3059
3060 def test_signature_object(self):
3061 S = inspect.Signature

Calls 3

strFunction · 0.85
lowerMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected