Skip to content

Commit b7ac28f

Browse files
authored
Merge pull request #28 from Terseus/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 66841e2 + c77d66a commit b7ac28f

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ repos:
1313
hooks:
1414
- id: isort
1515
- repo: https://github.com/psf/black
16-
rev: 23.3.0
16+
rev: 23.7.0
1717
hooks:
1818
- id: black
1919
- repo: https://github.com/PyCQA/flake8
20-
rev: 6.0.0
20+
rev: 6.1.0
2121
hooks:
2222
- id: flake8
2323
- repo: https://github.com/pre-commit/mirrors-mypy
24-
rev: v1.1.1
24+
rev: v1.5.1
2525
hooks:
2626
- id: mypy

io_chunks/raw_io_chunk.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
UnsupportedOperation,
1010
)
1111
from types import TracebackType
12-
from typing import IO, Optional, Type, Union
12+
from typing import IO, Iterable, Optional, Type, Union
1313

1414
from .exceptions import ClosedStreamError
1515

@@ -206,3 +206,11 @@ def fileno(self) -> int:
206206
Returns the underlying stream `fileno`.
207207
"""
208208
return self._stream.fileno()
209+
210+
def writelines(self, lines: Iterable[bytes]): # type: ignore[override]
211+
"""
212+
This streams doesn't support writing.
213+
214+
:raises UnsupportedOperation:
215+
"""
216+
raise UnsupportedOperation("This stream doesn't support write")

0 commit comments

Comments
 (0)