|
|
|
|
@@ -1,3 +1,391 @@
|
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Mon Jan 26 08:08:45 UTC 2026 - Dirk Müller <dmueller@suse.com>
|
|
|
|
|
|
|
|
|
|
- update to 4.0.4:
|
|
|
|
|
* Fixed false positive for ``invalid-name`` where module-level
|
|
|
|
|
constants were incorrectly classified as variables when a
|
|
|
|
|
class-level attribute with the same name exists.
|
|
|
|
|
* Closes #10719
|
|
|
|
|
* Fix a false positive for ``invalid-name`` on an UPPER_CASED
|
|
|
|
|
name inside an ``if`` branch that assigns an object.
|
|
|
|
|
* Closes #10745
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Mon Nov 17 04:33:49 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
|
|
|
|
|
|
|
|
|
- Update to 4.0.3:
|
|
|
|
|
* Add Enum dunder methods _generate_next_value_, _missing_, _numeric_repr_,
|
|
|
|
|
_add_alias_, and _add_value_alias_ to the list passed to
|
|
|
|
|
--good-dunder-names.
|
|
|
|
|
* Fixed false positive for invalid-name with typing.Annotated.
|
|
|
|
|
* Fix false positive for f-string-without-interpolation with template
|
|
|
|
|
strings when using format spec.
|
|
|
|
|
* Fix a false positive when an UPPER_CASED class attribute was raising an
|
|
|
|
|
invalid-name when typed with Final.
|
|
|
|
|
* Fix a false positive for unbalanced-tuple-unpacking when a tuple is
|
|
|
|
|
assigned to a function call and the structure of the function's return
|
|
|
|
|
value is ambiguous.
|
|
|
|
|
* Make 'ignore' option work as expected again.
|
|
|
|
|
* Fix crash for consider-using-assignment-expr when a variable annotation
|
|
|
|
|
without assignment is used as the if test expression.
|
|
|
|
|
* Fix crash for prefer-typing-namedtuple and consider-math-not-float when
|
|
|
|
|
a slice object is called.
|
|
|
|
|
* Fix false positive for invalid-name on a partially uninferable
|
|
|
|
|
module-level constant.
|
|
|
|
|
* Fix a false positive for invalid-name on exclusive module-level
|
|
|
|
|
assignments composed of three or more branches.
|
|
|
|
|
* Fix false positive for invalid-name for TypedDict instances.
|
|
|
|
|
* Fix false-positive for bare-name-capture-pattern if a case guard is used.
|
|
|
|
|
* Check enums created with the Enum() functional syntax to pass against the
|
|
|
|
|
--class-rgx for the invalid-name check, like other enums.
|
|
|
|
|
* Pylint now supports Python 3.14.
|
|
|
|
|
* Pylint's inference engine (astroid) is now much more precise,
|
|
|
|
|
understanding implicit booleanness and ternary expressions. The required
|
|
|
|
|
astroid version is now 4.0.0.
|
|
|
|
|
* Handling of invalid-name at the module level was patchy. Now,
|
|
|
|
|
module-level constants that are reassigned are treated as variables and
|
|
|
|
|
checked against --variable-rgx rather than --const-rgx. Module-level
|
|
|
|
|
lists, sets, and objects can pass against either regex.
|
|
|
|
|
* invalid-name now distinguishes module-level constants that are assigned
|
|
|
|
|
only once from those that are reassigned and now applies --variable-rgx
|
|
|
|
|
to the latter.
|
|
|
|
|
* The unused pylintrc argument to PyLinter.__init__() is deprecated and
|
|
|
|
|
will be removed.
|
|
|
|
|
* pyreverse Run was changed to no longer call sys.exit() in its __init__.
|
|
|
|
|
* The suggestion-mode option was removed, as pylint now always emits
|
|
|
|
|
user-friendly hints instead of false-positive error messages.
|
|
|
|
|
* The async.py checker module has been renamed to async_checker.py since
|
|
|
|
|
async is a Python keyword and cannot be imported directly. This allows
|
|
|
|
|
for better testing and extensibility of the async checker functionality.
|
|
|
|
|
* The message-id of continue-in-finally was changed from E0116 to W0136.
|
|
|
|
|
The warning is now emitted for every Python version since it will raise a
|
|
|
|
|
syntax warning in Python 3.14.
|
|
|
|
|
* Removed support for nmp.NaN alias for numpy.NaN being recognized in
|
|
|
|
|
nan-comparison.
|
|
|
|
|
* Version requirement for isort has been bumped to >=5.0.0.
|
|
|
|
|
* comparison-of-constants now uses the unicode from the ast instead of
|
|
|
|
|
reformatting from the node's values preventing some bad formatting due to
|
|
|
|
|
utf-8 limitation.
|
|
|
|
|
* The use-implicit-booleaness-not-x checks now distinguish between
|
|
|
|
|
comparisons used in boolean contexts and those that are not, enabling
|
|
|
|
|
them to provide more accurate refactoring suggestions.
|
|
|
|
|
* The verbose option now outputs the filenames of the files that have been
|
|
|
|
|
checked.
|
|
|
|
|
* colorized reporter now colorizes messages/categories that have been
|
|
|
|
|
configured as fail-on in red inverse.
|
|
|
|
|
* Enhanced support for @property decorator in pyreverse to correctly
|
|
|
|
|
display return types of annotated properties when generating class
|
|
|
|
|
diagrams.
|
|
|
|
|
* Handle deferred evaluation of annotations in Python 3.14.
|
|
|
|
|
* pyreverse: add support for colorized output when using output format mmd
|
|
|
|
|
(MermaidJS) and html.
|
|
|
|
|
* pypy 3.11 is now officially supported.
|
|
|
|
|
* Add support for Python 3.14.
|
|
|
|
|
* Add naming styles for ParamSpec and TypeVarTuple that align with the
|
|
|
|
|
TypeVar style.
|
|
|
|
|
* Add match-statements checker and the following message:
|
|
|
|
|
bare-name-capture-pattern.
|
|
|
|
|
* Add new check async-context-manager-with-regular-with to detect async
|
|
|
|
|
context managers used with regular with statements instead of async with.
|
|
|
|
|
* Add break-in-finally warning. Using break inside the finally clause will
|
|
|
|
|
raise a syntax warning in Python 3.14.
|
|
|
|
|
* Add new checks for invalid uses of class patterns in match.
|
|
|
|
|
* Add additional checks for suboptimal uses of class patterns in match.
|
|
|
|
|
* Add a consider-math-not-float message. float("nan") and float("inf") are
|
|
|
|
|
slower than their counterpart math.inf and math.nan by a factor of 4
|
|
|
|
|
(notwithstanding the initial import of math) and they are also not well
|
|
|
|
|
typed when using mypy.
|
|
|
|
|
* Fix a false positive for used-before-assignment when a variable defined
|
|
|
|
|
under an if and via a named expression (walrus operator) is used later
|
|
|
|
|
when guarded under the same if test.
|
|
|
|
|
* Fix no-name-in-module for members of concurrent.futures with Python 3.14.
|
|
|
|
|
* Fix false negative for used-before-assignment when a TYPE_CHECKING import
|
|
|
|
|
is used as a type annotation prior to erroneous usage.
|
|
|
|
|
* Match cases are now counted as edges in the McCabe graph and will
|
|
|
|
|
increase the complexity accordingly.
|
|
|
|
|
* Check module-level constants with type annotations for invalid-name.
|
|
|
|
|
* Fix false negative where function-redefined (E0102) was not reported for
|
|
|
|
|
functions with a leading underscore.
|
|
|
|
|
* We now raise a logging-too-few-args for format string with no
|
|
|
|
|
interpolation arguments at all.
|
|
|
|
|
* Fix false negative for used-before-assignment when a function is defined
|
|
|
|
|
inside a TYPE_CHECKING guard block and used later.
|
|
|
|
|
* Fix a false negative for possibly-used-before-assignment when a variable
|
|
|
|
|
is conditionally defined and later assigned to a type-annotated variable.
|
|
|
|
|
* Fix false negative for deprecated-module when a __import__ method is used
|
|
|
|
|
instead of import sentence.
|
|
|
|
|
* Remove support for launching pylint with Python 3.9.
|
|
|
|
|
* Fix used-before-assignment for PEP 695 type aliases and parameters.
|
|
|
|
|
* No longer flag undeprecated functions in importlib.resources as
|
|
|
|
|
deprecated.
|
|
|
|
|
* Fix false positive inconsistent-return-statements when using quit() or
|
|
|
|
|
exit() functions.
|
|
|
|
|
* Fix false positive undefined-variable (E0602) for for-loop variable
|
|
|
|
|
shadowing patterns like for item in item: when the variable was
|
|
|
|
|
previously defined.
|
|
|
|
|
* Fixed crash in 'unnecessary-list-index-lookup' when starting an
|
|
|
|
|
enumeration using minus the length of an iterable inside a dict
|
|
|
|
|
comprehension when the len call was only made in this dict comprehension,
|
|
|
|
|
and not elsewhere.
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Sun Sep 14 18:17:44 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
|
|
|
|
|
|
|
|
|
- update to 3.3.8:
|
|
|
|
|
* Fix false positives for `possibly-used-before-assignment`
|
|
|
|
|
when variables are exhaustively assigned within a `match` block.
|
|
|
|
|
* Fix false positive for `missing-raises-doc` and `missing-
|
|
|
|
|
yield-doc` when the method length is less than docstring-min-
|
|
|
|
|
length.
|
|
|
|
|
* Fix a false positive for ``unused-variable`` when multiple
|
|
|
|
|
except handlers bind the same name under a try block.
|
|
|
|
|
* Fix false-negative for ``used-before-assignment`` with ``from
|
|
|
|
|
__future__ import annotations`` in function definitions.
|
|
|
|
|
* Fix a bug in Pyreverse where aggregations and associations
|
|
|
|
|
were included in diagrams regardless of the selected
|
|
|
|
|
--filter-mode (such as PUB_ONLY, ALL, etc.).
|
|
|
|
|
* Fix double underscores erroneously rendering as bold in
|
|
|
|
|
pyreverse's Mermaid output.
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Mon Aug 25 09:53:38 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
|
|
|
|
|
|
|
|
|
- Convert to libalternatives on SLE-16-based and newer systems
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Thu May 15 08:56:07 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
|
|
|
|
|
|
|
|
|
- Update to 3.3.7
|
|
|
|
|
* Comparisons between two calls to `type()` won't raise an
|
|
|
|
|
``unidiomatic-typecheck`` warning anymore, consistent with
|
|
|
|
|
the behavior applied only for ``==`` previously.
|
|
|
|
|
* Fixed a crash when importing a class decorator that did not
|
|
|
|
|
exist with the same name as a class attribute after the class
|
|
|
|
|
definition.
|
|
|
|
|
* Fix a crash caused by malformed format strings when using
|
|
|
|
|
`.format` with keyword arguments.
|
|
|
|
|
* Using a slice as a class decorator now raises a ``not-callable``
|
|
|
|
|
message instead of crashing. A lot of checks that dealt with
|
|
|
|
|
decorators (too many to list) are now shortcut if the decorator
|
|
|
|
|
can't immediately be inferred to a function or class definition.
|
|
|
|
|
* The algorithm used for ``no-member`` suggestions is now more
|
|
|
|
|
efficient and cuts the calculation when the distance score is
|
|
|
|
|
already above the threshold.
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Tue Apr 8 03:29:21 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
|
|
|
|
|
|
|
|
|
- Update to 3.3.6:
|
|
|
|
|
* Fix a false positive for used-before-assignment when an inner function's
|
|
|
|
|
return type * annotation is a class defined at module scope.
|
|
|
|
|
* Fix false positives for use-implicit-booleaness-not-comparison,
|
|
|
|
|
use-implicit-booleaness-not-comparison-to-string and
|
|
|
|
|
use-implicit-booleaness-not-comparison-to-zero when chained comparisons
|
|
|
|
|
are checked.
|
|
|
|
|
* Fix a false positive for invalid-getnewargs-ex-returned when the tuple or
|
|
|
|
|
dict has been assigned to a name.
|
|
|
|
|
* Remove getopt and optparse from the list of deprecated modules.
|
|
|
|
|
* Fixed conditional import x.y causing false positive
|
|
|
|
|
possibly-used-before-assignment.
|
|
|
|
|
* Fix a crash when something besides a class is found in an except handler.
|
|
|
|
|
* Fixed raising invalid-name when using camelCase for private methods with
|
|
|
|
|
two leading underscores.
|
|
|
|
|
* Fixes "skipped files" count calculation; the previous method was
|
|
|
|
|
displaying an arbitrary number.
|
|
|
|
|
* Fixes a crash that occurred when pylint was run in a container on a host
|
|
|
|
|
with cgroupsv2 and restrictions on CPU usage.
|
|
|
|
|
* Relaxed the requirements for isort so pylint can benefit from isort 6.
|
|
|
|
|
* Fix false positives for undefined-variable for classes using Python 3.12
|
|
|
|
|
generic type syntax.
|
|
|
|
|
* Fix a false positive for use-implicit-booleaness-not-len. No lint should
|
|
|
|
|
be emitted for generators (len is not defined for generators).
|
|
|
|
|
* Fix Unable to import 'collections.abc' (import-error) on Python 3.13.1.
|
|
|
|
|
* Fix a false positive for potential-index-error when an indexed iterable
|
|
|
|
|
contains a starred element that evaluates to more than one item.
|
|
|
|
|
* Fixes the issue with --source-root option not working when the source
|
|
|
|
|
files are in a subdirectory of the source root (e.g. when using a /src
|
|
|
|
|
layout).
|
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Thu Sep 26 09:24:16 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
|
|
|
|
|
|
|
|
|
- Revert restriction to python3.
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Wed Sep 25 11:52:49 UTC 2024 - ecsos <ecsos@opensuse.org>
|
|
|
|
|
|
|
|
|
|
- Fix build error under Leap.
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Tue Sep 24 13:46:18 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
|
|
|
|
|
|
|
|
|
- update to 3.3.1:
|
|
|
|
|
* Fix regression causing some f-strings to not be inferred as
|
|
|
|
|
strings.
|
|
|
|
|
- update to 3.3.0:
|
|
|
|
|
* We migrated ``symilar`` to argparse, from getopt, so the
|
|
|
|
|
error and help output changed (for the better).
|
|
|
|
|
We exit with 2 instead of sometime 1, sometime 2.
|
|
|
|
|
The error output is not captured by the runner anymore.
|
|
|
|
|
It's not possible to use a value for the boolean options
|
|
|
|
|
anymore (``--ignore-comments 1`` should become
|
|
|
|
|
``--ignore-comments``).
|
|
|
|
|
* Add new `declare-non-slot` error which reports when a class
|
|
|
|
|
has a `__slots__` member and a type hint on the class is not
|
|
|
|
|
present in `__slots__`.
|
|
|
|
|
* Added `too-many-positional-arguments` to allow distinguishing
|
|
|
|
|
the configuration for too many total arguments
|
|
|
|
|
(with keyword-only params specified after `*`) from the
|
|
|
|
|
configuration for too many positional-or-keyword or
|
|
|
|
|
positional-only arguments.
|
|
|
|
|
* Add `using-exception-group-in-unsupported-version` and
|
|
|
|
|
`using-generic-type-syntax-in-unsupported-version` for uses
|
|
|
|
|
of Python 3.11+ or 3.12+ features on lower supported versions
|
|
|
|
|
provided with `--py-version`.
|
|
|
|
|
* Add `using-assignment-expression-in-unsupported-version` for
|
|
|
|
|
uses of `:=` (walrus operator) on Python versions below 3.8
|
|
|
|
|
provided with `--py-version`.
|
|
|
|
|
* Add `using-positional-only-args-in-unsupported-version` for
|
|
|
|
|
uses of positional-only args on Python versions below 3.8
|
|
|
|
|
provided with `--py-version`.
|
|
|
|
|
* Add ``unnecessary-default-type-args`` to the ``typing``
|
|
|
|
|
extension to detect the use of unnecessary default type args
|
|
|
|
|
for ``typing.Generator`` and ``typing.AsyncGenerator``.
|
|
|
|
|
* Fix computation of never-returning function: `Never` is
|
|
|
|
|
handled in addition to `NoReturn`, and priority is given to
|
|
|
|
|
the explicit `--never-returning-functions` option.
|
|
|
|
|
* Fix a false negative for `await-outside-async` when await is
|
|
|
|
|
inside Lambda.
|
|
|
|
|
* Fix a false negative for ``duplicate-argument-name`` by
|
|
|
|
|
including ``positional-only``, ``*args`` and ``**kwargs``
|
|
|
|
|
arguments in the check.
|
|
|
|
|
* Fix false negative for `multiple-statements` when multiple
|
|
|
|
|
statements are present on `else` and `finally` lines of
|
|
|
|
|
`try`.
|
|
|
|
|
* Fix false negatives when `isinstance` does not have exactly
|
|
|
|
|
two arguments.
|
|
|
|
|
* pylint now emits a `too-many-function-args` or `no-value-for-
|
|
|
|
|
parameter` appropriately for `isinstance` calls.
|
|
|
|
|
* `--enable` with `--disable=all` now produces an error, when
|
|
|
|
|
an unknown msg code is used. Internal `pylint` messages are
|
|
|
|
|
no longer affected by `--disable=all`.
|
|
|
|
|
* Impossible to compile regexes for paths in the configuration
|
|
|
|
|
or argument given to pylint won't crash anymore but raise an
|
|
|
|
|
argparse error and display the error message from
|
|
|
|
|
``re.compile`` instead.
|
|
|
|
|
* Fix a bug where a ``tox.ini`` file with pylint configuration
|
|
|
|
|
was ignored and it exists in the current directory.
|
|
|
|
|
* ``.cfg`` and ``.ini`` files containing a ``Pylint``
|
|
|
|
|
configuration may now use a section named ``[pylint]``. This
|
|
|
|
|
enhancement impacts the scenario where these file types are
|
|
|
|
|
used as defaults when they are present and have not been
|
|
|
|
|
explicitly referred to, using the ``--rcfile`` option.
|
|
|
|
|
* Improve file discovery for directories that are not python
|
|
|
|
|
packages.
|
|
|
|
|
* Remove support for launching pylint with Python 3.8.
|
|
|
|
|
* Code that supports Python 3.8 can still be linted with the
|
|
|
|
|
``--py-version=3.8`` setting.
|
|
|
|
|
* Add support for Python 3.13.
|
|
|
|
|
* All variables, classes, functions and file names containing
|
|
|
|
|
the word 'similar', when it was, in fact, referring to
|
|
|
|
|
'symilar' (the standalone program for the duplicate-code
|
|
|
|
|
check) were renamed to 'symilar'.
|
|
|
|
|
* Remove old-style classes (Python 2) code and remove check for
|
|
|
|
|
new-style class since everything is new-style in Python 3.
|
|
|
|
|
Updated doc for exception checker to remove reference to new
|
|
|
|
|
style class.
|
|
|
|
|
- update to 3.2.7:
|
|
|
|
|
* Fixed a false positive `unreachable` for `NoReturn` coroutine
|
|
|
|
|
functions.
|
|
|
|
|
* Fix crash in refactoring checker when calling a lambda bound
|
|
|
|
|
as a method.
|
|
|
|
|
* Fix a crash in ``undefined-loop-variable`` when providing the
|
|
|
|
|
``iterable`` argument to ``enumerate()``.
|
|
|
|
|
* Fix to address indeterminacy of error message in case a
|
|
|
|
|
module name is same as another in a separate namespace.
|
|
|
|
|
- drop support-astroid-3.3.patch pytest-8.patch: upstream
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Mon Aug 12 06:12:36 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
|
|
|
|
|
|
|
|
|
- Update to 3.2.6:
|
|
|
|
|
* Quiet false positives for unexpected-keyword-arg when pylint cannot
|
|
|
|
|
determine which of two or more dynamically defined classes is being
|
|
|
|
|
instantiated.
|
|
|
|
|
* Fix a false positive for missing-param-doc where a method which is
|
|
|
|
|
decorated with typing.overload was expected to have a docstring
|
|
|
|
|
specifying its parameters.
|
|
|
|
|
* Fix a regression that raised invalid-name on class attributes merely
|
|
|
|
|
overriding invalid names from an ancestor.
|
|
|
|
|
* Treat assert_never() the same way when imported from typing_extensions.
|
|
|
|
|
* Fix a false positive for consider-using-min-max-builtin when the
|
|
|
|
|
assignment target is an attribute.
|
|
|
|
|
* Fix an AssertionError arising from properties that return partial
|
|
|
|
|
functions.
|
|
|
|
|
* Fix a crash when a subclass extends __slots__.
|
|
|
|
|
- Refresh pytest-8.patch.
|
|
|
|
|
- Add patch support-astroid-3.3.patch:
|
|
|
|
|
* Support astroid >= 3.3.0.
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Tue Jul 9 11:59:18 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
|
|
|
|
|
|
|
|
|
- Add new patch to fix failing tests with pytest 8, pytest-8.patch
|
|
|
|
|
gh#pylint-dev/pylint#9576
|
|
|
|
|
- Skip some tests that still are failing with pytest 8,
|
|
|
|
|
gh#pylint-dev/pylint#9545
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Sun Jun 30 22:05:58 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
|
|
|
|
|
|
|
|
|
- update to 3.2.5:
|
|
|
|
|
* Fixed a false positive ``unreachable-code`` when using
|
|
|
|
|
``typing.Any`` as return type in python 3.8, the
|
|
|
|
|
``typing.NoReturn`` are not taken into account
|
|
|
|
|
anymore for python 3.8 however.
|
|
|
|
|
* Prevent emitting ``possibly-used-before-assignment`` when
|
|
|
|
|
relying on names only potentially not defined in conditional
|
|
|
|
|
blocks guarded by functions annotated with ``typing.Never``
|
|
|
|
|
or ``typing.NoReturn``.
|
|
|
|
|
- update to 3.2.3:
|
|
|
|
|
* Classes with only an Ellipsis (``...``) in their body do not
|
|
|
|
|
trigger 'multiple-statements' anymore if they are inlined
|
|
|
|
|
* Fix a false positive for ``redefined-outer-name`` when there
|
|
|
|
|
is a name defined in an exception-handling block which shares
|
|
|
|
|
the same name as a local variable that has been defined in a
|
|
|
|
|
function body.
|
|
|
|
|
* Fix a false positive for ``use-yield-from`` when using the
|
|
|
|
|
return value from the ``yield`` atom.
|
|
|
|
|
- update to 3.2.2:
|
|
|
|
|
* Fix multiple false positives for generic class syntax added
|
|
|
|
|
in Python 3.12 (PEP 695).
|
|
|
|
|
* Exclude context manager without cleanup from
|
|
|
|
|
``contextmanager-generator-missing-cleanup`` checks.
|
|
|
|
|
- update to 3.2.1:
|
|
|
|
|
* Exclude if/else branches containing terminating functions
|
|
|
|
|
(e.g. `sys.exit()`) from `possibly-used-before-assignment`
|
|
|
|
|
checks.
|
|
|
|
|
* Don't emit ``typevar-name-incorrect-variance`` warnings for
|
|
|
|
|
PEP 695 style TypeVars.
|
|
|
|
|
* The variance is inferred automatically by the type checker.
|
|
|
|
|
* Adding ``_co`` or ``_contra`` suffix can help to reason about
|
|
|
|
|
TypeVar.
|
|
|
|
|
- update to 3.2.0:
|
|
|
|
|
* Understand `six.PY2` and `six.PY3` for conditional imports.
|
|
|
|
|
* Github can use to automatically annotate code. Use it with
|
|
|
|
|
`pylint --output-format=github` on your Github Workflows.
|
|
|
|
|
* Add check ``possibly-used-before-assignment`` when relying on
|
|
|
|
|
names after an ``if/else`` switch when one branch failed to
|
|
|
|
|
define the name, raise, or return.
|
|
|
|
|
* Checks for generators that use contextmanagers that don't
|
|
|
|
|
handle cleanup properly.
|
|
|
|
|
* Is meant to raise visibilty on the case that a generator is
|
|
|
|
|
not fully exhausted and the contextmanager is not cleaned up
|
|
|
|
|
properly.
|
|
|
|
|
* A contextmanager must yield a non-constant value and not
|
|
|
|
|
handle cleanup for GeneratorExit.
|
|
|
|
|
* The using generator must attempt to use the yielded context
|
|
|
|
|
value `with x() as y` and not just `with x()`.
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Fri Mar 22 20:01:42 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
|
|
|
|
|
|
|
|
|
@@ -2533,4 +2921,3 @@ Sun Jul 17 15:17:57 CEST 2005 - garloff@suse.de
|
|
|
|
|
|
|
|
|
|
- Initial creation of package pylint-0.7.0.
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
|