Jelmer Vernooij 2 månader sedan
förälder
incheckning
0bcf406475
5 ändrade filer med 11 tillägg och 13 borttagningar
  1. 1 3
      dulwich/bitmap.py
  2. 1 1
      dulwich/client.py
  3. 1 3
      dulwich/lfs.py
  4. 6 2
      dulwich/porcelain.py
  5. 2 4
      dulwich/web.py

+ 1 - 3
dulwich/bitmap.py

@@ -459,9 +459,7 @@ def read_bitmap(
         return read_bitmap_file(f, pack_index=pack_index)
 
 
-def read_bitmap_file(
-    f: IO[bytes], pack_index: "PackIndex | None" = None
-) -> PackBitmap:
+def read_bitmap_file(f: IO[bytes], pack_index: "PackIndex | None" = None) -> PackBitmap:
     """Read bitmap data from a file object.
 
     Args:

+ 1 - 1
dulwich/client.py

@@ -3219,7 +3219,7 @@ def default_urllib3_manager(
     base_url: str | None = None,
     timeout: float | None = None,
     cert_reqs: str | None = None,
-) -> "urllib3.ProxyManager" | "urllib3.PoolManager":
+) -> "urllib3.ProxyManager | urllib3.PoolManager":
     """Return urllib3 connection pool manager.
 
     Honour detected proxy configurations.

+ 1 - 3
dulwich/lfs.py

@@ -243,9 +243,7 @@ class LFSPointer:
 class LFSFilterDriver:
     """LFS filter driver implementation."""
 
-    def __init__(
-        self, lfs_store: "LFSStore", config: "Config | None" = None
-    ) -> None:
+    def __init__(self, lfs_store: "LFSStore", config: "Config | None" = None) -> None:
         """Initialize LFSFilterDriver."""
         self.lfs_store = lfs_store
         self.config = config

+ 6 - 2
dulwich/porcelain.py

@@ -3074,10 +3074,14 @@ def push(
         for ref, error in (result.ref_status or {}).items():
             if error is not None:
                 errstream.write(
-                    f"Push of ref {ref.decode('utf-8', 'replace')} failed: {error}\n".encode(err_encoding)
+                    f"Push of ref {ref.decode('utf-8', 'replace')} failed: {error}\n".encode(
+                        err_encoding
+                    )
                 )
             else:
-                errstream.write(f"Ref {ref.decode('utf-8', 'replace')} updated\n".encode())
+                errstream.write(
+                    f"Ref {ref.decode('utf-8', 'replace')} updated\n".encode()
+                )
 
         if remote_name is not None:
             _import_remote_refs(r.refs, remote_name, remote_changed_refs)

+ 2 - 4
dulwich/web.py

@@ -581,8 +581,7 @@ class HTTPGitRequest:
         environ: WSGIEnvironment,
         start_response: StartResponse,
         dumb: bool = False,
-        handlers: dict[bytes, "HandlerConstructor | Callable[..., Any]"]
-        | None = None,
+        handlers: dict[bytes, "HandlerConstructor | Callable[..., Any]"] | None = None,
     ) -> None:
         """Initialize HTTPGitRequest.
 
@@ -686,8 +685,7 @@ class HTTPGitApplication:
         self,
         backend: Backend,
         dumb: bool = False,
-        handlers: dict[bytes, "HandlerConstructor | Callable[..., Any]"]
-        | None = None,
+        handlers: dict[bytes, "HandlerConstructor | Callable[..., Any]"] | None = None,
         fallback_app: WSGIApplication | None = None,
     ) -> None:
         """Initialize HTTPGitApplication.