Files
openide/python/testData/inspections/PyArgumentListInspection/multiResolveWhenOneResultDoesNotHaveUnmappedParameters.py
Semyon Proshev 6fec0a57a4 Update PyArgumentListInspection to use PyCallExpression.multiMapArguments(PyResolveContext, int)
Unexpected arguments and unfilled parameters are not registered when there is at least one appropriate function.
In case of only one failed arguments mapping quickfixes are suggested, otherwise possible callees are shown.
In case of only one failed parameters mapping parameters' names are mentioned, otherwise possible callees are shown.
2017-01-30 19:58:33 +03:00

18 lines
177 B
Python

class C1:
def foo(self, x):
return self
class C2:
def foo(self, x, y):
return self
def f():
"""
:rtype: C1 | C2
"""
pass
f().foo(1)