summaryrefslogtreecommitdiff
path: root/doc/whatsnew/2/2.1/full.rst
blob: 03d1e82ac1151b68c64d480decad689e7205da1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
Full changelog
==============

What's New in Pylint 2.1.1?
---------------------------
Release date: 2018-08-07

* fix pylint crash due to ``misplaced-format-function`` not correctly handling class attribute.

  Closes #2384

* Do not emit \*-builtin for Python 3 builtin checks when the builtin is used inside a try-except

  Closes #2228

* ``simplifiable-if-statement`` not emitted when dealing with subscripts


What's New in Pylint 2.1?
-------------------------

Release date: 2018-08-01

* ``trailing-comma-tuple`` gets emitted for ``yield`` statements as well.

  Closes #2363

* Get only the arguments of the scope function for ``redefined-argument-from-local``

  Closes #2364

* Add a check ``misplaced-format-function`` which is emitted if format function is used on
  non str object.

  Closes #2200

* ``chain.from_iterable`` no longer emits `dict-{}-not-iterating` when dealing with dict values and keys

* Demote the ``try-except-raise`` message from an error to a warning (E0705 -> W0706)

  Closes #2323

* Correctly handle the new name of the Python implementation of the ``abc`` module.

  Closes pylint-dev/astroid#2288

* Modules with ``__getattr__`` are exempted by default from ``no-member``

  There's no easy way to figure out if a module has a particular member when
  the said module uses ``__getattr__``, which is a new addition to Python 3.7.
  Instead we assume the safe thing to do, in the same way we do for classes,
  and skip those modules from checking.

  Closes #2331

* Fix a false positive ``invalid name`` message when method or attribute name is longer then 30 characters.

  Closes #2047

* Include the type of the next branch in ``no-else-return``

  Closes #2295

* Fix inconsistent behaviour for bad-continuation on first line of file

  Closes #2281

 * Fix not being able to disable certain messages on the last line through
   the global disable option

  Closes #2278

* Don't emit ``useless-return`` when we have a single statement that is the return itself

  We still want to be explicit when a function is supposed to return
  an optional value; even though ``pass`` could still work, it's not explicit
  enough and the function might look like it's missing an implementation.

  Closes #2300

* Fix false-positive undefined-variable for self referential class name in lamdbas

  Closes #704

* Don't crash when ``pylint`` is unable to infer the value of an argument to ``next()``

  Closes #2316

* Don't emit ``not-an-iterable`` when dealing with async iterators.

  But do emit it when using the usual iteration protocol against
  async iterators.

  Closes #2311

* Can specify a default docstring type for when the check cannot guess the type

  Closes #1169