MCPcopy Index your code
hub / github.com/python/cpython / _unpack_args

Function _unpack_args

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

Source from the content-addressed store, hash-verified

361
362
363def _unpack_args(*args):
364 newargs = []
365 for arg in args:
366 subargs = getattr(arg, '__typing_unpacked_tuple_args__', None)
367 if subargs is not None and not (subargs and subargs[-1] is ...):
368 newargs.extend(subargs)
369 else:
370 newargs.append(arg)
371 return newargs
372
373def _deduplicate(params, *, unhashable_fallback=False):
374 # Weed out strict duplicates, preserving the first of each occurrence.

Callers 2

__getitem__Method · 0.85

Calls 2

extendMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…