1
0
forked from VimPlug/jedi
Commit Graph

63 Commits

Author SHA1 Message Date
Peter Law
36a4b7d48c Update flake8 and fix issue found 2023-02-13 19:15:35 +00:00
GalaxySnail
0c7384edc3 A naive implementation for PEP 604 2022-04-14 03:32:12 +08:00
jerluc
8847848a03 Adds support for "async with" via #1818 2021-11-16 13:00:24 -08:00
Dave Halter
e617c9d344 Formatting 2020-08-05 23:55:46 +02:00
Dave Halter
58ef6cd36b if_stmt test clauses should be resolved at the start of the if_stmt 2020-08-05 23:55:46 +02:00
Dave Halter
abf63d73d3 Basic implementation support for namedexpr, fixes #1647 2020-08-05 23:55:46 +02:00
Dave Halter
5ab351dc8f Remove unicode literals from code base 2020-07-02 10:43:14 +02:00
Dave Halter
7f67324210 Remove a lot more Python 2 mentions and todos 2020-07-02 10:30:58 +02:00
Dave Halter
8ee0c8593e Remove unicode usages 2020-07-02 03:26:22 +02:00
Dave Halter
782c561e86 Fix the compatibility docstring 2020-07-02 02:03:34 +02:00
Dave Halter
49e4b1a0f8 Remove force_unicode 2020-07-02 01:47:21 +02:00
Miltos
bc5a8ddf87 Add __matmul__ to supported operators. 2020-06-25 17:35:07 +01:00
Peter Law
c62cbd6654 Explicitly handle a not in b operator comparison
This avoids a `KeyError` from operator_to_magic_method lookup for
this case. Jedi probably could check for `__contains__` here, however
as it doesn't do so for `in` checks I'm following that lead for now.

Fixes https://github.com/davidhalter/jedi/issues/1594.
2020-05-23 12:49:53 +01:00
Dave Halter
b3fc10a6e4 Magic methods fixes for reverse methods 2020-05-16 15:39:48 +02:00
Dave Halter
09dbbc6361 lists and tuples should not be added 2020-05-16 15:10:47 +02:00
Dave Halter
f5ad561c51 Use __truediv__ instead of __div__
This ignores Python 2, but that shouldn't be an issue, since we are going to drop it anyway.
2020-05-16 14:57:57 +02:00
Dave Halter
41c146a6f3 Implement magic method return values, fixes #1577 2020-05-15 23:53:44 +02:00
Dave Halter
ac33d5dea3 If branch inference should not trigger for things we don't know, fixes #1530 2020-03-31 22:46:31 +02:00
Dave Halter
fb72e1b448 Merge _remove_statements and infer_expr_stmt, fixes #1504 2020-03-13 00:50:25 +01:00
Dave Halter
4d5373d626 Don't continue searching for values if an annotation is found 2020-03-01 12:25:46 +01:00
Dave Halter
609737322d TypedDict checking should be at a later point 2020-03-01 02:34:38 +01:00
Dave Halter
7ef07b576f Merge branch 'master' into typeddict 2020-02-07 04:03:27 +01:00
Dave Halter
e930f47861 Make generators return more correct values with while loops, fixes #683 2020-01-29 10:13:46 +01:00
Dave Halter
8eb980db73 Create the basics to work with TypedDict in the future 2020-01-26 19:25:23 +01:00
Dave Halter
11b61596e0 Make sure that del_stmt as a name can be handled, see #313 2020-01-23 23:58:52 +01:00
Dave Halter
11a12d6ca8 Refactor execute_operation a bit 2020-01-12 13:01:08 +01:00
Dave Halter
1813105b69 Make sure decorators are also not inferred for big annoying libraries, see #520 2020-01-04 13:26:55 +01:00
Dave Halter
a36d609756 Remoeve dead code 2020-01-01 23:23:29 +01:00
Dave Halter
66ad620692 Get rid of a lot of flake8 errors 2020-01-01 02:42:31 +01:00
Dave Halter
4bbaec68e8 Make sure goto_definitions is no longer used in the main code 2019-12-20 18:47:04 +01:00
Dave Halter
5e3e268cc6 Fix RecursionError: global statements in modules should just be ignored, fixes #1457 2019-12-13 00:21:36 +01:00
Dave Halter
a2cebc4b92 Make sure docstrings can always be inferred for builtins modules, fixes #1432 2019-12-11 00:06:58 +01:00
Dave Halter
378712dbc1 Fix contextualizing of subscriptlist 2019-12-01 11:07:18 +01:00
Dave Halter
4e68287bba Move eval_node to one place 2019-09-05 00:52:14 +02:00
Dave Halter
aea2ddcbd8 ContextualizedName -> TreeNameDefinition 2019-09-05 00:15:38 +02:00
Dave Halter
b27f47683c get_first_non_keyword_argument_values is not really used anymore 2019-09-04 00:08:49 +02:00
Dave Halter
06890203dd var_args -> arguments 2019-09-02 19:48:17 +02:00
Dave Halter
4572503c9f Fix usages in context of the new parso parameter include_setitem=True 2019-08-28 22:56:16 +02:00
Dave Halter
356c25a399 Add a way how dict setitem can be understood
Needs the latest parso commits
2019-08-26 19:27:33 +02:00
Dave Halter
d913d7d701 Don't use filter_name for global completions 2019-08-24 11:02:45 +02:00
Dave Halter
c1d8454f0c Finally get rid of NameFinder 2019-08-24 03:21:00 +02:00
Dave Halter
ba9c318d22 Move predefine_names to context 2019-08-24 02:39:51 +02:00
Dave Halter
e148d5120f Move some finder stuff around 2019-08-24 02:28:58 +02:00
Dave Halter
b13a9f7d5b Trying to move towards unifying goto and py__getattribute__ 2019-08-24 00:18:48 +02:00
Dave Halter
a9d8f389a9 Avoid using get_global_filters if it's not needed 2019-08-23 20:56:00 +02:00
Dave Halter
faf6752ff8 Move create_context to a context 2019-08-22 22:47:26 +02:00
Dave Halter
8e60689bcf valueualized_node -> contextualized_node 2019-08-18 00:58:33 +02:00
Dave Halter
4415de010d ValueualizedName -> ContextualizedName
Basically a change back to an older version
2019-08-18 00:57:29 +02:00
Dave Halter
680388a7e8 More fixes 2019-08-17 17:01:21 +02:00
Dave Halter
2629ff55f3 Fix some array tests 2019-08-17 15:42:13 +02:00