Skip to content

Commit 5b40e02

Browse files
committed
No need to return result of writeheader()
This implementation returns None
1 parent 59d4ab9 commit 5b40e02

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

circuitpython_csv.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ def __init__(
233233

234234
def writeheader(self) -> None:
235235
"""Writes the header row to the CSV file"""
236-
header = dict(zip(self.fieldnames, self.fieldnames))
237-
return self.writerow(header)
236+
self.writerow(dict(zip(self.fieldnames, self.fieldnames)))
238237

239238
def _dict_to_list(self, rowdict: Dict[str, Any]) -> Sequence[Any]:
240239
if self.extrasaction == "raise":

0 commit comments

Comments
 (0)