"examples/vscode:/vscode.git/clone" did not exist on "66c7f6a13e3f2e4306f2e067b8f91959c9714856"
Commit 87a59d41 authored by Baber's avatar Baber
Browse files

add type hints

parent d83f7eb0
...@@ -6,8 +6,8 @@ import os ...@@ -6,8 +6,8 @@ import os
import random import random
import re import re
import string import string
from collections.abc import Iterable, Sequence from collections.abc import Callable, Iterable, Sequence
from typing import Callable, Generic, TypeVar from typing import Generic, TypeVar
import numpy as np import numpy as np
...@@ -207,8 +207,8 @@ def acc_mutual_info_fn(items): # This is a passthrough function ...@@ -207,8 +207,8 @@ def acc_mutual_info_fn(items): # This is a passthrough function
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
def exact_match_hf_evaluate( def exact_match_hf_evaluate(
predictions, predictions: Iterable[str],
references, references: Iterable[str],
regexes_to_ignore=None, regexes_to_ignore=None,
ignore_case=False, ignore_case=False,
ignore_punctuation=False, ignore_punctuation=False,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment