Workaround missing imported packages in some cases (like pre-commit) so the module can still be imported.