From cc65d01b44481e265397c9dc43bc964b3fba15c6 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Fri, 27 Dec 2024 20:01:09 -0800 Subject: [PATCH] Add csv.Dialect to second arg of register_dialect() (#13294) --- stdlib/_csv.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/_csv.pyi b/stdlib/_csv.pyi index 826211434..aa9fc5384 100644 --- a/stdlib/_csv.pyi +++ b/stdlib/_csv.pyi @@ -115,7 +115,7 @@ def reader( ) -> _reader: ... def register_dialect( name: str, - dialect: type[Dialect] = ..., + dialect: type[Dialect | csv.Dialect] = ..., *, delimiter: str = ",", quotechar: str | None = '"',