Lines Matching refs:list
12 GenericAlias = type(list[int])
35 # Private list of types that we want to register with the various ABCs
41 # are not included on this list.
433 if isinstance(t_args, (tuple, list)):
436 raise TypeError(f"Expected a list of types, an ellipsis, "
450 args = list(args[:-1]), args[-1]
471 if not isinstance(new_args[0], (tuple, list)):
478 """Checks if obj matches either a list of types, ``...``, ``ParamSpec`` or
483 if isinstance(obj, list):
1097 values = list(values)
1103 Raise IndexError if list is empty or index is out of range.
1120 MutableSequence.register(list)