pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Bug description Taking an example from the [`sqlalchemy.ext.hybrid.hybrid_method` docs](https://docs.sqlalchemy.org/en/20/orm/extensions/hybrid.html#sqlalchemy.ext.hybrid.hybrid_method): ```python from __future__ import annotations from sqlalchemy.ext.hybrid import hybrid_method from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy.orm import DeclarativeBase from sqlalchemy.orm import...
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :sparkles: New feature | ## Description Linting files/modules that import external modules works just...
Sounds crazy, but I think `W0640` (`cell-var-from-loop`) is a lint for an issue that is non-existent. Here's the code snippet from the example, which should supposedly cause `i` to be...
### Bug description Analyzing the following code with pylint, using the given rcfile, results in an unexpected `missing-param-doc` error: ```python '''module docstring ''' from __future__ import annotations from typing import...
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :bug: Bug fix | | | :sparkles: New feature | | | :hammer: Refactoring...
### Bug description ```python from asyncio import sleep from typing import Any, Awaitable, Coroutine class A: async def fun(self) -> None: pass class B(A): def fun(self) -> Awaitable[None]: return sleep(42)...
### Bug description The code below causes unnecessary-negation, which is wrong. For float comparisons, "not a < b" and "b = target" (unnecessary-negation) ``` ### Expected behavior No warning ###...
### Bug description ```python def f(x): l = [] for i in x: l.append(i) return l a, b = f('12') ``` ### Configuration _No response_ ### Command used ```shell pylint...
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :bug: Bug fix | ## Description Work in progress for #8736, this is probably...
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :bug: Bug fix | ## Description As described in #7686, pyreverse does not extract...