Skip to content

Commit

Permalink
fix type in text_reader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Dec 22, 2024
1 parent fd80773 commit 8de4f26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyglossary/text_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,9 @@ def _open(self, filename: str) -> None:
for _ in self._openGen(filename):
pass

def open(self, filename: str) -> Iterator[tuple[int, int]] | None:
def open(self, filename: str) -> None:
self._filename = filename
self._open(filename)
return None

def openGen(self, filename: str) -> Iterator[tuple[int, int]]:
"""
Expand Down

0 comments on commit 8de4f26

Please sign in to comment.