Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Make the automatic checks happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkgr committed Nov 25, 2021
1 parent bac285a commit dbd7310
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion allennlp/common/file_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""
Utilities for working with the local dataset cache.
"""
import string
import weakref
from contextlib import contextmanager
import glob
Expand Down
4 changes: 2 additions & 2 deletions allennlp/data/dataset_readers/babi.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def _read(self, file_path: PathOrStr) -> Iterable[Instance]:
else:
context.append(new_entry)

def text_to_instance(
self, # type: ignore
def text_to_instance( # type: ignore
self,
context: List[List[str]],
question: List[str],
answer: str,
Expand Down
4 changes: 2 additions & 2 deletions allennlp/data/dataset_readers/text_classification_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ def _truncate(self, tokens):
tokens = tokens[: self._max_sequence_length]
return tokens

def text_to_instance(
def text_to_instance( # type: ignore
self, text: str, label: Union[str, int] = None
) -> Instance: # type: ignore
) -> Instance:
"""
# Parameters
Expand Down

0 comments on commit dbd7310

Please sign in to comment.