We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b3d25a commit 4eb58d6Copy full SHA for 4eb58d6
mypy/checkmember.py
@@ -776,10 +776,7 @@ def analyze_var(
776
freeze_all_type_vars(t)
777
result: Type = t
778
typ = get_proper_type(typ)
779
- if (
780
- var.is_initialized_in_class
781
- and (not is_instance_var(var) or mx.is_operator)
782
- ):
+ if var.is_initialized_in_class and (not is_instance_var(var) or mx.is_operator):
783
call_type = _analyze_member_access("__call__", typ, mx)
784
if isinstance(call_type, FunctionLike) and not call_type.is_type_obj():
785
if mx.is_lvalue:
0 commit comments