Procházet zdrojové kódy

Add explicit bool cast to rebase.py for mypy compliance

Jelmer Vernooij před 5 měsíci
rodič
revize
bdf5d2cfef
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      dulwich/rebase.py

+ 1 - 1
dulwich/rebase.py

@@ -458,7 +458,7 @@ class Rebaser:
 
     def is_in_progress(self) -> bool:
         """Check if a rebase is currently in progress."""
-        return self._state_manager.exists()
+        return bool(self._state_manager.exists())
 
     def abort(self) -> None:
         """Abort an in-progress rebase and restore original state."""