Fix CSV dialect class type support

This commit is contained in:
Rami Abdelrazzaq 2026-09-14 07:04:12 -05:00
commit fb53549500
2 changed files with 14 additions and 2 deletions

View file

@ -1,7 +1,7 @@
import csv
from typing import Any, Sequence, TextIO, Union
from typing import Any, Sequence, TextIO, Type, Union
CsvDialect = Union[str, csv.Dialect]
CsvDialect = Union[str, csv.Dialect, Type[csv.Dialect]]
def rows_to_csv_file(