Skip to content

Commit cbc0fd7

Browse files
authored
_csv: argument fixes (#14851)
1 parent 4e6a00e commit cbc0fd7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

stdlib/_csv.pyi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ else:
9292
def writerows(self, rows: Iterable[Iterable[Any]]) -> None: ...
9393

9494
def writer(
95-
csvfile: SupportsWrite[str],
95+
fileobj: SupportsWrite[str],
9696
/,
9797
dialect: _DialectLike = "excel",
9898
*,
@@ -106,7 +106,7 @@ def writer(
106106
strict: bool = False,
107107
) -> _writer: ...
108108
def reader(
109-
csvfile: Iterable[str],
109+
iterable: Iterable[str],
110110
/,
111111
dialect: _DialectLike = "excel",
112112
*,
@@ -121,7 +121,8 @@ def reader(
121121
) -> _reader: ...
122122
def register_dialect(
123123
name: str,
124-
dialect: type[Dialect | csv.Dialect] = ...,
124+
/,
125+
dialect: type[Dialect | csv.Dialect] | str = "excel",
125126
*,
126127
delimiter: str = ",",
127128
quotechar: str | None = '"',

0 commit comments

Comments
 (0)