Skip to content

Commit

Permalink
Add py.typed and minor typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sushain97 committed May 9, 2018
1 parent 89720d1 commit cb42858
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
include LICENSE
include py.typed
include README.md
include LICENSE
Empty file added py.typed
Empty file.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@
entry_points={
'console_scripts': ['apertium-streamparser=streamparser:main'],
},
package_data={
'streamparser': ['py.typed'],
},
py_modules=['streamparser'],
)
4 changes: 2 additions & 2 deletions streamparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ def parse(stream, with_text=False): # type: (Iterator[str], bool) -> Iterator[U
with_text (bool, optional): A boolean defining whether to output preceding text with each lexical unit.
Yields:
LexicalUnit: The next lexical unit found in the character stream. (if withText is False)
(str, LexicalUnit): The next lexical unit found in the character stream and the the text that seperated it from the prior unit in a tuple. (if withText is True)
LexicalUnit: The next lexical unit found in the character stream. (if with_text is False)
(str, LexicalUnit): The next lexical unit found in the character stream and the the text that seperated it from the prior unit in a tuple. (if with_text is True)
"""

buffer = ''
Expand Down

0 comments on commit cb42858

Please sign in to comment.