Debian Codegraph @

doc/whatsnew/2/2.1/full.rst

raw
1 Full changelog
2 ==============
3
4 What's New in Pylint 2.1.1?
5 ---------------------------
6 Release date: 2018-08-07
7
8 * fix pylint crash due to ``misplaced-format-function`` not correctly handling class attribute.
9
10 Closes #2384
11
12 * Do not emit \*-builtin for Python 3 builtin checks when the builtin is used inside a try-except
13
14 Closes #2228
15
16 * ``simplifiable-if-statement`` not emitted when dealing with subscripts
17
18
19 What's New in Pylint 2.1?
20 -------------------------
21
22 Release date: 2018-08-01
23
24 * ``trailing-comma-tuple`` gets emitted for ``yield`` statements as well.
25
26 Closes #2363
27
28 * Get only the arguments of the scope function for ``redefined-argument-from-local``
29
30 Closes #2364
31
32 * Add a check ``misplaced-format-function`` which is emitted if format function is used on
33 non str object.
34
35 Closes #2200
36
37 * ``chain.from_iterable`` no longer emits `dict-{}-not-iterating` when dealing with dict values and keys
38
39 * Demote the ``try-except-raise`` message from an error to a warning (E0705 -> W0706)
40
41 Closes #2323
42
43 * Correctly handle the new name of the Python implementation of the ``abc`` module.
44
45 Closes pylint-dev/astroid#2288
46
47 * Modules with ``__getattr__`` are exempted by default from ``no-member``
48
49 There's no easy way to figure out if a module has a particular member when
50 the said module uses ``__getattr__``, which is a new addition to Python 3.7.
51 Instead we assume the safe thing to do, in the same way we do for classes,
52 and skip those modules from checking.
53
54 Closes #2331
55
56 * Fix a false positive ``invalid name`` message when method or attribute name is longer then 30 characters.
57
58 Closes #2047
59
60 * Include the type of the next branch in ``no-else-return``
61
62 Closes #2295
63
64 * Fix inconsistent behaviour for bad-continuation on first line of file
65
66 Closes #2281
67
68 * Fix not being able to disable certain messages on the last line through
69 the global disable option
70
71 Closes #2278
72
73 * Don't emit ``useless-return`` when we have a single statement that is the return itself
74
75 We still want to be explicit when a function is supposed to return
76 an optional value; even though ``pass`` could still work, it's not explicit
77 enough and the function might look like it's missing an implementation.
78
79 Closes #2300
80
81 * Fix false-positive :ref:`undefined-variable` for self referential class name in lamdbas
82
83 Closes #704
84
85 * Don't crash when ``pylint`` is unable to infer the value of an argument to ``next()``
86
87 Closes #2316
88
89 * Don't emit ``not-an-iterable`` when dealing with async iterators.
90
91 But do emit it when using the usual iteration protocol against
92 async iterators.
93
94 Closes #2311
95
96 * Can specify a default docstring type for when the check cannot guess the type
97
98 Closes #1169