File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
tests/tests_fabric/loggers Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 14
14
import csv
15
15
import itertools
16
16
import os
17
- from typing import Dict , List , Set , Tuple
18
17
from unittest import mock
19
18
from unittest .mock import MagicMock
20
19
@@ -209,8 +208,8 @@ def test_append_columns(tmp_path):
209
208
210
209
def _assert_csv_content (
211
210
path : str ,
212
- expected_headers : Set [str ],
213
- expected_content : List [ Dict [str , str ]],
211
+ expected_headers : set [str ],
212
+ expected_content : list [ dict [str , str ]],
214
213
) -> None :
215
214
"""Verifies the content of a local csv file with the expected ones."""
216
215
headers , content = _read_csv (path )
@@ -219,7 +218,7 @@ def _assert_csv_content(
219
218
assert actual == expected
220
219
221
220
222
- def _read_csv (path : str ) -> Tuple [ Set [str ], List [ Dict [str , str ]]]:
221
+ def _read_csv (path : str ) -> tuple [ set [str ], list [ dict [str , str ]]]:
223
222
"""Reads a local csv file and returns the headers and content."""
224
223
with open (path ) as file :
225
224
reader = csv .DictReader (file )
You can’t perform that action at this time.
0 commit comments