pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Bug description ```py import inspect from dataclasses import dataclass @dataclass(kw_only=True) class Foo: a: int b: str @dataclass(kw_only=False) class Bar(Foo): c: int print(inspect.signature(Bar.__init__)) # (self, c: int, *, a: int,...
### Bug description ```py import inspect from dataclasses import dataclass, field @dataclass class Foo: a: int b: str @dataclass class Bar(Foo): a: int = field(init=False, default=1) c: str a =...
### Bug description ``` # This module is named "gzip". #!/usr/bin/python3 """Test""" import gzip gzip.main() ``` ### Configuration _No response_ ### Command used ```shell pylint gzip ``` ### Pylint output...
## Type of Changes | | Type | | --- | ---------------------- | | â | :bug: Bug fix | | | :sparkles: New feature | | | :hammer: Refactoring...
- [x] Add yourself to CONTRIBUTORS if you are a new contributor. - [x] Write a good description on what the PR does. ## Type of Changes | | Type...
- [x] Add yourself to CONTRIBUTORS if you are a new contributor. - [x] Write a good description on what the PR does. ## Type of Changes | | Type...
## Type of Changes | | Type | | --- | ---------------------- | | â | :bug: Bug fix | | â | :scroll: Docs | ## Description Regression test...
### Bug description Some simple valid Python code for demonstration purposes: ```python import asyncio async def main(): async def my_gen(): for _ in range(10): yield _ result = tuple([_ async...
## Type of Changes | | Type | | --- | ---------------------- | | â | :bug: Bug fix | ## Description Closes #7208 It's better for performance to simply...
### Bug description ## Pylint doesn't handle mutating the type of values in a dictionary correctly. ### Minimal reproducible problem: ```py import re patterns = { 'number': r'[0-9]+' } #...