Skip to content

Commit

Permalink
update mypy ignore comments (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
wbolster authored Sep 1, 2023
1 parent f71b999 commit a06935d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsonlines/jsonlines.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ def __attrs_post_init__(self) -> None:
self._fp_is_binary = True
else:
try:
self._fp.write("") # type: ignore[arg-type]
self._fp.write("") # type: ignore[call-overload]
except TypeError:
self._fp_is_binary = True
else:
Expand Down Expand Up @@ -549,7 +549,7 @@ def write(self, obj: Any) -> int:

fp = self._fp
fp.write(line) # type: ignore[arg-type]
fp.write(b"\n" if self._fp_is_binary else "\n") # type: ignore[arg-type]
fp.write(b"\n" if self._fp_is_binary else "\n") # type: ignore[call-overload]

if self._flush:
fp.flush()
Expand Down

0 comments on commit a06935d

Please sign in to comment.