Commit Diff


commit - 8c92769c9a5b03bc281b333eb2283b0d81d7c974
commit + bb83067f5d021b80d208dd1b93eda8d02578eeb2
blob - bb62f2ee37df941a79464f05d15f44d87b2c9062
blob + 168e28f0da1198afd1fbb89e87ebedda13f17406
--- dulwich/client.py
+++ dulwich/client.py
@@ -2264,8 +2264,8 @@ def _win32_url_to_path(parsed) -> str:
 
     global url2pathname
     if url2pathname is None:
-        from urllib.request import url2pathname
-    return url2pathname(netloc + path)
+        from urllib.request import url2pathname  # type: ignore
+    return url2pathname(netloc + path)  # type: ignore
 
 
 def get_transport_and_path_from_url(url, config=None, **kwargs):