Skip to content

Commit b69c7d9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f47fc22 commit b69c7d9

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

mypy/messages.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
CallExpr,
4545
ClassDef,
4646
Context,
47-
Expression,
4847
Decorator,
48+
Expression,
4949
FuncDef,
5050
IndexExpr,
5151
MypyFile,
@@ -788,8 +788,8 @@ def incompatible_argument(
788788
func_name = outer_context.func.name
789789
msg = (
790790
f'Decorated function "{func_name}" has incompatible type '
791-
f'{quote_type_string(arg_type_str)}; expected '
792-
f'{quote_type_string(expected_type_str)}'
791+
f"{quote_type_string(arg_type_str)}; expected "
792+
f"{quote_type_string(expected_type_str)}"
793793
)
794794
elif simple_message:
795795
msg = "Argument has incompatible type"

mypy/test/data.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@
1010
import sys
1111
import tempfile
1212
from abc import abstractmethod
13-
from collections.abc import Iterator
13+
from collections.abc import Callable, Iterator
1414
from dataclasses import dataclass
1515
from pathlib import Path
1616
from re import Pattern
17-
from typing import Any, Callable, Final, NamedTuple, NoReturn, Union
18-
from typing_extensions import TypeAlias as _TypeAlias
1917
from typing import Any, Final, NamedTuple, NoReturn, TypeAlias as _TypeAlias
2018

2119
import pytest

0 commit comments

Comments
 (0)