MCPcopy
hub / github.com/python/mypy / complain

Function complain

mypy/config_parser.py:65–68  ·  view source on GitHub ↗
(x: object, additional_info: str = "")

Source from the content-addressed store, hash-verified

63 If an element of the input is not str, a type error will be raised."""
64
65 def complain(x: object, additional_info: str = "") -> Never:
66 raise argparse.ArgumentTypeError(
67 f"Expected a list or a stringified version thereof, but got: '{x}', of type {type(x).__name__}.{additional_info}"
68 )
69
70 if isinstance(v, str):
71 items = [p.strip() for p in re.split(split_regex, v)]

Callers 1

try_splitFunction · 0.85

Calls 1

typeClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…