Explorar el Código

Fix mypy no-any-return error in dulwich/sparse_patterns.py

Jelmer Vernooij hace 5 meses
padre
commit
348941ef37
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      dulwich/sparse_patterns.py

+ 1 - 1
dulwich/sparse_patterns.py

@@ -168,7 +168,7 @@ def apply_included_paths(
         norm_data = normalizer.checkin_normalize(disk_data, full_path)
         if not isinstance(blob_obj, Blob):
             return True
-        return norm_data != blob_obj.data
+        return bool(norm_data != blob_obj.data)
 
     # 1) Update skip-worktree bits