Files
openide/python/testData/inspections/PyCallingNonCallableInspection/callDictSubscriptionExpression.py
Andrey Vlasovskikh 63f2789931 Introduced PyCallSiteExpression for distinguishing a[b] and a[b](c) in the type checker (PY-13051)
PyTypeChecker.analyzeCallSite() was used for analyzing the return type
of the call in the same way for different expressions: a[b] and a[b](c)
as analyzeCallSite(a[b]) making it impossible to distinguish between the
two.

Now we pass a PyCallExpression for analyzing the function call instead
of a PyQualifiedExpression.
2014-07-04 13:56:42 +04:00

5 lines
63 B
Python

ops = {'and': all, 'or': any}
op = ops['or']
ops['and']()
op()