pytest-csv-params/pytest_csv_params/types.py

17 lines
311 B
Python
Raw Normal View History

2022-08-14 22:01:28 +02:00
"""
Types to ease the usage of the API
"""
import csv
from typing import Any, Callable, Dict, Optional, Type
2022-08-14 22:01:28 +02:00
DataCast = Callable[[str], Any]
2022-08-14 22:01:28 +02:00
DataCastDict = Dict[str, DataCast]
DataCasts = Optional[DataCastDict]
2022-08-14 22:01:28 +02:00
BaseDir = Optional[str]
IdColName = Optional[str]
DataFile = str
CsvDialect = Type[csv.Dialect]