Skip to content

Commit 40b73f2

Browse files
[pre-commit.ci] pre-commit autoupdate (psf#4547)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.14.1](pre-commit/mirrors-mypy@v1.13.0...v1.14.1) * Fix wrapper's return types to be String or Text IO --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Cooper Ry Lees <[email protected]>
1 parent e157ba4 commit 40b73f2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repos:
3939
exclude: ^src/blib2to3/
4040

4141
- repo: https://github.com/pre-commit/mirrors-mypy
42-
rev: v1.13.0
42+
rev: v1.14.1
4343
hooks:
4444
- id: mypy
4545
exclude: ^(docs/conf.py|scripts/generate_schema.py)$

tests/test_black.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1355,8 +1355,10 @@ def test_reformat_one_with_stdin_empty(self) -> None:
13551355

13561356
def _new_wrapper(
13571357
output: io.StringIO, io_TextIOWrapper: type[io.TextIOWrapper]
1358-
) -> Callable[[Any, Any], io.TextIOWrapper]:
1359-
def get_output(*args: Any, **kwargs: Any) -> io.TextIOWrapper:
1358+
) -> Callable[[Any, Any], Union[io.StringIO, io.TextIOWrapper]]:
1359+
def get_output(
1360+
*args: Any, **kwargs: Any
1361+
) -> Union[io.StringIO, io.TextIOWrapper]:
13601362
if args == (sys.stdout.buffer,):
13611363
# It's `format_stdin_to_stdout()` calling `io.TextIOWrapper()`,
13621364
# return our mock object.

0 commit comments

Comments
 (0)