pylint icon indicating copy to clipboard operation
pylint copied to clipboard

It's not just a linter that annoys you!

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

### Bug description Below code leads to used-before-assignment error for func2: ```python from module import get_module_name module_name = get_module_name() if module_name == "module1": from module1 import func1 elif module_name ==...

Minor 💅
C: used-before-assignment
Needs PR

### Bug description Let `test.py` be ```python """False positive E1101""" from typing import Literal type Abc = Literal["a"] print(Abc.__value__) ``` The above script work under python 3.12, `__value__` is a...

Needs triage :inbox_tray:

### Bug description ```python type Foo[T] = T def foo[T](): ... ``` ### Configuration _No response_ ### Command used ```shell pylint a.py ``` ### Pylint output ```python W0621: Redefining name...

Needs triage :inbox_tray:

### Bug description It seems that with a combination of a commit to astroid, and a change in Python 3.12, I am getting a `ValueError: generator already executing`. * https://github.com/pylint-dev/astroid/commit/c5352d53bc728816836a217428cac2eb305a0d55...

Astroid
Crash 💥
Needs investigation 🔬
Upstream Bug 🪲
python 3.12

### Current problem When superfluous-parens surround a string, no warning is raised. This can lead to errors in functions designed to test strings against tuples of acceptable values, such as...

Needs investigation 🔬
False Negative 🦋

### Bug description ```python # pylint: disable=missing-docstring,missing-class-docstring,too-few-public-methods from advanced_alchemy.repository import SQLAlchemyAsyncRepository from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column class Base(DeclarativeBase): pass class ExampleModel(Base): __tablename__ = "example_model" id: Mapped[int] = mapped_column(primary_key=True) name:...

Needs triage :inbox_tray:

### Current problem I was reading the documentation for `ungrouped-imports`: https://pylint.readthedocs.io/en/stable/user_guide/messages/convention/ungrouped-imports.html Under "Correct code" it says: > import logging > import logging.config But for me this is not "correct", but...

Needs triage :inbox_tray:

### Current problem currently there is no way to enforce adding docstrings to constants or types. Since 3.9 it is possible to properly annotate constants or types via: ``` from...

Enhancement ✨
Needs specification :closed_lock_with_key:

### Bug description ```python """test_lint.py""" # pylint: disable=R0903 class CoreSys: """CoreSys object.""" def __init__(self) -> None: """Initialize CoreSys.""" self._host: "Host" | None = None @property def host(self) -> "Host": """Get...

Astroid
Regression
Needs astroid update
Needs PR
properties

### Current problem Following advice of R1730 consider-using-min-builtin, R1731 consider-using-max-builtin inside a for or a while loop will degrade performance of factor more than 3. This is illustrated by the...

Help wanted 🙏
Good first issue
False Positive 🦟
Needs specification :closed_lock_with_key: