Explorar el Código

Add explicit bool cast to rebase.py for mypy compliance

Jelmer Vernooij hace 5 meses
padre
commit
bdf5d2cfef
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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."""