https://bugs.kde.org/show_bug.cgi?id=359912
Francis Herne <m...@flherne.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m...@flherne.uk --- Comment #1 from Francis Herne <m...@flherne.uk> --- This is broken when subscripting most expressions that aren't simply names, in cases where the returned type is found by looking at __getitem__(). Lists, tuples, dicts and some other builtin types are handled separately. Another example: class SomeClass: def __getitem__(self, key): return "Test" def some_func(): return SomeClass() aaa = some_func()[3] # should be str, but is mixed. I'll try to fix it, if I can find how all this Declaration stuff works. -- You are receiving this mail because: You are watching all bug changes.