Skip to content

Commit 8e9da8a

Browse files
committed
cleanup
Signed-off-by: Mandana Vaziri <[email protected]>
1 parent 46d12b1 commit 8e9da8a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/pdl/pdl_interpreter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# pylint: disable=import-outside-toplevel
2-
from io import StringIO
2+
import csv
33
import json
44
import re
55
import shlex
@@ -8,13 +8,13 @@
88
import time
99
import traceback
1010
import types
11-
import csv
1211

1312
# TODO: temporarily disabling warnings to mute a pydantic warning from liteLLM
1413
import warnings
1514
from abc import ABC, abstractmethod
1615
from concurrent.futures import ThreadPoolExecutor
1716
from functools import partial, reduce
17+
from io import StringIO
1818
from itertools import count
1919
from os import getenv
2020
from pathlib import Path

tests/test_parser.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ def test_parser_case2():
173173
result = exec_str(prog)
174174
assert result == ["1", "2", "3", "4"]
175175

176+
176177
def test_parser_csv():
177178
csv_parser = """
178179
text: |
@@ -182,4 +183,8 @@ def test_parser_csv():
182183
parser: csv
183184
"""
184185
result = exec_str(csv_parser)
185-
assert result == [["1", "Apple", "Red"], ["2", "Orange", "Orange"], ["3", "Banana", "Yellow"]]
186+
assert result == [
187+
["1", "Apple", "Red"],
188+
["2", "Orange", "Orange"],
189+
["3", "Banana", "Yellow"],
190+
]

0 commit comments

Comments
 (0)