pytest-csv-params/pytest_csv_params/types.py

18 lines
296 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 Callable, Dict, Optional, Type, TypeVar
T = TypeVar("T")
DataCast = Callable[[str], T]
DataCastDict = Dict[str, DataCast]
BaseDir = Optional[str]
IdColName = Optional[str]
DataFile = str
CsvDialect = Type[csv.Dialect]