diff --git a/python/psi-api/src/com/jetbrains/python/psi/impl/PyTypeProvider.java b/python/psi-api/src/com/jetbrains/python/psi/impl/PyTypeProvider.java index 38a0ee670050..b3ad13c7ef04 100644 --- a/python/psi-api/src/com/jetbrains/python/psi/impl/PyTypeProvider.java +++ b/python/psi-api/src/com/jetbrains/python/psi/impl/PyTypeProvider.java @@ -41,9 +41,6 @@ public interface PyTypeProvider { @Nullable PyType getReturnType(@NotNull PyFunction function, @Nullable PyQualifiedExpression callSite, @NotNull TypeEvalContext context); - @Nullable - PyType getIterationType(@NotNull PyClass iterable); - @Nullable PyType getContextManagerVariableType(PyClass contextManager, PyExpression withExpression, TypeEvalContext context); diff --git a/python/psi-api/src/com/jetbrains/python/psi/types/PyTypeProviderBase.java b/python/psi-api/src/com/jetbrains/python/psi/types/PyTypeProviderBase.java index dc20bad8f36f..b449e5dd9377 100644 --- a/python/psi-api/src/com/jetbrains/python/psi/types/PyTypeProviderBase.java +++ b/python/psi-api/src/com/jetbrains/python/psi/types/PyTypeProviderBase.java @@ -106,11 +106,6 @@ public class PyTypeProviderBase implements PyTypeProvider { return null; } - @Override - public PyType getIterationType(@NotNull PyClass iterable) { - return null; - } - @Nullable @Override public PyType getContextManagerVariableType(PyClass contextManager, PyExpression withExpression, TypeEvalContext context) { diff --git a/python/src/com/jetbrains/python/codeInsight/stdlib/PyStdlibTypeProvider.java b/python/src/com/jetbrains/python/codeInsight/stdlib/PyStdlibTypeProvider.java index d98567f40c43..7aeeca4f6095 100644 --- a/python/src/com/jetbrains/python/codeInsight/stdlib/PyStdlibTypeProvider.java +++ b/python/src/com/jetbrains/python/codeInsight/stdlib/PyStdlibTypeProvider.java @@ -135,18 +135,6 @@ public class PyStdlibTypeProvider extends PyTypeProviderBase { return null; } - @Nullable - @Override - public PyType getIterationType(@NotNull PyClass iterable) { - final PyBuiltinCache builtinCache = PyBuiltinCache.getInstance(iterable); - if (builtinCache.hasInBuiltins(iterable)) { - if ("file".equals(iterable.getName())) { - return builtinCache.getStrType(); - } - } - return null; - } - @Nullable @Override public PyType getContextManagerVariableType(@NotNull PyClass contextManager, @NotNull PyExpression withExpression, @NotNull TypeEvalContext context) { diff --git a/python/src/com/jetbrains/python/psi/impl/PyTargetExpressionImpl.java b/python/src/com/jetbrains/python/psi/impl/PyTargetExpressionImpl.java index fd49c2543cc7..3a63428c69e6 100644 --- a/python/src/com/jetbrains/python/psi/impl/PyTargetExpressionImpl.java +++ b/python/src/com/jetbrains/python/psi/impl/PyTargetExpressionImpl.java @@ -392,13 +392,6 @@ public class PyTargetExpressionImpl extends PyPresentableElementImpl