소스 검색

Fix typing.

Jelmer Vernooij 3 년 전
부모
커밋
bb83067f5d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      dulwich/client.py

+ 2 - 2
dulwich/client.py

@@ -2264,8 +2264,8 @@ def _win32_url_to_path(parsed) -> str:
 
 
     global url2pathname
     global url2pathname
     if url2pathname is None:
     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):
 def get_transport_and_path_from_url(url, config=None, **kwargs):