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

Function _check_spec_arg_typos

Lib/unittest/mock.py:1326–1332  ·  view source on GitHub ↗
(kwargs_to_check)

Source from the content-addressed store, hash-verified

1324# _check_spec_arg_typos takes kwargs from commands like patch and checks that
1325# they don't contain common misspellings of arguments related to autospeccing.
1326def _check_spec_arg_typos(kwargs_to_check):
1327 typos = ("autospect", "auto_spec", "set_spec")
1328 for typo in typos:
1329 if typo in kwargs_to_check:
1330 raise RuntimeError(
1331 f"{typo!r} might be a typo; use unsafe=True if this is intended"
1332 )
1333
1334
1335class _patch(object):

Callers 2

__init__Method · 0.85
create_autospecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…