summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* [brain tests] Burst typing extensions from the main filePierre Sassoulas2023-02-092-32/+41
|
* [brain tests] Burst attr from the main filePierre Sassoulas2023-02-092-181/+191
|
* [brain tests] Burst dateutil from the main filePierre Sassoulas2023-02-092-20/+29
|
* [brain tests] Burst nose from the main filePierre Sassoulas2023-02-092-35/+45
|
* [brain tests] Burst multiprocessing from the main filePierre Sassoulas2023-02-092-105/+115
|
* [brain tests] Burst six from the main filePierre Sassoulas2023-02-092-145/+156
|
* [brain tests] Burst named tuple from the main filePierre Sassoulas2023-02-092-300/+311
|
* [brain tests] Burst hashlib from the main filePierre Sassoulas2023-02-092-56/+64
|
* [brain tests] Rename 'unittest' prefix to 'test'Pierre Sassoulas2023-02-0943-0/+0
|
* [unittest brain] Remove unused unittest.mainPierre Sassoulas2023-02-0925-100/+0
|
* [brain tests] Move the file to their dir and shorten namePierre Sassoulas2023-02-0921-0/+0
|
* Add support for keyword only argument default valuesDaniël van Noord2023-02-051-1/+16
|
* Create ``UninferableBase``Daniël van Noord2023-02-051-3/+3
|
* Add support for custom import hooks (#1752)Daniël van Noord2023-02-051-5/+1
| | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Revert CallContext change since it caused a RecursionError regression (#2000)Marc Mueller2023-01-313-7/+12
| | | This reverts commit a0d219cb3403cda3338a14ce67a60954b4ff5cd7 (#1982).
* Add Lock to multiprocessing (#1976)Dani Alcala2023-01-311-0/+5
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add support for binary union types - Python 3.10 (#1977)Marc Mueller2023-01-301-2/+116
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Capture unwanted output signaled in #1904. (#1978)Ben Elliston2023-01-301-0/+47
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Skip recursion test on PyPy (#1987)Marc Mueller2023-01-291-1/+9
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Preserve parent CallContext when inferring nested functions (#1982)Marc Mueller2023-01-292-7/+24
|
* Fix PyPy ClassDef.fromlino with decorators (#1979)Marc Mueller2023-01-282-21/+10
|
* Fix issues with `typing_extensions.TypeVar` (#1973)Marc Mueller2023-01-221-0/+32
| | | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix order of overwritten attributes in inherited dataclasses (#1970)Daniël van Noord2023-01-171-4/+65
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix a false positive with user-defined `Enum` class (#1967)Mark Byrne2023-01-151-0/+44
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Do not require typing_extensions on Python 3.11Michal Vasilek2023-01-151-2/+5
| | | | | | | | 19878a55e61ce8788db530240dba9570706a5aac added an unconditional dependency on typing_extensions to fix tests with Python 3.10 3.11. This commit fixes this issue by only requiring typing_extensions on Python versions lower than 3.11 and using standard typing on Python 3.11 and newer.
* Fix a regression in 2.13.2 where a ``RunTimeError`` could be raised ↵Pierre Sassoulas2023-01-102-1/+22
| | | | | | | | | | unexpectedly (#1959) * Add a unit test for broken __getattr__ in extension modules Co-authored-by: Florian Bruhin <me@the-compiler.org> Closes #1958
* Initial pass with ``pydocstringformatter`` over tests (#1949)Daniël van Noord2023-01-0929-252/+197
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Support "is None" constraints from if statements during inference (#1189)David Liu2023-01-061-0/+590
| | | | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add ``regex`` brain (#1934)Daniël van Noord2023-01-021-0/+48
| | | | Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Make ``Arguments.defaults`` ``None`` for uninferable signatures (#1595)Daniël van Noord2023-01-021-1/+1
|
* Cache `ClassDef._metaclass_lookup_attribute` (#1932)Jacob Walls2022-12-311-1/+8
| | | | | When linting import returns.result from the returns library, generates 93,315 cache hits to 443 misses, cutting the total linting time from 50s to 12s. Closes PyCQA/pylint#4750
* brain tip for numpy masked_invalid (#1931)Dani Alcala2022-12-301-23/+18
| | | | | | | | | | | | | * brain tip for numpy masked_invalid * add unit test * refactor tests and update changelog * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* [pre-commit] Trying out black 23.1a1 (#1909)Pierre Sassoulas2022-12-271-2/+1
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Handle kw_only=True in dataclass fieldsDaniël van Noord2022-12-271-0/+43
|
* Handle init=False with defaults in dataclasses (#1898)Daniël van Noord2022-12-271-0/+56
|
* [pypy 3.8] Fix wrong line given by the ast for pypy 3.8Pierre Sassoulas2022-12-262-6/+17
|
* Inference tip str.format transformation: handle AttributeError during ↵James Addison2022-12-151-0/+4
| | | | str.format template evaluation (#1903)
* Handle properties in dataclasses correctlyDaniël van Noord2022-12-071-0/+69
|
* Ignore DeprecationWarning from importing `nose` in testJacob Walls2022-11-201-2/+4
|
* Fix uncaught ValueError in infer_getitem with zero-step slices (#1844)Andrew Haigh2022-11-131-0/+10
| | | Fixes #1843
* Prevent a crash when inferring calls to `str.format` with invalid args (#1866)Jacob Walls2022-11-121-0/+6
|
* Infer the `length` argument of the `random.sample` function. (#1862)Mark Byrne2022-11-041-0/+23
| | | Refs PyCQA/pylint#7706
* Prevent returning an empty list for `ClassDef.slots()` (#1861)Mark Byrne2022-11-031-0/+20
| | | | | Prevent returning an empty list for `ClassDef.slots()` when the mro list contains one class & it is not `object`. Refs PyCQA/pylint#5099 Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Fix getattr inference with empty annotation assignments (#1834)Marc Mueller2022-10-171-0/+16
|
* Fix detecting invalid metaclasses (#1836)Marc Mueller2022-10-171-0/+14
| | | Regression from #1678
* Prevent a crash when a module's ``__path__`` is missingJacob Walls2022-10-151-0/+9
|
* Update the ``hashlib`` brain ``hash.digest`` & ``hash.hexdigest`` methods. ↵Mark Byrne2022-10-151-5/+25
| | | | | | | | | (#1827) * Add the ``length`` parameter to ``hash.digest`` & ``hash.hexdigest`` in the ``hashlib`` brain. * Move content in Changelog to a different section. Refs PyCQA/pylint#4039
* Add ``_value2member_map_`` member to the ``enum`` brain. (#1820)Mark Byrne2022-10-081-0/+15
| | | Refs PyCQA/pylint#3941
* Fix regression in the creation of the ``__init__`` of dataclasses (#1812)Daniël van Noord2022-10-041-0/+70
| | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Remove unnecessary ``xfail`` from tests (#1813)Daniël van Noord2022-10-011-1/+0
|