From 4590f9c1393f9a9de3f66d836e05743177cb4830 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Sat, 11 May 2019 20:47:07 +0100 Subject: [PATCH] title property --- hypothesis/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hypothesis/__init__.py b/hypothesis/__init__.py index 47c0656..a30fa29 100644 --- a/hypothesis/__init__.py +++ b/hypothesis/__init__.py @@ -21,9 +21,13 @@ class Entry(NamedTuple): link: Url eid: str annotation: Optional[str] - context: str + context: Url tags: Sequence[str] - hyp_link: str + hyp_link: Url + + @property + def title(self): + return self.summary # TODO eh, remove one of them?... class Page(NamedTuple):