diff options
| author | Claudiu Popa <pcmanticore@gmail.com> | 2018-04-18 08:34:21 +0200 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-04-18 08:34:21 +0200 |
| commit | 37129d948d336e9a617520a91393646f7c7aff6e (patch) | |
| tree | 27d966261dd2e26a5fe86854330a7f45d833c188 /doc | |
| parent | 50e28f28a3785cc9fa6cdb6efec1daf7f38f09ed (diff) | |
| download | pylint-git-37129d948d336e9a617520a91393646f7c7aff6e.tar.gz | |
defaultdict and subclasses of dict are now handled for dict-iter-* checks
Close #2005
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/whatsnew/1.9.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/whatsnew/1.9.rst b/doc/whatsnew/1.9.rst index 954a22f20..e71a277d8 100644 --- a/doc/whatsnew/1.9.rst +++ b/doc/whatsnew/1.9.rst @@ -47,3 +47,14 @@ New checkers Other Changes ============= + +* `defaultdict` and subclasses of `dict` are now handled for `dict-iter-*` checks. That + means that the following code will now emit warnings for when `iteritems` and friends + are accessed: + + .. code-block:: python + + some_dict = defaultdict(list) + ... + some_dict.iterkeys() + |
