summaryrefslogtreecommitdiff
path: root/pylint/checkers/classes
Commit message (Collapse)AuthorAgeFilesLines
* Add optional `prefer-typing-namedtuple` message (#8681)HEADmainJacob Walls2023-05-161-8/+14
| | | Closes #8660
* Drop support for Python 3.7 (#8609)Marc Mueller2023-04-241-6/+1
| | | | | * Drop support for Python 3.7 * Update py-version + classifier * Update functional tests
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-293-6/+6
|
* Add Python 3.8+ `asyncSetUp` to "defining-attr-methods" list (#8403)Samuel FORESTIER2023-03-111-1/+7
|
* Use UninferableBase instead of UninferableDaniel van Noord2023-03-072-10/+9
|
* Accept values of the form ``<class name>.<attribute name>`` for the ↵Mark Byrne2023-03-031-6/+17
| | | | | | | | `exclude-protected` list (#8364) Closes #7343 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Refactor the `_check_protected_attribute_access` method to reduce ↵Mark Byrne2023-03-011-67/+69
| | | | indentation. (#8366)
* Add new check "implicit-flag-alias" (#8345)James Addison2023-02-261-8/+58
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fixing some too long lines (#8339)Ollie2023-02-251-2/+4
| | | | | * Changing flake8 max-line-length to 120 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [typing] Use __future__ annotations where possible (#8264)Pierre Sassoulas2023-02-121-1/+1
|
* Tighten design constraints (#8115)Nick Drozd2023-01-281-0/+3
| | | | | | | | | | | | | * Lower max locals * Lower max statements * Lower max try statements * Lower max branches * Lower max args * Cut design constraints with default values
* add test for Uninferableclavedeluna2023-01-241-3/+0
|
* class attrs should not emit assigning-non-slot msg (#7987)Dani Alcala2022-12-301-7/+13
|
* [pre-commit] Upgrade to black 23.1a1 with 2023's formatting (#7965)Pierre Sassoulas2022-12-272-2/+0
|
* Cut oldstyle checksNick Drozd2022-11-301-3/+0
|
* Define Protocol as abstract to prevent abstract-method FP (#7839)Dani Alcala2022-11-301-11/+1
|
* Fix `valid-metaclass-classmethod-first-arg` default value (#7791)Cubicpath2022-11-191-1/+1
| | | | | * Change default value to "mcs" * Fix functional tests to use "mcs" for first MetaClass classmethod arg
* Fix a crash when looking up an __init__ method (#7744)Mark Byrne2022-11-121-2/+4
| | | | | | | | | | | | | | * Fix a crash when a child class with an ``__init__`` method inherits from a parent class with an ``__init__`` class attribute. * `continue` if not a method. * Update pylint/checkers/classes/class_checker.py * Rename fragment Closes #7742 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Replace no-method-argument with no-self-argument when variadic args present ↵Jakub Kuczys2022-09-231-5/+10
| | | | | | (#7518) Also add method name to the error message
* Update wording to clarify overriding object. (#7504)Dani Alcala2022-09-201-2/+5
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add child class name and confidence to ``abstract-method`` message (#7503)Dani Alcala2022-09-201-2/+8
| | | Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* [invalid-class-object] Better error message giving more informationPierre Sassoulas2022-09-161-2/+7
|
* [invalid-class-object] Set the confidence correctly for the checkPierre Sassoulas2022-09-161-1/+1
|
* [invalid-class-object] Fix crash when __class__ is defined with a tuplePierre Sassoulas2022-09-161-1/+12
| | | | Closes #7467
* Turn on ``mypy`` strict mode 🎉 (#7448)Daniël van Noord2022-09-091-3/+3
| | | | | | | | | | * Ignore subclasses of Any * Add ignores for imported code and remove casts * Add disables for uninferable return values * Turn on ``mypy`` strict mode
* Finish typing across the codebaseDaniël van Noord2022-09-091-3/+5
|
* Finish some incomplete typing signatures (#7442)Daniël van Noord2022-09-091-1/+1
|
* Complete typing of all generic types (#7406)Daniël van Noord2022-09-041-2/+2
| | | | And update ``mypy`` configuration
* Prevent `useless-parent-delegation` for overriding `Exception.__init__` with ↵Jacob Walls2022-08-211-0/+2
| | | | new args
* Fix false positive for `no-self-argument` (#7301)Mark Byrne2022-08-131-0/+3
| | | | | * Fix false positive for `no-self-argument` when a staticmethod is applied to a function but uses a different name. Closes #7300
* Fix crash when a type-annotated `__slots__` with no value is declared. (#7285)Mark Byrne2022-08-111-2/+3
| | | | | * Fix crash when a type-annotated `__slots__` with no value is declared. Closes #7280
* [typing] Add typing to the class checkers (#7190)Pierre Sassoulas2022-08-102-56/+93
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Don't emit ``super-init-not-called`` for abstract ``__init__`` methods (#7227)Daniël van Noord2022-07-311-5/+5
|
* Add partial typing to ``class_checker`` (#7088)Daniël van Noord2022-07-071-20/+49
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [usless-parent-delegation] Set confidence to inference instead of undefinedPierre Sassoulas2022-06-241-2/+5
|
* [useless-super-delegation] Rename the message to useless-parent-delegationPierre Sassoulas2022-06-241-7/+6
|
* Fix false positive for ``useless-super-delegation`` for variadics (#6949)Daniël van Noord2022-06-151-0/+6
|
* Fix a crash in `unused-private-member` with chained private attributes (#6710)Jacob Walls2022-05-261-1/+1
|
* Some initial line wrapping of docstrings (#6672)Daniël van Noord2022-05-231-3/+8
|
* Update ``pydocstringformatter`` to ``0.6.0`` (#6671)Daniël van Noord2022-05-231-1/+0
|
* Suppress useless-super-delegation on __hash__ in classes with __eq__ (#6611)Tim Martin2022-05-151-47/+62
| | | | | | | | | | | | | | * Suppress useless-super-delegation on __hash__ in classes with __eq__ If the class overrides __eq__, then the runtime will look for a definition of __hash__, which will have an effect even if it is trivial. (#3934) * Extract a helper function to avoid "too many returns" pylint warning * Improve comments and add a type declaration * Use safe_infer() for inferring the function expression
* Update all ``TODO: 2.14`` (#6573)Daniël van Noord2022-05-101-1/+0
|
* Fix invalid-enum-extension with IntFlag (#6511)Marc Mueller2022-05-051-10/+10
|
* Move no-self-use to optional extension (#6448)Marc Mueller2022-05-051-45/+0
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Disable fixme for internal uses before we make it optional in #3512 (#6482)Pierre Sassoulas2022-05-011-1/+0
|
* Run development version of ``pydocstringformatter`` (#6469)Daniël van Noord2022-04-281-5/+5
|
* Add typing to ``BaseChecker`` ``msgs`` and ``reports`` (#6456)Daniël van Noord2022-04-251-1/+4
|
* Fix emit might be undefined in special method checkerPierre Sassoulas2022-04-221-0/+1
|
* Migrate from utils.check_messages to utils.only_required_for_messages (#6432)Pierre Sassoulas2022-04-221-2/+2
|
* Migrate from 'check_messages' to 'only_required_for_messages' (#6417)Pierre Sassoulas2022-04-211-5/+5
|