Add `with_urls` option for partial_imports