Skip to content

Commit 7e0ae4e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f728bfa commit 7e0ae4e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/tests_fabric/loggers/test_csv.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import csv
1515
import itertools
1616
import os
17-
from typing import Dict, List, Set, Tuple
1817
from unittest import mock
1918
from unittest.mock import MagicMock
2019

@@ -209,8 +208,8 @@ def test_append_columns(tmp_path):
209208

210209
def _assert_csv_content(
211210
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]],
214213
) -> None:
215214
"""Verifies the content of a local csv file with the expected ones."""
216215
headers, content = _read_csv(path)
@@ -219,7 +218,7 @@ def _assert_csv_content(
219218
assert actual == expected
220219

221220

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]]]:
223222
"""Reads a local csv file and returns the headers and content."""
224223
with open(path) as file:
225224
reader = csv.DictReader(file)

0 commit comments

Comments
 (0)