pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Current problem The following is valid code but implicates some problems. ```python from dataclasses import dataclass @dataclass class MyClass: __slots__ = ('foo', 'bar', ) foo: str def __init__(self): self.foo...
### Bug description The cell-var-from-loop warning shows up on conditional use of SystemExit's code property. This appears similar to, but not the same as https://github.com/pylint-dev/pylint/issues/5508, which appears specific to keyword...
### Bug description The using-constant-test warning shows up on conditional use of SystemExit's `code` property. This appears similar to, but not the same as https://github.com/pylint-dev/pylint/issues/3484. Given the following code, run...
### Current problem ```py import sys if sys.version_info > (2, ): from collections.abc import Set else: from collections import Set isinstance(set(), Set) ``` ```console $ pylint --disable=C a.py ************* Module...
### Bug description ```python I get the following complaint from pylint: models.py:172:11: W0143: Comparing against a callable, did you omit the parenthesis? (comparison-with-callable) ``` The line in question is: if...
### Bug no error given in pylint, no run in Python ```python class WinHlp: def print_text(self, txt): print(f'{__class__} {txt=}') class Window: def print_text(self, txt): print(f'{__class__} {txt=}') class Win(WinHlp, Window): def...
### Bug description Writing a custom `@property`-like descriptor causes pylint to issue various false postives. Example code: ```python "Demonstrate class property problems" from typing import Callable class ClassROProperty(property): "Decorator class...
### Question I do know about the exceptional behavior of PyLint when it comes to c-extensions. I thought I had workaround that but it seems I still misunderstand something. I...
### Bug description -j0 should automatically detect number of processors available. However, after the changes that introduce _cpu_count() function for calculation available resources in clouds, this works incorrectly on real...
### Current problem We're getting a lot of report for the new TypeVar naming style lately (#6050, #6003). It's probably annoying users. We took a decision but it's not conveyed...