Преглед изворни кода

Add explicit bool cast to rebase.py for mypy compliance

Jelmer Vernooij пре 5 месеци
родитељ
комит
bdf5d2cfef
1 измењених фајлова са 1 додато и 1 уклоњено
  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."""