diff options
author | tmartins <thigm85@gmail.com> | 2020-08-24 10:15:07 +0200 |
---|---|---|
committer | tmartins <thigm85@gmail.com> | 2020-08-24 10:15:07 +0200 |
commit | 46a3d61a10ff6b7b792e735e1efec8fa179a0aae (patch) | |
tree | 6b270e13225a41317b3bbbbdb109956291399e52 /python | |
parent | 2da007683c0a06380fb859f2ba124703d916f0fe (diff) | |
parent | b42f55da3160d3706e3a754d834918da1f92b699 (diff) |
Merge branch 'master' into tgm/pyvespa-tutorial
Diffstat (limited to 'python')
-rw-r--r-- | python/vespa/vespa/application.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vespa/vespa/application.py b/python/vespa/vespa/application.py index 5370340fba3..3ab31c4dd8c 100644 --- a/python/vespa/vespa/application.py +++ b/python/vespa/vespa/application.py @@ -1,9 +1,9 @@ # Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. from typing import Optional, Dict, Tuple, List -from requests import post from pandas import DataFrame from requests import post +from requests.models import Response from vespa.query import Query, VespaResult from vespa.evaluation import EvalMetric @@ -90,7 +90,7 @@ class Vespa(object): r = post(self.search_end_point, json=body) return VespaResult(vespa_result=r.json()) - def feed_data_point(self, schema: str, data_id: str, fields: Dict): + def feed_data_point(self, schema: str, data_id: str, fields: Dict) -> Response: """ Feed a data point to a Vespa app. |