Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8394488
D8186.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
565 B
Subscribers
None
D8186.diff
View Options
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
Details
Attached
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
Attached To
D8186: Fix mypy error on attr >= 22.1.0
Event Timeline
Log In to Comment