Skip to content

Commit 80991e6

Browse files
author
Guido van Rossum
committed
Also check arg count in weak mode.
1 parent fcf3f52 commit 80991e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/checkexpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def check_call(self, callee: Type, args: List[Node],
238238
arg_types = self.infer_arg_types_in_context2(
239239
callee, args, arg_kinds, formal_to_actual)
240240

241-
if self.chk.typing_mode_full():
241+
if not self.chk.typing_mode_none():
242242
self.check_argument_count(callee, arg_types, arg_kinds,
243243
arg_names, formal_to_actual, context, self.msg)
244244

0 commit comments

Comments
 (0)