(kwargs_to_check)
| 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. |
| 1326 | def _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 | |
| 1335 | class _patch(object): |
no outgoing calls
no test coverage detected
searching dependent graphs…