1.1 --- a/deducer.py Wed Feb 08 01:21:39 2017 +0100
1.2 +++ b/deducer.py Wed Feb 08 16:20:27 2017 +0100
1.3 @@ -1863,8 +1863,8 @@
1.4 'object_type' identified by 'ref' is compatible with any arguments used.
1.5 """
1.6
1.7 - arguments = self.reference_invocations.get(location)
1.8 - if arguments is None:
1.9 + invocation = self.reference_invocations.get(location)
1.10 + if invocation is None:
1.11 return True
1.12
1.13 objpath = ref.get_origin()
1.14 @@ -1876,12 +1876,15 @@
1.15 return True
1.16
1.17 defaults = self.importer.function_defaults.get(objpath)
1.18 + arguments, keywords = invocation
1.19 + names = set(parameters)
1.20
1.21 # Determine whether the specified arguments are
1.22 # compatible with the callable signature.
1.23
1.24 if arguments >= len(parameters) - len(defaults) and \
1.25 - arguments <= len(parameters):
1.26 + arguments <= len(parameters) and \
1.27 + names.issuperset(keywords):
1.28
1.29 return True
1.30 else: