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

Function _format_call_signature

Lib/unittest/mock.py:2535–2549  ·  view source on GitHub ↗
(name, args, kwargs)

Source from the content-addressed store, hash-verified

2533
2534
2535def _format_call_signature(name, args, kwargs):
2536 message = '%s(%%s)' % name
2537 formatted_args = ''
2538 args_string = ', '.join([repr(arg) for arg in args])
2539 kwargs_string = ', '.join([
2540 '%s=%r' % (key, value) for key, value in kwargs.items()
2541 ])
2542 if args_string:
2543 formatted_args = args_string
2544 if kwargs_string:
2545 if formatted_args:
2546 formatted_args += ', '
2547 formatted_args += kwargs_string
2548
2549 return message % formatted_args
2550
2551
2552

Callers 2

__repr__Method · 0.85

Calls 3

reprFunction · 0.85
joinMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected