summaryrefslogtreecommitdiff
path: root/astroid
Commit message (Collapse)AuthorAgeFilesLines
* Recognize stub ``pyi`` Python files. (#2182)HEADmainMark Byrne2023-05-162-8/+7
| | | | | | | Recognize stub ``pyi`` Python files. Refs pylint-dev/pylint#4987 Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Add disableJacob Walls2023-05-151-1/+2
|
* Add a bound to the inference tips cacheJacob Walls2023-05-151-3/+9
| | | | | | | Small bounds still yield about equal hits and misses. Further work could determine if storing only the last result is optimal.
* Add `InferenceContext.is_empty()`Jacob Walls2023-05-152-0/+15
|
* Remove cache entries in all exit pathsJacob Walls2023-05-151-3/+10
| | | | Follow-up to 0740a0dd5e9cb48bb1a400aded498e4db1fcfca9.
* Improve performance of `looks_like_numpy_member()` (#2178)Jacob Walls2023-05-144-25/+30
| | | Avoids 32% of the calls to isinstance() when linting astroid
* Bump astroid to 3.0.0a4-dev0, update changelogPierre Sassoulas2023-05-141-1/+1
|
* Bump astroid to 3.0.0a3, update changelogv3.0.0a3Pierre Sassoulas2023-05-141-1/+1
|
* Handle ``objects.Super`` in `helpers.object_type()` (#2177)Jacob Walls2023-05-141-2/+2
|
* Publicize `NodeNG.repr_name()` (#2176)Jacob Walls2023-05-131-6/+3
|
* Remove pylint disables and resolves TODO in pylintrc (#2175)Jacob Walls2023-05-123-3/+0
|
* Fix constructors of ``BaseContainer`` and ``Dict``Daniël van Noord2023-05-086-96/+154
|
* Fix some typing in ``helpers.py``Daniël van Noord2023-05-082-28/+28
|
* Add two type ignoresDaniël van Noord2023-05-081-2/+3
|
* Improve typing of inference functions (#2166)Jacob Walls2023-05-075-42/+84
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Complete cache key for inference tip (#2158)Jacob Walls2023-05-061-8/+22
| | | | | The cache key was lacking the `context` arg. Co-authored-by: Sylvain Ackermann <sylvain.ackermann@gmail.com>
* Import `typing_extensions` under version guard.Jacob Walls2023-05-061-2/+6
|
* Allow passing ``UninferableBase`` to ``safe_infer``Daniël van Noord2023-05-011-1/+4
|
* Type ``bases.py``Daniël van Noord2023-05-011-32/+62
|
* Type ``decoratornames``Daniël van Noord2023-05-011-2/+1
|
* Broaden annotations that are too narrowDaniël van Noord2023-05-015-12/+13
|
* Rename ``module`` to ``node``Daniël van Noord2023-04-301-2/+2
|
* Complete typing of ``context.py``Daniël van Noord2023-04-301-30/+14
|
* Fix ``infer_argument`` partiallyDaniël van Noord2023-04-303-10/+18
|
* Fix some typing issuesDaniël van Noord2023-04-304-7/+7
|
* Yield directly from _explicit_inference in NodeNG.infer() (#2157)Jacob Walls2023-04-301-5/+6
|
* Upgrade the version to 3.0.0a3-dev0 following 3.0.0a2 releaseMarc Mueller2023-04-251-1/+1
|
* Bump astroid to 3.0.0a2, update changelogv3.0.0a2Marc Mueller2023-04-251-1/+1
|
* Remove deprecated doc attribute (#2154)Marc Mueller2023-04-251-81/+2
|
* Remove deprecated `is_sys_guard` + `is_typing_guard` (#2153)Marc Mueller2023-04-251-54/+0
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Remove deprecated nodesMarc Mueller2023-04-254-48/+3
|
* Upgrade the version to 3.0.0a2-dev0 following the 3.0.0a1 releaseMarc Mueller2023-04-251-1/+1
|
* Bump astroid to 3.0.0a1, update changelogv3.0.0a1Marc Mueller2023-04-251-1/+1
|
* Fix the signature of ``infer_call_result``Daniel van Noord2023-04-256-36/+79
|
* Make all arguments to ``nodes.NodeNG.__init__`` required (#2138)Daniël van Noord2023-04-256-30/+57
|
* Remove ``laxy_object_proxy`` as dependency (#2139)Daniël van Noord2023-04-242-25/+8
|
* Merge branch 'maintenance/2.15.x' into mainMarc Mueller2023-04-246-4/+30
|\
| * Bump astroid to 2.15.4, update changelog (#2144)v2.15.4Marc Mueller2023-04-241-1/+1
| |
| * Various TryStar fixes (#2142)Marc Mueller2023-04-246-4/+30
| |
| * Bump astroid to 2.15.3, update changelogv2.15.3Pierre Sassoulas2023-04-161-1/+1
| |
| * Suppress UserWarning when finding module specs (#2121) (#2122)github-actions[bot]2023-04-161-1/+4
| | | | | | | | | | | | | | | | | | | | | | Found when linting this code: ``` import setuptools import pip ``` (cherry picked from commit 6723e635e54e991a4304e45293308f5076b0bcb8) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
| * Fix infer_call_result() crash on methods called with_metaclass() (#2118)Jacob Walls2023-04-161-1/+9
| |
| * Bump astroid to 2.15.2, update changelogv2.15.2Pierre Sassoulas2023-04-021-1/+1
| |
| * Support attrs decorators even if they are imported from attrs (#2059) (#2073)Pierre Sassoulas2023-04-011-0/+5
| | | | | | | | | | | | | | | | Use inference to determine membership of ``attr(s)`` module Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> (cherry picked from commit 489c90fb29970d9362f21f26247bd45a39832dcd) Co-authored-by: alm <alonme@users.noreply.github.com>
| * Bump astroid to 2.15.1, update changelogv2.15.1Pierre Sassoulas2023-03-261-1/+1
| |
| * Restore setting a Call as a base for classes using `six.with_metaclass` ↵github-actions[bot]2023-03-262-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (#2049) (#2067) Harden support for using enums as metaclasses. Fixes the crash in PyCQA/pylint#5935 by adopting the check for not-none bases as in ClassDef._inferred_bases without recausing the false positive reported in PyCQA/pylint#7506, which requires correct bases. (cherry picked from commit b5ebf994a1c6039fa8ca4706889e007700cdf41a) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* | Cleanup rebuilder after dropping py37 (#2143)Marc Mueller2023-04-241-238/+117
| |
* | Remove unused constants (#2141)Marc Mueller2023-04-248-86/+13
| | | | | | | | | | | | * Remove `PY38_PLUS` constant * Remove `BUILTINS` constants * Remove `Load` + `Store` + `Del` * Remove `BOOL_SPECIAL_METHOD`
* | Remove cachedproperty decorator (#2140)Marc Mueller2023-04-241-46/+0
| |
* | Drop support for Python 3.7 (#2137)Marc Mueller2023-04-2318-280/+133
| |