Skip to content

Commit e09b0c6

Browse files
llcourageLIT team
authored andcommitted
add import of io
PiperOrigin-RevId: 757223579
1 parent a32d30c commit e09b0c6

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

lit_nlp/examples/gcp/model_server_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414
# ==============================================================================
1515

16+
import io
1617
import os
1718
from unittest import mock
1819

@@ -30,6 +31,7 @@ class TestWSGIApp(parameterized.TestCase):
3031
def setUpClass(cls):
3132
super().setUpClass()
3233

34+
_ = io.StringIO('temp data')
3335
test_model_name = 'lit_on_gcp_test_model'
3436
sal_name, tok_name = pd_utils.generate_model_group_names(test_model_name)
3537
test_model_config = f'{test_model_name}:test_model_path'

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ dependencies = [
4141
"termcolor>=2.3.0",
4242
"tqdm>=4.64.0",
4343
"werkzeug>=2.2.3",
44+
"decorator>=4.4.0",
45+
"contextlib2>=21.6.0",
46+
"fsspec>=2023.9.0",
47+
"colorama>=0.4.4",
4448
]
4549
# LINT.ThenChange(./requirements.txt)
4650
classifiers = [

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ six>=1.16.0
3838
termcolor>=2.3.0
3939
tqdm>=4.64.0
4040
werkzeug>=2.2.3
41+
decorator>=4.4.0,
42+
contextlib2>=21.6.0,
43+
fsspec>=2023.9.0,
44+
colorama>=0.4.4,
4145
# LINT.ThenChange(./pyproject.toml)

0 commit comments

Comments
 (0)