From 89fcd50567402408d25ae0275ea9bed88b0b70c3 Mon Sep 17 00:00:00 2001 From: Attila Szakacs Date: Fri, 18 Mar 2022 13:33:55 +0100 Subject: [PATCH] dcfg: add better type hint to sentences() Signed-off-by: Attila Szakacs --- neologism/dcfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neologism/dcfg.py b/neologism/dcfg.py index 988553b..86fc504 100644 --- a/neologism/dcfg.py +++ b/neologism/dcfg.py @@ -345,7 +345,7 @@ def is_finite(self) -> bool: return utils.is_multidigraph_finite(self.__graph, self.start_symbol) @property - def sentences(self) -> typing.Set[tuple]: + def sentences(self) -> typing.Set[typing.Tuple[str, ...]]: """ :getter: Returns all possible sentences of the grammar, starting with :attr:`start_symbol`. :type: set[tuple]