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

Function _unpack_args

Lib/typing.py:341–349  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

339
340
341def _unpack_args(*args):
342 newargs = []
343 for arg in args:
344 subargs = getattr(arg, '__typing_unpacked_tuple_args__', None)
345 if subargs is not None and not (subargs and subargs[-1] is ...):
346 newargs.extend(subargs)
347 else:
348 newargs.append(arg)
349 return newargs
350
351def _deduplicate(params, *, unhashable_fallback=False):
352 # Weed out strict duplicates, preserving the first of each occurrence.

Callers 2

__getitem__Method · 0.85

Calls 3

getattrFunction · 0.85
extendMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected