pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Bug description As of python 3.9, `IM_A_TEAPOT` was added to `http.HTTPStatus`, but pylint reports a `no-member` error. Can be replicated using the following code in `example.py` ```python """Demonstrate a...
### Bug description This is a follow-up to #9310, where I reported slowness with `import-error` checks due to repetitive I/O over SSHFS. While profiling the new code, I noticed that...
### Bug description Pylint incorrectly tracks types: ```python class Xxx: def __init__(self): self.__val = None @property def get_value(self) -> int: if self.__val is None: self.__val = 42 return self.__val def...
### Current problem I use `CheckerTestCase` in tests for linting scripts in a project. There are some tests where I want to assert that a specific message has not been...
### Bug description Consider the following code: ```python from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: import datetime class Z: def something(self) -> None: z = datetime.datetime.now() #...
### Steps to reproduce Running pylint 3.1.0 to this code will warn about incorrect 'unsubscriptable-object': ```python import numpy as np arr = np.array([1, 2, 3]) converted = np.int16(arr) print(converted[0]) ```...
Cannot import 'rti.connextdds' due to 'invalid syntax (rti.connextdds, line 18332)' (syntax-error)
### Bug description Hi, tested using python3.10 and python3.11 with pylint version >=3.0.0a7 throws an error when trying to import 'rti.connextdds': ```python $ python3.11 -m pylint --disable=missing-class-docstring,missing-module-docstring,missing-function-docstring,too-few-public-methods --verbose * No...
### Bug description I have an issue with PyLint and OpenCV. Whenever I import something from openCV I get the following error Pylint (E0611:no-name-in-module). Why doesn't it see the models...
Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version. Release notes Sourced from pytest's releases. 8.2.0 pytest 8.2.0 (2024-04-27) Deprecations #12069: A deprecation warning is now raised when implementations...
### Question Would it be possible (or even make sense) to use to use the stubs from typeshed instead of the real libraries in pylint checks? ``` import requests requests.get("https:")...