Page MenuHomeSoftware Heritage

D8186.diff
No OneTemporary

D8186.diff

diff --git a/swh/model/model.py b/swh/model/model.py
--- a/swh/model/model.py
+++ b/swh/model/model.py
@@ -197,7 +197,9 @@
def check(self) -> None:
"""Performs internal consistency checks, and raises an error if one fails."""
- attr.validate(self)
+ # without the type-ignore comment below, attr >= 22.1.0 causes mypy to report:
+ # Argument 1 has incompatible type "BaseModel"; expected "AttrsInstance"
+ attr.validate(self) # type: ignore[arg-type]
def _compute_hash_from_manifest(manifest: bytes) -> Sha1Git:

File Metadata

Mime Type
text/plain
Expires
Tue, Jun 3, 7:25 PM (1 w, 7 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3222076

Event Timeline