Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9345748
D8128.id29360.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
708 B
Subscribers
None
D8128.id29360.diff
View Options
diff --git a/swh/search/elasticsearch.py b/swh/search/elasticsearch.py
--- a/swh/search/elasticsearch.py
+++ b/swh/search/elasticsearch.py
@@ -8,7 +8,7 @@
import logging
import pprint
from textwrap import dedent
-from typing import Any, Dict, Iterable, List, Optional
+from typing import Any, Dict, Iterable, List, Optional, cast
from elasticsearch import Elasticsearch, helpers
import msgpack
@@ -348,7 +348,7 @@
"_index": write_index,
"scripted_upsert": True,
"upsert": {
- **document,
+ **cast(dict, document),
"sha1": sha1,
},
"retry_on_conflict": 10,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 3:30 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3218478
Attached To
D8128: Fix mypy false positive
Event Timeline
Log In to Comment