Skip to content

Commit 0898f1d

Browse files
committed
Fix pyright errors
1 parent 74f47b1 commit 0898f1d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

machine/corpora/text_file_alignment_corpus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ def __init__(self, *args, **kwargs) -> None:
2222
file_patterns = (str(p) for p in args)
2323
else:
2424
file_patterns = (str(p) for p in args[0])
25-
collections = (TextFileAlignmentCollection(id, filename) for id, filename in get_files(file_patterns))
25+
collections = (TextFileAlignmentCollection(id, filename) for id, filename, _ in get_files(file_patterns))
2626
super().__init__(collections)

machine/corpora/text_file_text_corpus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010

1111
class TextFileTextCorpus(DictionaryTextCorpus):
1212
@overload
13-
def __init__(self, file_patterns: Iterable[StrPath], data_types: Iterable[DataType]) -> None: ...
13+
def __init__(self, file_patterns: Iterable[StrPath], data_types: Iterable[DataType] = []) -> None: ...
1414

1515
@overload
16-
def __init__(self, *file_patterns: StrPath, data_types: Iterable[DataType]) -> None: ...
16+
def __init__(self, *file_patterns: StrPath, data_types: Iterable[DataType] = []) -> None: ...
1717

1818
def __init__(self, *args, **kwargs) -> None:
1919
file_patterns: Iterable[str]

0 commit comments

Comments
 (0)