Update provided type for typing.Callable (PY-28177)

Use custom type inheriting class-like type to suppress `Callable[...]` warnings.
Remove some checks against `Callable` in type checker because they are processed below when matching callable types.
Update custom type to detemine ability to call from the name as well.
This commit is contained in:
Semyon Proshev
2018-02-05 17:19:47 +03:00
parent d647125a63
commit d431a156cd
6 changed files with 42 additions and 21 deletions
@@ -220,6 +220,11 @@ public class Py3UnresolvedReferencesInspectionTest extends PyInspectionTestCase
doTest();
}
// PY-28177
public void testTypingOpaqueNameDunderGetItem() {
doTest();
}
// PY-21655
public void testUsageOfFunctionDecoratedWithAsyncioCoroutine() {
doMultiFileTest("a.py");