Dave Halter
156e5f6beb
Add two typeshed tests
2019-03-13 10:04:19 +01:00
Dave Halter
8e9a91abf8
Implement is_stub and goto_stubs for the API
2019-03-11 19:13:24 +01:00
Dave Halter
32d2397e64
Move test_stub to test_gradual
2019-03-10 12:02:51 +01:00
Dave Halter
087a58965b
Add a typeshed test
2019-03-10 12:01:00 +01:00
Dave Halter
0cad79ad18
Merge branch 'master' into typeshed
2019-03-08 16:25:45 +01:00
Dave Halter
cd8c9436c5
Merge branch 'master' of github.com:davidhalter/jedi
2019-03-08 16:23:46 +01:00
Dave Halter
f93134d4f8
Two simple test fixes
2019-03-08 16:23:37 +01:00
Dave Halter
5743f54d69
One more relative import fix
2019-03-08 16:01:56 +01:00
Dave Halter
1914d10836
Fix relative imports outside of the proper paths
2019-03-08 14:25:54 +01:00
Dave Halter
6b579d53ec
Some more refactoring for relative imports
2019-03-08 10:54:28 +01:00
Dave Halter
c1d65ff144
Start reworking the relative imports
2019-03-07 00:27:51 +01:00
Dave Halter
9d19b060a9
Add a better comment for imports
2019-03-04 09:34:17 +01:00
Dave Halter
23d61e5e97
Restructure relative importing a bit and improve tests
2019-03-04 09:24:38 +01:00
micbou
46742328b6
Improve test_import_completion_docstring robustness
2019-03-02 09:58:01 +01:00
Dave Halter
467c2e5def
Merge branch 'master' into typeshed
...
There were quite a few conflicts, because there were two rewrites of the path
to dotted function.
2019-03-01 10:13:16 +01:00
Dave Halter
ffd9a6b484
Make it possible to complete in non-Python files
2019-02-28 20:04:17 +01:00
Dave Halter
8aca357de6
Write a test for #1209
...
Relative imports were failing in nested Python packages. With the fix to
transforming paths to dotted paths this should already be a lot better,
still here's a regression test.
2019-02-28 09:51:47 +01:00
Dave Halter
1a32663f85
The calculation of dotted paths from normal paths was completely wrong
2019-02-28 09:42:56 +01:00
Dave Halter
2a9e678877
Merge branch 'master' into typeshed
2019-02-27 13:13:17 +01:00
Dave Halter
17136e03d2
Fix get_parent_scope
2019-02-27 13:08:21 +01:00
Dave Halter
94f2677752
Fix names selection and params, fixes #1283
2019-02-26 00:20:33 +01:00
Dave Halter
eac69aef2b
Infer names in the correct way, fixes #1286
2019-02-25 21:48:57 +01:00
Dave Halter
5a2e3ee8e3
Filter self names in a more correct way, fixes #1275
2019-02-25 00:26:34 +01:00
Dave Halter
a79d386eba
Cleanup SameEnvironment and use the same logic for creation in virtualenvs
2019-02-22 00:24:55 +01:00
Dave Halter
b4a4dacebd
Fix embedded Python with Jedi (see comments in source code), fixes davidhalter/jedi-vim#870
2019-02-21 10:19:28 +01:00
Dave Halter
1c80705276
Fix power operation, fixes #1268
2018-12-25 00:51:22 +01:00
Dave Halter
d3f205f634
Split up the typeshed file
2018-12-25 00:21:44 +01:00
Dave Halter
e2ab4c060f
Move all the gradual typing stuff into one folder
2018-12-24 17:40:47 +01:00
Dave Halter
5e7ff808d4
Fix f-string evaluation, fixes #1248
2018-12-23 15:32:37 +01:00
Dave Halter
24174632d4
Fix some bugs of the last few commits
2018-12-22 22:08:54 +01:00
Dave Halter
1065768c77
Use ContextualizedNode instead of Node in get_calling_nodes
...
This improves working with these nodes by a lot.
2018-12-22 14:55:37 +01:00
Dave Halter
ca784916bb
Fix get_modules_containing_name
2018-12-22 14:33:24 +01:00
Dave Halter
fcda3f7bc5
Properly handle no __getitem__ on CompiledObject
2018-12-20 00:34:15 +01:00
Dave Halter
fcda62862c
Fix calculate_dotted_path_from_sys_path. It was broken beyond stupid.
2018-12-18 09:30:49 +01:00
Dave Halter
57587f71ab
Make it possible that tests work also on Windows
2018-12-16 19:09:08 +01:00
Dave Halter
babf074448
Sometimes os_path_join is really too slow :(
2018-12-16 17:58:44 +01:00
Dave Halter
f55da1e1d6
Fix isues with Python 2.7 running a 3.6 env
2018-12-16 15:53:42 +01:00
Dave Halter
add33f5f80
Fix grammar cache problems, because multiple grammars were potentially loaded
2018-12-16 13:14:05 +01:00
Dave Halter
81b42c8633
Fix a test for Python 2
2018-12-15 22:27:45 +01:00
Dave Halter
dc77c12e83
Fix pytest issues with this branch
2018-12-15 20:48:58 +01:00
Dave Halter
3ec78ba6c9
Merge branch 'master' into typeshed
2018-12-15 20:38:03 +01:00
Dave Halter
249564d6ea
Merge remote-tracking branch 'origin/master' into typeshed
2018-12-15 18:20:51 +01:00
Dave Halter
3ec194093d
Fix _sre issues
2018-12-09 12:54:39 +01:00
Dave Halter
f7442032b2
Fix version differences for re.sub
2018-12-09 12:50:01 +01:00
Dave Halter
2c5e2609f3
Overloaded functions now return values even if nothing matches
2018-12-09 12:43:55 +01:00
Dave Halter
ae1f5fa511
Fix namedtuples and reactivate tests for Python 2
2018-12-09 12:41:58 +01:00
Dave Halter
0c37256050
Change some tests in Python2
2018-12-08 23:55:08 +01:00
oleg.hoefling
4711b85b50
used pytest.param to comply with pytest>=4
2018-12-07 17:49:39 +01:00
Dave Halter
decb5046ea
Some Python 2.7 fixes
2018-12-07 08:58:17 +01:00
Dave Halter
b2824a3547
Remove a test, because it's different in Python 2/3 and covered by typeshed
2018-12-06 19:07:06 +01:00