pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Bug description ```python Neither: `# pylint: disable=cyclic-import` nor: `# pylint: disable=R0401` squelches the "Cyclic import" warning. Tried at all scopes, all the way up to global module scope, to...
### Bug description Here is a minimal repro: ```python # pylint: disable=missing-module-docstring, disable=missing-class-docstring from unittest import TestCase from unittest.mock import MagicMock, call, patch class HasDunder: # pylint: disable=too-few-public-methods def __setitem__(self,...
### Bug description The following minimal example causes pylint to raise an error (mypy is fine with it): ```python from abc import ABC from dataclasses import dataclass from typing import...
### Question I'm using the spell checker within pylint. In my Sphinx-compatible docstrings, for parameter description, I use `:param logfile:` and pylint complains about `logfile` being unknown... that is a...
### Bug description ```python This seems to be the same bug as #3904 but only affecting _nested_ yield expressions. The below example is adapted from the original issue. # pylint:...
### Bug description ```python When parsing the following ``a.py``: """Class defining the distribution table""" __author__="Mohd Sadiq" __version__="v0.1" __module__="distribution_table" import uuid from datetime import datetime from typing import List from sqlalchemy...
### Current problem Expressions with multiple applications of the same idempotent function can often (depending on side effects between applications) be flattened to a single application. This might simplify the...
### Bug description Pylint complains about `func.myfunc` in the snippet below not being callable. ```py # pylint: disable=invalid-name, missing-class-docstring, missing-function-docstring, missing-module-docstring, too-few-public-methods from typing import TYPE_CHECKING, Any, Type, TypeVar _T...
## Type of Changes | | Type | | --- | ---------------------- | | | :bug: Bug fix | | ✓ | :sparkles: New feature | | | :hammer: Refactoring...
### Question I have a model superclass called `MaintainedModel`. The latest version of superlinter gives me an `unexpected-keyword-arg` error about a call to an overridden method inside another overridden method....