summaryrefslogtreecommitdiff
path: root/astroid/const.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused constants (#2141)Marc Mueller2023-04-241-8/+0
| | | | | | * Remove `PY38_PLUS` constant * Remove `BUILTINS` constants * Remove `Load` + `Store` + `Del` * Remove `BOOL_SPECIAL_METHOD`
* [PyCQA migration] Upgrade links to the repositories in code and docPierre Sassoulas2023-03-291-2/+2
|
* Fix PyPy ClassDef.fromlino with decorators (#1979)Marc Mueller2023-01-281-0/+3
|
* Add some type annotations to raw_building (#1885)Nick Drozd2022-11-261-0/+3
| | | | | | | | | | | | | | | * Check for None instead of asserting * Cut type ignores * Cut hasattr assertion * Define has_underlying_object in EmptyNode * No None for build_from_import * Cut _safe_has_attribute Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Require Python 3.7.2 (#1542)Jacob Walls2022-05-101-2/+0
|
* Let `AstroidManager.clear_cache` reload brain plugins (#1528)Jacob Walls2022-05-041-0/+5
|
* Fix re brain on 3.11 (#1515)Daniël van Noord2022-04-221-0/+1
| | | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Simplify hard to maintain copyright notice (#1441)Pierre Sassoulas2022-03-121-0/+4
| | | | | | | | | | | | | | * Simplify hard to maintain copyright notice git is the source of truth for the copyright, copyrite (the tool) was taking exponentially longer with each release, and it's polluting the code with sometime as much as 50 lines of names. * Add a pre-commit hook to check the copyright notice * Fix the existing file so they have a notice * Fix the spacing after the copyright notice * Add a script to generate the CONTRIBUTORS.txt Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Replace platform import (#1459)Marc Mueller2022-03-091-2/+2
|
* Add doc_node attribute (#1276)kasium2022-02-281-0/+3
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Use ``importlib`` instead of ``pkg_resources`` namespace package discovery ↵Daniël van Noord2022-02-211-0/+1
| | | | (#1326)
* Add regression test for #1124 (#1364)Daniël van Noord2022-01-241-0/+2
|
* Add end_lineno and end_col_offset to nodes (#1258)Marc Mueller2021-11-211-0/+1
| | | | | | | | * Add end_lineno and end_col_offset infomation * Add annotations for fields that are always None * Changelog entry Requires Python 3.8
* Temporary retro-compatibility with older pylint versionsPierre Sassoulas2021-08-191-0/+1
|
* Replace the constant BUILTINS by the string 'builtins'Pierre Sassoulas2021-08-191-3/+0
| | | | | | | | This make for clearer and also sligtly faster code (means time seems to decrese by 0.68% with this change alone (astroid/pylint) in the pylint tests benchmarks). Done because we were using an import from astroid from astroid.bases for one of those, which is kinda messy.
* Remove pylint useless-suppression (in const.py)Marc Mueller2021-07-111-3/+3
|
* Create a constant for BUILTINS in astroid.constantsPierre Sassoulas2021-06-261-0/+3
|
* Rename non obvious PY3X constant to PY3X_PLUSPierre Sassoulas2021-06-211-4/+4
| | | | See https://github.com/PyCQA/astroid/pull/1069\#issuecomment-865206120
* Add a todo to remove Load, Del, StorePierre Sassoulas2021-06-201-3/+4
|
* Remove the __all__ that aren't necessaryPierre Sassoulas2021-06-191-2/+0
|
* Import without wildcard for Context in astroid.__init_.pyPierre Sassoulas2021-06-191-0/+2
|
* Update astroid/const.pyPierre Sassoulas2021-06-191-3/+3
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Rename astroid.constants to astroid.constPierre Sassoulas2021-06-191-0/+18
See https://github.com/PyCQA/astroid/pull/1045\#discussion_r654572722