(string, reload=False)
| 84 | |
| 85 | |
| 86 | def get_obj_from_str(string, reload=False): |
| 87 | module, cls = string.rsplit(".", 1) |
| 88 | if reload: |
| 89 | module_imp = importlib.import_module(module) |
| 90 | importlib.reload(module_imp) |
| 91 | return getattr(importlib.import_module(module, package=None), cls) |
| 92 | |
| 93 | |
| 94 | checkpoint_dict_replacements = { |
no outgoing calls
no test coverage detected