> I think you're saying that the lint-feature of PyCharm is trying to
> guess the object types, and telling you there's a conflict here. I
> don't think you're saying that it executes incorrectly.
Hah, yeah sorry Dave that's it.
> Still there are ways to express it differently, and maybe one
On 02/12/2013 02:59 PM, Joseph L. Casale wrote:
I have an issue with some code I have been passed:
I had to read it about four times before I knew what you were saying.
Maybe I still have it wrong.
for (x, y) in [(a_dict1, a_tuple[0]), (a_dict2, a_tuple[1])]:
I only noticed it as PyCharm
I have an issue with some code I have been passed:
for (x, y) in [(a_dict1, a_tuple[0]), (a_dict2, a_tuple[1])]:
I only noticed it as PyCharm failed to assign the str type to y, whereas it knew
the tuples 0 and 1 item were type str.
In the loop it flags the passing of y into a method that expe