pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Current problem Hello there! Is there "a real reason" for this problem: docstring-first-line-empty? (https://pylint.pycqa.org/en/latest/user_guide/messages/convention/docstring-first-line-empty.html) Don't "all tools" just use textwrap.dedent(str).strip() or something along those lines? :/ ### Desired solution...
### Bug description The pylint on the code ``` import tensorflow as tf a = - tf.math.log(1.) ``` causes following warning `test:2:4: E1130: bad operand type for unary -: object...
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :bug: Bug fix | ## Description This PR adds a check to the see...
### Bug description The following sample script triggers false positive 'no-member' error, although the code runs okay. Pylint considers the first element of the .args tuple as a str instance....
### Bug description When decorating a class with a decorator that returns the class wrapped in a dataclass (see MWE below), pylint fails to realise this new class is a...
### Bug description ``` class ApduCommandMeta(abc.ABCMeta): def __new__(metacls, name, bases, namespace, **kwargs): x = super().__new__(metacls, name, bases, namespace) x._cla = namespace.get('cla', kwargs.get('cla', None)) return x class ApduCommand(Apdu, metaclass=ApduCommandMeta): @classmethod def...
### Steps to reproduce ```python # pylint: disable=missing-module-docstring # pylint: enable=unsubscriptable-object,unsupported-assignment-operation,no-member import pandas as pd data_frame = pd.read_csv("foo.csv") print(data_frame.shape) for column in data_frame.columns: data_frame[column] = data_frame[column].astype("S") ``` ### Current behavior...
### Bug description This is practically #6275 when using the new kw_only=True The following code causes the bogus error. The key points are: - the kw_only argument on class A...
### Bug description no_self_use does not catch methods that have empty bodies (just a docstring or a `pass`) ### Configuration _No response_ ### Command used With the test cases from...
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :bug: Bug fix | | | :sparkles: New feature | | | :hammer: Refactoring...