pylint
pylint copied to clipboard
It's not just a linter that annoys you!
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 =...
### 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)...
### 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....
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :sparkles: New feature | ## Description Closes #1727
### 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...
### 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:...
## 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,...
### 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") ```...
useless-parent-delegation false positive when __init__ signatures differ but parent is built-in type
### 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) #...