Skip to content

Commit 68bcd7a

Browse files
committed
.
1 parent 8b3d25a commit 68bcd7a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

mypy/checkmember.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,13 @@ def analyze_var(
780780
var.is_initialized_in_class
781781
and (not is_instance_var(var) or mx.is_operator)
782782
):
783-
call_type = _analyze_member_access("__call__", typ, mx)
783+
call_type: ProperType
784+
if isinstance(typ, FunctionLike) and not typ.is_type_obj():
785+
call_type = typ
786+
elif var.is_property:
787+
call_type = get_proper_type(_analyze_member_access("__call__", typ, mx))
788+
else:
789+
call_type = typ
784790
if isinstance(call_type, FunctionLike) and not call_type.is_type_obj():
785791
if mx.is_lvalue:
786792
if var.is_property:

0 commit comments

Comments
 (0)