|
@@ -1,4 +1,4 @@
|
|
|
-from typing import Set, NamedTuple, Tuple, Mapping, Dict, List, Iterator, Callable, Any, Optional
|
|
|
|
|
|
|
+from typing import Set, NamedTuple, Tuple, Mapping, Dict, List, Iterator, Callable, Any
|
|
|
|
|
|
|
|
from .helpers import StableDict
|
|
from .helpers import StableDict
|
|
|
|
|
|
|
@@ -258,7 +258,7 @@ class ManifestItem(PropDict):
|
|
|
class DiffChange:
|
|
class DiffChange:
|
|
|
diff_type: str
|
|
diff_type: str
|
|
|
diff_data: Dict[str, Any]
|
|
diff_data: Dict[str, Any]
|
|
|
- def __init__(self, diff_type: str, diff_data: Optional[Dict[str, Any]] = ...) -> None: ...
|
|
|
|
|
|
|
+ def __init__(self, diff_type: str, diff_data: Dict[str, Any] | None = ...) -> None: ...
|
|
|
def to_dict(self) -> Dict[str, Any]: ...
|
|
def to_dict(self) -> Dict[str, Any]: ...
|
|
|
|
|
|
|
|
class ItemDiff:
|
|
class ItemDiff:
|
|
@@ -275,14 +275,14 @@ class ItemDiff:
|
|
|
) -> None: ...
|
|
) -> None: ...
|
|
|
def changes(self) -> Dict[str, DiffChange]: ...
|
|
def changes(self) -> Dict[str, DiffChange]: ...
|
|
|
def equal(self, content_only: bool = ...) -> bool: ...
|
|
def equal(self, content_only: bool = ...) -> bool: ...
|
|
|
- def content(self) -> Optional[DiffChange]: ...
|
|
|
|
|
- def ctime(self) -> Optional[DiffChange]: ...
|
|
|
|
|
- def mtime(self) -> Optional[DiffChange]: ...
|
|
|
|
|
- def mode(self) -> Optional[DiffChange]: ...
|
|
|
|
|
- def type(self) -> Optional[DiffChange]: ...
|
|
|
|
|
- def owner(self) -> Optional[DiffChange]: ...
|
|
|
|
|
- def user(self) -> Optional[DiffChange]: ...
|
|
|
|
|
- def group(self) -> Optional[DiffChange]: ...
|
|
|
|
|
|
|
+ def content(self) -> DiffChange | None: ...
|
|
|
|
|
+ def ctime(self) -> DiffChange | None: ...
|
|
|
|
|
+ def mtime(self) -> DiffChange | None: ...
|
|
|
|
|
+ def mode(self) -> DiffChange | None: ...
|
|
|
|
|
+ def type(self) -> DiffChange | None: ...
|
|
|
|
|
+ def owner(self) -> DiffChange | None: ...
|
|
|
|
|
+ def user(self) -> DiffChange | None: ...
|
|
|
|
|
+ def group(self) -> DiffChange | None: ...
|
|
|
|
|
|
|
|
def chunk_content_equal(chunks_a: Iterator, chunks_b: Iterator) -> bool: ...
|
|
def chunk_content_equal(chunks_a: Iterator, chunks_b: Iterator) -> bool: ...
|
|
|
|
|
|