pylint icon indicating copy to clipboard operation
pylint copied to clipboard

It's not just a linter that annoys you!

Results 411 pylint issues
Sort by recently updated
recently updated
newest added

### Current problem Real diff: ```diff - cursor.executescript(f'BEGIN;\n{diff}\nCOMMIT;') + cursor.executescript(f'{diff}') ``` This is an example where Pylint could identify codestyle problem. Useless f-string. i.e. f-strings containing single variable without formatting...

Enhancement ✨
Proposal 📨
Needs decision :lock:

### Bug description This code is fine: ```python # minimal.py from dataclasses import dataclass, field @dataclass(kw_only=True) class Base: x: int y: int class SumMixin: def sum(self): return self.x + self.y...

Needs triage :inbox_tray:

### Question I have a use case in which i want to force pylint to use the type hint of a variable, instead of the inferred value. For example i...

Enhancement ✨
Needs design proposal :lock:

### Bug description ```python I got the message: Using global for 'ticker' but no assignment is done for the code: --- def remove_ticker_from_list(stock_index): global ticker ticker[stock_index]="NULL_STOCK" ``` ### Configuration _No...

Documentation :green_book:

### Current problem This is a request to implement a check similar to the `[[nodiscard]]` function attribute in C++. A typical mistake is when people assume that the method modifies...

Enhancement ✨
Help wanted 🙏
False Negative 🦋
Needs PR

### Bug description I am using python 3.8. When running on the jenkins agent in dockerized (Alpine-based image) script everything works fine. When runnning locally on MacOS 14.4.1 (with Intel...

Needs triage :inbox_tray:

### Bug description I don't see why the code in this example file https://github.com/PyCQA/pylint/blob/96e84595194073ea54a8c7730b86125049c0f4f9/tests/functional/n/nested_func_defined_in_loop.py#L1-L10 is problematic. When called using `example(range(4))`, it outputs ``` 0 1 2 3 0 1 2...

False Positive 🦟
Needs PR

Potentially related to #2615. Not sure if these would both be fixed by the same patch, so I'm making a new issue. ### Is your feature request related to a...

False Negative 🦋
C: used-before-assignment
Needs PR

### Bug description ```python # Optional method arguments or local scope variables are not properly inferred to be list[str] when in the if body. # example.py from typing import Optional...

Astroid
False Positive 🦟
C: unsubscriptable-object
Needs PR

test.py: ```python def _unused(): pass def __unused(): pass class _class(): pass _some_constant = 42 ``` They should not be imported from anywhere, so if they are not used in the...

Enhancement ✨
Checkers
False Positive 🦟
Needs PR