summaryrefslogtreecommitdiff
path: root/astroid
diff options
context:
space:
mode:
Diffstat (limited to 'astroid')
-rw-r--r--astroid/arguments.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/arguments.py b/astroid/arguments.py
index 5f4d9092..a0db3924 100644
--- a/astroid/arguments.py
+++ b/astroid/arguments.py
@@ -173,7 +173,7 @@ class CallSite:
# Too many arguments given and no variable arguments.
if len(self.positional_arguments) > len(funcnode.args.args):
- if not funcnode.args.vararg:
+ if not funcnode.args.vararg and not funcnode.args.posonlyargs:
raise exceptions.InferenceError(
"Too many positional arguments "
"passed to {func!r} that does "