fix: Typing

pull/78/head
Raphaël Vinot 2020-06-19 00:40:02 +02:00
parent 6bb26c4358
commit 6e13622d88
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class Indexing():
# ###### Body hashes ######
def body_hash_fequency(self, body_hash: str) -> float:
def body_hash_fequency(self, body_hash: str) -> Dict[str, float]:
return {'hash_freq': self.redis.zscore('body_hashes', body_hash),
'hash_domains_freq': self.redis.zcard(f'bh|{body_hash}')}