Dave Halter
f136745a8a
follow_param -> infer_param.
2017-04-20 18:09:00 +02:00
Dave Halter
ea1905f121
Refactor the docstring input.
2017-04-20 18:06:40 +02:00
Dave Halter
fbde21166b
find_return_types -> infer_return_types.
2017-04-20 09:56:16 +02:00
Dave Halter
ff82763e6b
get_annotation -> annotation (property).
2017-04-08 15:29:29 +02:00
Dave Halter
545cb26f78
stars -> star_count.
2017-04-08 15:26:57 +02:00
Dave Halter
8a35a04439
Remove the module path from the parser tree.
...
Some static analysis tests are still failing.
2017-03-27 18:13:32 +02:00
Dave Halter
448bfd0992
Move the python parser tree.
2017-03-16 17:20:32 +01:00
Dave Halter
93f14157a6
Cleanup the ParseError stuff.
2017-03-15 18:41:58 +01:00
Dave Halter
717bfeb574
Remove an occurance of the complicated parser creation.
2017-03-14 19:27:03 +01:00
Dave Halter
97fc3bc23c
Refactored the parser calls. Now it's possible to use jedi.parser.python.parse to quickly parse something.
2017-03-14 00:38:58 +01:00
Dave Halter
445bf6c419
Get rid of get_parent_until.
2017-02-03 09:59:32 +01:00
Dave Halter
7623b1e350
Removed tree.is_node.
...
It's not needed anymore, because we have Node/Leaf.type now.
2017-01-23 20:34:30 +01:00
Dave Halter
ae8e43d3c7
Move get_node() to tree_node and replace all the custom classdefs/funcdefs.
2017-01-05 23:43:12 +01:00
Dave Halter
5d071ede8c
Fix the typing module issues in Python 3.6.
2017-01-02 15:01:12 +01:00
Dave Halter
f6070496ad
Fixes to the isinstance tests.
2016-11-28 09:34:59 +01:00
Dave Halter
558e8add49
Fix complex instance name resolving.
2016-11-27 11:51:12 +01:00
Dave Halter
f672b367da
Fix most of PEP 484.
2016-11-15 00:05:08 +01:00
Dave Halter
31514dfe76
Fix a lot on PEP 484.
2016-11-14 23:29:09 +01:00
Dave Halter
75b67af000
Starting to improve function calls.
2016-10-22 21:02:15 +02:00
Dave Halter
885cf62a12
Remove the position_modifier from the parser.
2016-09-18 00:50:31 +02:00
Dave Halter
82c76fa689
Merge with the linter branch (especially the changes of pep484.
2016-06-07 13:51:25 +02:00
Dave Halter
daa68b66ad
Fix a few issues caused by the refactoring.
2016-05-29 19:49:35 +02:00
Claude
795a72a866
add typing.cast() to the todo list
2016-02-15 18:13:47 +01:00
Claude
71ab855802
update list of things that are completed
2016-02-15 17:56:14 +01:00
Claude
641fb80773
add support for 'with-assignment' hints
2016-02-15 17:52:21 +01:00
Claude
3a1b2e7104
add support for 'for-assignment' hints
2016-02-15 17:37:03 +01:00
Claude
8b28678d19
support tuple-assignment
2016-02-15 17:04:19 +01:00
Claude
a658f7940c
typehints for variables in comments
2016-02-15 16:03:23 +01:00
Claude
daeee4ba0c
simple typehints in comments
2016-02-15 15:12:07 +01:00
Claude
244c9976e5
cache the parsed jedi_typing module
2016-01-23 23:06:28 +01:00
Claude
e267f63657
python 2.7 compatibility, typing module tested with docstring, so that it can also be tested in python 2.7
2016-01-23 22:53:48 +01:00
Claude
c9bf521efd
remove renaming of class based on parameters
2016-01-23 22:10:52 +01:00
Claude
b499906398
Reverted 10f5e1 --- needed some more work to get it working again
2016-01-17 16:12:43 +01:00
Claude
a5fc149f9d
use jedi.common.unite in flatten array of sets
2016-01-17 10:57:38 +01:00
Claude
59161c0b5d
fix FakeSequence type
2016-01-17 10:51:06 +01:00
Claude
3852431549
typing.Union and typing.Optional
2016-01-17 10:41:41 +01:00
Claude
7b97312509
tuples and mappings in typing
2016-01-17 10:41:40 +01:00
Claude
10f5e15325
I feel this is a nicer solution. Forward Reference busting should be part of the annotation resolving. It doesn not have anything to do with the typing module (and should indeed also happen if someone writes his own types outside of the typing module)
2016-01-17 10:41:40 +01:00
Claude
5948c63cf9
Make the classes descriptions look better --- not sure whether this is a good idea
2016-01-17 10:41:40 +01:00
Claude
67cbc5ebd1
made code slightly more pytho2 friendly
2016-01-17 10:41:40 +01:00
Claude
85023a22aa
Not implemented classes should not default to everything
2016-01-17 10:41:40 +01:00
Claude
cc6bd7d161
rework so that it also works withouty pep0484 type hints in jedi_typing.py
2016-01-17 10:41:40 +01:00
Claude
52cc721f45
made typing classes inheritable; added MutableSequence and List
2016-01-17 10:41:40 +01:00
Claude
f5a31ad78e
first try at the typing library
2016-01-17 10:41:40 +01:00
Dave Halter
a373e34229
The parser without error recovery raises an error now if he's not able to parse something.
2015-12-25 18:53:05 +01:00
Dave Halter
936cef97e9
Fix param position lookups. Also forward annotations have the correct resolution path now (starting at the end of the file).
2015-12-22 11:25:32 +01:00
Dave Halter
5791860861
Actual forward reference annotations are working pretty smooth now.
2015-12-20 22:57:41 +01:00
Dave Halter
c4906e0e3f
Rework the parser so we can use arbitrary start nodes of the syntax.
...
This also includes a rework for error recovery in the parser. This is now just possible for file_input parsing, which means for full files.
Includes also a refactoring of the tokenizer. No more do we have to add an additional newline, because it now works correctly (removes certain confusion.
2015-12-20 22:25:41 +01:00
Dave Halter
b2a691a69a
PEP 484 support also means that we should evaluate comments in the future.
2015-12-19 11:10:05 +01:00
Claude
6bee214948
catch error in certain non-pep0484 annotations
2015-12-17 15:23:40 +01:00