Răsfoiți Sursa

Add explicit bool cast to rebase.py for mypy compliance

Jelmer Vernooij 5 luni în urmă
părinte
comite
bdf5d2cfef
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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."""