Files
openide/python/testData/inspections/PyArgumentListInspection/parameterWithDefaultAfterKeywordContainer2.py
Semyon Proshev 1e07ba1cfa Avoid duplicate messages in compatibility inspection and unsupported features annotator (PY-33516)
Inspection does not register `CompatibilityVisitor` problems for its opened file language because in such a case
`UnsupportedFeatures` will annotate them.
Also `registerOnFirstMatchingVersion` methods were removed because
they could lead to duplication even if languages to register were different.
2019-01-14 17:27:39 +03:00

10 lines
251 B
Python

kwargs = {'foo': 'bar'}
class Foo(object):
def __init__(self, **kwargs):
pass
@classmethod
def test(cls):
cls(**kwargs, <error descr="Python version 2.7 does not allow keyword arguments after **expression">foo=1</error>)