https://bugs.kde.org/show_bug.cgi?id=373847

            Bug ID: 373847
           Summary: No argument type-hints for __{get,set}__item
           Product: kdev-python
           Version: git master
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Language support
          Assignee: m...@svenbrauch.de
          Reporter: m...@flherne.uk
  Target Milestone: ---

Particularly for __setitem__, this can be a problem:

```
class MyClass:
   def __init__(self):
       self._contents = []

   def __getitem__(self, key):
       return self._contents[key]

   def __getitem__(self, key, value):
       self._contents[key] = value
```

...because then we don't deduce the type of MyClass._contents.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to