From cf5453a5cf0ce72d8a17bf8e244e4f417990c4aa Mon Sep 17 00:00:00 2001 From: fitermay Date: Fri, 8 Jul 2016 14:12:42 +0300 Subject: [PATCH] PY-19825 Fixed: Tuple sub-assignment typing broken Find the highest ancestor of tuple, calculate its type and then extract type of its subtuples and their elements --- .../psi/impl/PyTargetExpressionImpl.java | 10 ++++--- .../com/jetbrains/python/PyTypeTest.java | 26 ++++++++++++++++++- 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/python/src/com/jetbrains/python/psi/impl/PyTargetExpressionImpl.java b/python/src/com/jetbrains/python/psi/impl/PyTargetExpressionImpl.java index 28fc40cc833e..f49b53362aaf 100644 --- a/python/src/com/jetbrains/python/psi/impl/PyTargetExpressionImpl.java +++ b/python/src/com/jetbrains/python/psi/impl/PyTargetExpressionImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2014 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -176,16 +176,18 @@ public class PyTargetExpressionImpl extends PyBaseElementImpl