Explorar el Código

reader.pyi: fix types

Thomas Waldmann hace 1 mes
padre
commit
bb38a63596
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/borg/chunkers/reader.pyi

+ 2 - 2
src/borg/chunkers/reader.pyi

@@ -5,10 +5,10 @@ API_VERSION: str
 has_seek_hole: bool
 
 class _Chunk(NamedTuple):
-    data: bytes
+    data: bytes | None
     meta: Dict[str, Any]
 
-def Chunk(data: bytes, **meta) -> Type[_Chunk]: ...
+def Chunk(data: bytes | None, **meta) -> Type[_Chunk]: ...
 
 fmap_entry = Tuple[int, int, bool]