pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Current problem According to https://pylint.readthedocs.io/en/latest/user_guide/messages/warning/unused-private-member.html, it is > Emitted when a private member of a class is defined but not used. However, the example code is ``` def __print_color(self):...
### Current problem I have a library with a signature-mutator decorator. When users consume this library, the code that uses this decorator is flagged by pylint for various reasons. To...
### Steps to reproduce 1. run `pylint --verbose somepath` ### Current behavior The config file used is printed ### Expected behavior pylint to be actually verbose. For example: - print...
### Bug description ```python z = [] res = z != [] ``` ### Configuration ```ini enable=use-implicit-booleaness-not-comparison ``` ### Command used ```shell pylint test.py ``` ### Pylint output ```python test.py:2:6:...
### Bug description ```python ### file "mwe/__init__.py" # empty ### file "mwe/sub_item.py" class SubItem: def __init__(self, name: str = "abc") -> None: self.real_name: str = name ### file "mwe/item.py" from...
no need to complain 'attribute-defined-outside-init' when base class not in same file as sub class
### Steps to reproduce ``` from m import BaseA class A(BaseA): def load(self, x): self.x = x ``` ### Current behavior ``` /tmp/3.py:7: [W0201(attribute-defined-outside-init), A.load] Attribute 'x' defined outside __init__...
### Bug description Value is unsubscriptable error when using `random.sample()` unless I explicitly convert it to list `list(random.sample())`. Then the error goes away. Code that gives an error: ```python import...
### Bug description ### Description I'm using `pydantic.v1` to transition our codebase to pydantic 2.* but doing so has resulted in many pylint warnings due to the use of `pydantic.v1.Field()`...
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :bug: Bug fix | ## Description Beginning with attrs 21.1.0, the recommended way to...
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :bug: Bug fix | ## Description Closes #9343