Skip to content

Commit 975ddea

Browse files
committed
Typing fixes
1 parent e5039c9 commit 975ddea

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/attr/models/test_pytext.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from typing import Dict, List, NoReturn, Optional
99

1010
import torch
11-
from pytext.data.data_handler import CommonMetadata
1211

1312
HAS_PYTEXT = True
1413
try:
@@ -29,6 +28,7 @@
2928
from pytext.models.doc_model import DocModel_Deprecated # @manual=//pytext:main_lib
3029
from pytext.models.embeddings.word_embedding import WordEmbedding
3130
from pytext.models.representations.bilstm_doc_attention import BiLSTMDocAttention
31+
from pytext.data.data_handler import CommonMetadata
3232
except ImportError:
3333
HAS_PYTEXT = False
3434

tests/concept/test_tcav.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
Iterator,
1515
List,
1616
Set,
17-
SupportsIndex,
1817
Tuple,
1918
Union,
2019
)
@@ -174,7 +173,7 @@ def __init__(
174173
self,
175174
get_tensor_from_filename_func: Callable,
176175
path: str,
177-
num_samples: SupportsIndex = 100,
176+
num_samples: int = 100,
178177
) -> None:
179178
r"""
180179
Args:

0 commit comments

Comments
 (0)