(module_name: str)
| 55 | |
| 56 | |
| 57 | def migrations_module_path(module_name: str) -> Path: |
| 58 | module = importlib.import_module(module_name) |
| 59 | if not hasattr(module, "__path__"): |
| 60 | raise ValueError(f"Migration module {module_name} is not a package") |
| 61 | return Path(next(iter(module.__path__))) |
| 62 | |
| 63 | |
| 64 | @dataclass |
no outgoing calls
no test coverage detected
searching dependent graphs…