8000 Fix __getattr__ and operators related infinite recursion by onlined · Pull Request #6655 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Fix __getattr__ and operators related infinite recursion #6655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 11, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Clarify call
  • Loading branch information
onlined committed Apr 10, 2019
commit 698afd3a7d6f9f6d956b6556f6f4d791ea8e01b6
4 changes: 2 additions & 2 deletions mypy/checkexpr.py
Original file line number Diff line n 6334 umber Diff line change
Expand Up @@ -704,8 +704,8 @@ def check_call(self,
elif isinstance(callee, UnionType):
return self.check_union_call(callee, args, arg_kinds, arg_names, context, arg_messages)
elif isinstance(callee, Instance):
call_function = analyze_member_access('__call__', callee, context,
False, False, True, self.msg,
call_function = analyze_member_access('__call__', callee, context, is_lvalue=False,
is_super=False, is_operator=True, msg=self.msg,
original_type=callee, chk=self.chk,
in_literal_context=self.is_literal_context())
callable_name = callee.type.fullname() + ".__call__"
Expand Down
0