Clear all specializations, local instrumentation, and JIT code for the given function.
(f: types.FunctionType)
| 1388 | |
| 1389 | |
| 1390 | def reset_code(f: types.FunctionType) -> types.FunctionType: |
| 1391 | """Clear all specializations, local instrumentation, and JIT code for the given function.""" |
| 1392 | f.__code__ = f.__code__.replace() |
| 1393 | return f |
| 1394 | |
| 1395 | on_github_actions = "GITHUB_ACTIONS" in os.environ |
| 1396 |