Skip to content

Commit 5fbedff

Browse files
DetachHeadKotlinIsland
authored andcommitted
i thought we were speaking english in this project
1 parent 34d55ea commit 5fbedff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mypy/checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5388,7 +5388,7 @@ def visit_decorator_inner(self, e: Decorator, allow_empty: bool = False) -> None
53885388
and not e.func.is_class
53895389
):
53905390
self.fail(
5391-
'This decorator returns a "Callable", not a "FunctionType". Decorate this decorator with "basedtyping.as_functiontype", or add a \'type: ignore\' it if it\'s intentional',
5391+
'This decorator returns a "Callable", not a "FunctionType". Decorate this decorator with "basedtyping.as_functiontype", or add a \'type: ignore\' if it\'s intentional',
53925392
e,
53935393
code=codes.CALLABLE_FUNCTIONTYPE,
53945394
)

test-data/unit/check-based-callable.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def dec(fn: Callable[[T], None]) -> Callable[[T], None]: ...
160160

161161
class A:
162162
def m1(self): ...
163-
@dec # E: This decorator returns a "Callable", not a "FunctionType". Decorate this decorator with "basedtyping.as_functiontype", or add a 'type: ignore' it if it's intentional [callable-functiontype]
163+
@dec # E: This decorator returns a "Callable", not a "FunctionType". Decorate this decorator with "basedtyping.as_functiontype", or add a 'type: ignore' if it's intentional [callable-functiontype]
164164
def m2(self): ...
165165
@as_functiontype
166166
@dec

0 commit comments

Comments
 (0)