瀏覽代碼

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."""