(*args)
| 339 | |
| 340 | |
| 341 | def _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 | |
| 351 | def _deduplicate(params, *, unhashable_fallback=False): |
| 352 | # Weed out strict duplicates, preserving the first of each occurrence. |
no test coverage detected