Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Oct 25, 2024
1 parent be57a0b commit 1f55748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion probablepeople/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def digits(token: str) -> typing.Literal["all_digits", "some_digits", "no_digits
return "no_digits"


def ngrams(word: str, n: int = 2) -> typing.Generator[str]:
def ngrams(word: str, n: int = 2) -> typing.Generator[str, None, None]:
return ("".join(letters) for letters in zip(*[word[i:] for i in range(n)]))


Expand Down

0 comments on commit 1f55748

Please sign in to comment.