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

An almost identical error has already been reported (#2767). The example code from that issue: ```python """X""" import numpy as np X = np.empty_like([1]) X[:] = 2 ``` works as...

### Bug description Similar to #5478 /tmp/test.py: ```python import logging from enum import Enum class ConstraintType(Enum): # pylint: disable=missing-class-docstring,too-few-public-methods DISTANCE = 0 FORCE = 1 constraintType = "none" switch =...

Documentation :green_book:
Needs decision :lock:

### Bug description ```python def halfway_safe(): """Name used safely inside the loop, unsafely outside it.""" for _temp in range(0, 1): try: pass except ValueError: error = True else: continue print(error)...

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

### 1. Summary It would be nice if Pylint would print the filepaths of the files it checked to the console. This can be implemented, for example, by adding: 1....

Enhancement ✨
Good first issue
Needs PR

## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :sparkles: New feature | ## Description Closes #1727

Enhancement ✨
False Negative 🦋
Needs decision :lock:

### Bug description I have created two classes, one which is a list node (Node), and another one whose attribute is the head of the node (Source). I have set...

Needs triage :inbox_tray:

### Bug description When parsing the following: ```python from typing import Any, Mapping, Optional, Tuple, Callable import torch import torch.optim from pytorch_lightning import LightningModule class TransformersModule(LightningModule): def __init__( self, model_factory:...

Needs triage :inbox_tray:

## Question This was the simplest snippet I could create to reproduce my issue. The `aloha` attribute is reported as `no-member`. ```python class ParentMetaclass(type): def __init__(cls, what, bases=None, attrs=None): super().__init__(what,...

False Positive 🦟
Needs PR

### Steps to reproduce 1. Create file `z.py` ```python a = None while True: if a is None or a["1"] == 0: a = {"1": 1} else: break print("Done") ```...

Enhancement ✨
Help wanted 🙏
Control flow
High priority
Hacktoberfest
Needs PR

### Bug description ```python # pylint: disable=missing-module-docstring,missing-class-docstring,too-few-public-methods class CustomBuiltInType(list): def __init__(self): super().__init__() # pylint warns about this override: # W0246: Useless parent or super() delegation in method '__init__' (useless-parent-delegation) #...

Needs triage :inbox_tray: