MCPcopy Create free account
hub / github.com/python-arq/arq / args_to_string

Function args_to_string

arq/utils.py:127–135  ·  view source on GitHub ↗
(args: Sequence[Any], kwargs: dict[str, Any])

Source from the content-addressed store, hash-verified

125
126
127def args_to_string(args: Sequence[Any], kwargs: dict[str, Any]) -> str:
128 arguments = ''
129 if args:
130 arguments = ', '.join(map(repr, args))
131 if kwargs:
132 if arguments:
133 arguments += ', '
134 arguments += ', '.join(f'{k}={v!r}' for k, v in sorted(kwargs.items()))
135 return truncate(arguments)
136
137
138def import_string(dotted_path: str) -> Any:

Callers 1

run_jobMethod · 0.85

Calls 1

truncateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…