Skip to content

Commit

Permalink
dcfg: add better type hint to sentences()
Browse files Browse the repository at this point in the history
Signed-off-by: Attila Szakacs <[email protected]>
  • Loading branch information
alltilla committed Mar 18, 2022
1 parent 3e6937a commit 89fcd50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neologism/dcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 89fcd50

Please sign in to comment.