| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| |
|
|
|
|
| |
See https://github.com/PyCQA/astroid/pull/1069\#issuecomment-865206120
|
|
|
|
| |
See https://github.com/PyCQA/astroid/pull/1045\#discussion_r654572722
|
|
|
|
| |
See https://github.com/PyCQA/astroid/pull/1045\#discussion_r654570889
|
| |
|
|
|
|
| |
And add PY3X type constants in it.
|
| |
|
|
|
|
| |
Except on astroid/__init__.py because of circular imports
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When a file contained a misplaced type annotation, we were retrying the parsing
without type comments support. That second parsing was using the builtin ast module,
but the rest of the tree utilities (the builder and rebuilder) were not aware of the
new parsing module that was used to build the AST nodes a second time.
This commit moves the logic of picking the parsing module and the corresponding
AST node mapping in a single place, which can be used by both the builder
and the rebuilder.
Close PyCQA/pylint#3540
Close #773
|
|
|
|
|
|
|
|
| |
It is possible for a module to use comments that might be interpreted
as type comments by the `ast` library. We do not want to completely crash on those
invalid type comments.
Close #708
|
|
|
|
| |
parse function
|
| |
|
|
|
|
|
| |
Until now we were parsing with the default 3.6 with typed_ast, which does not
make sense for Python 3.5 and 3.4
|
|
|
|
| |
Close #646
|
| |
|
|
|
|
|
| |
typed_ast doesn't fully support the complete syntax of 3.7 which
will result in SyntaxErrors when building trees with 3.7 specific syntax.
|
|
|
|
|
|
| |
This commit exposes two new attributes to the FunctionDef nodes, type_comment_args
respectively type_comment_annotations. These two attributes hold the type annotations
provided via type comments.
|
|
|