pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Bug description Since 2.6.0 pylint reports a false positive `undefined-variable` warning when local decorators are used for a class inside a class. ```py from myconverter import Converter class MyContainer:...
- [x] Write a good description on what the PR does. - [x] Create a news fragment with `towncrier create .` which will be included in the changelog. `` can...
## Type of Changes | | Type | | --- | ---------------------- | | | :bug: Bug fix | | ✓ | :sparkles: New feature | | | :hammer: Refactoring...
### Bug description ```python import statistics q1, q2, q3 = statistics.quantiles(list(range(100)), n=4) print(q1, q2, q3) ``` ### Configuration ```ini ``` ### Command used ```shell pylint a.py ``` ### Pylint output...
### Bug description ```python from numpy import zeros, where, newaxis omega = zeros(10) w_1 = zeros((10, 5)) w_2 = where(omega < 1., 0., 1.) result = w_1 * w_2[:, newaxis]...
### Bug description ```python """Demonstrate pylint bug with wave module.""" import wave import struct if __name__ == "__main__": # Create a 2-second blank WAV file with wave.open("blank_audio.wav", "wb") as wav_file:...
### Bug description When iterating over the pydantic `BaseModel.model_fields` class var pylint errors with `E1133(not-an-iterable)`. Example code: ```python """hi.py file.""" from pydantic import BaseModel class Person(BaseModel): """This is a person...
### Bug description When returning a class variable from an instance the type is not correctly detected and E1133 is raised although a list will be returned. To show I...
### Steps to reproduce 1. `pylint --output-format=colorized project/` ### Current behavior Output without color ### Expected behavior Output with color ### pylint --version output ``` pylint --version pylint 2.6.0 astroid...
### Is your feature request related to a problem? Having type annotations makes the code more understandable. Having a way to require methods have type annotations would be a great...