Make return type weak for functions decorated with unknown decorator (PY-28626)

Or decorator that could change return type.
This commit is contained in:
Semyon Proshev
2018-03-27 21:33:54 +03:00
parent b4b4b3c0f6
commit 68b17b57c0
13 changed files with 42 additions and 10 deletions
@@ -108,6 +108,11 @@ public class PyCallingNonCallableInspectionTest extends PyInspectionTestCase {
doTest();
}
// PY-28626
public void testFunctionDecoratedAsContextManager() {
doMultiFileTest();
}
@NotNull
@Override
protected Class<? extends PyInspection> getInspectionClass() {