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
7374819ade
Add a repr to ImplicitNamespaceContext
2019-03-06 08:36:50 +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
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
2dd2d06bca
Add a todo
2019-02-25 00:27:27 +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
8ac7d1fdb6
Use the internal parse function to avoid UnicodeDecodeError in mixed, fixes #1277
2019-02-24 19:56:17 +01:00
Dave Halter
0bf8a69024
v13.3 release notes
2019-02-24 18:45:07 +01:00
Dave Halter
9bb8f335c9
A small improvement for environments
...
see comment in https://github.com/davidhalter/jedi/commit/8d313e014fa15eaec9fae38080ff19d462bfdf1e
2019-02-22 01:04:01 +01:00
Dave Halter
8d313e014f
Check for specific Python versions first on unix, see davidhalter/jedi-vim#870
2019-02-22 00:34:03 +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
48b137a7f5
Revert "Remove an used function"
...
This reverts commit efd8861d62 .
2019-02-21 17:54:01 +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
efd8861d62
Remove an used function
2019-02-21 10:16:17 +01:00
Dave Halter
2f86f549f5
Improve an error message, see #1279
2019-02-16 04:32:03 +01:00
Dave Halter
e3d5ee8332
Don't use a while loop in py__iter__
2019-01-25 20:09:27 +01:00
Dave Halter
3c201cc36c
Fix power operation for Python 2
2018-12-25 00:59:00 +01:00
Dave Halter
f6983d6126
Add an empty init file for Python 2
2018-12-25 00:53:26 +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
b542b17d93
Remove old todo list for annotations
2018-12-24 21:44:54 +01:00
Dave Halter
59c7623769
Move annotation pep0484 file (about anontations) to gradual folder
2018-12-24 17:48:21 +01:00
Dave Halter
e2ab4c060f
Move all the gradual typing stuff into one folder
2018-12-24 17:40:47 +01:00
Dave Halter
025b8bba76
Fix a unicode path issue
2018-12-23 16:29:25 +01:00
Dave Halter
5e7ff808d4
Fix f-string evaluation, fixes #1248
2018-12-23 15:32:37 +01:00
Dave Halter
86fbf3fef6
Fixed a string deprecation warning, fixes #1261
2018-12-22 22:49:23 +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
881ffadb5c
Python 3.7 was not disabled in the right way for travis
2018-12-16 19:24:10 +01:00
Dave Halter
7b20ad7749
Make a doctest simpler that only led to issues in the past
2018-12-16 19:22:17 +01:00
Dave Halter
ddef626e66
Disable Python 3.7 on travis again for now
2018-12-16 19:17:46 +01:00
Dave Halter
50399935c9
Revert "Get rid of the fancy magic of preinstalling Python versions"
...
This reverts commit b561d1fc17 .
2018-12-16 19:15:53 +01:00
Dave Halter
57587f71ab
Make it possible that tests work also on Windows
2018-12-16 19:09:08 +01:00
Dave Halter
b561d1fc17
Get rid of the fancy magic of preinstalling Python versions
2018-12-16 18:58:04 +01:00
Dave Halter
ed90a69e2c
Clone appveyor submodules recursively
2018-12-16 18:57:26 +01:00
Dave Halter
3703c43d62
Testing the nightly should use a more modern Python version
2018-12-16 18:27:47 +01:00
Dave Halter
30c2e64d9e
py__name__ does not need to be defined
2018-12-16 18:24:10 +01:00
Dave Halter
af12789762
Try to fix the appveyor config
2018-12-16 18:20:00 +01:00
Dave Halter
9bf2b9f6e4
Add Python 3.7 to appveyor
2018-12-16 18:18:00 +01:00
Dave Halter
50edd82268
Add 3.7 to to travis config
2018-12-16 18:16:50 +01:00
Dave Halter
babf074448
Sometimes os_path_join is really too slow :(
2018-12-16 17:58:44 +01:00
Dave Halter
9d3043ee39
Cloning typeshed should be possible without git write access
2018-12-16 17:40:41 +01:00
Dave Halter
33b73d7fbc
Typing does not need to be installed for Jedi to work, vendored typeshed is enough
2018-12-16 17:26:56 +01:00
Dave Halter
af51c9cc33
Fix Python 3 with Python 2 environment issues
2018-12-16 17:13:02 +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
ba0d71bef1
Simplify tox.ini
2018-12-16 15:53:21 +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
79189f243a
Upgrade typeshed version
2018-12-16 00:13:54 +01:00
Dave Halter
81b42c8633
Fix a test for Python 2
2018-12-15 22:27:45 +01:00
Dave Halter
541a8d3a3e
Fix some doctests that were slightly changed because of stubs
2018-12-15 22:20:05 +01:00
Dave Halter
3cbba71e7e
Merge branch 'master' into typeshed
2018-12-15 22:19:02 +01:00
Dave Halter
9617d4527d
setup.py was not executable in Python3.7
2018-12-15 22:18:42 +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
86ae11eb43
Add a new release 0.13.2
2018-12-15 20:09:36 +01:00
Dave Halter
078595f8d7
Merge pull request #1262 from hoefling/pytest-marks
...
Use `pytest.param` when marking single parameters
2018-12-15 19:14:56 +01:00
Dave Halter
a21eaf9dba
Merge remote-tracking branch 'origin/master' into typeshed
2018-12-15 19:05:10 +01:00
Dave Halter
249564d6ea
Merge remote-tracking branch 'origin/master' into typeshed
2018-12-15 18:20:51 +01:00
Dave Halter
90a28c7b1e
Don't make complicated subprocess calls for version info comparisons
2018-12-15 17:10:40 +01:00
Dave Halter
46da1df5ae
Add an assert that makes it impossible to nest classes of the same type
2018-12-14 09:37:30 +01:00
Dave Halter
fda6409600
Cache _apply_decorators
2018-12-14 09:36:13 +01:00
Dave Halter
d1be92ac80
Cache used names definition finding per evaluator
2018-12-14 09:20:42 +01:00
Dave Halter
b6cb1fb72d
Rewrite the typeshed algorithm of matching actual and stub classes
2018-12-13 09:32:57 +01:00
Dave Halter
26b49f8d01
Make the profile_output script usable for Python 2 as well
2018-12-11 00:11:49 +01:00
Dave Halter
c87398a8c2
Remove unused code
2018-12-10 21:34:47 +01:00
Dave Halter
3940fd8eff
Restructure eval_annotation so that it's more understandable
2018-12-09 20:48:18 +01:00
Dave Halter
aa4846bff6
If the stub module is not a package but the actual module is, it should not fail the import
2018-12-09 13:39:40 +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
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
Dave Halter
74c965b55c
Fix a return type for py__iter__()
2018-12-06 18:54:51 +01:00
Dave Halter
83ba02d0fb
Fix remaining issues for Python 3.4
2018-12-06 18:19:30 +01:00
Dave Halter
63bd762f91
Fix a colorama debug highlighting issue
2018-12-06 01:12:48 +01:00
Dave Halter
cc9641f8c1
Fixed an issue about compiled bound methods
2018-12-06 01:03:17 +01:00
Dave Halter
c446bcf885
Fix Python 3.5 issues
2018-12-06 00:59:56 +01:00
Dave Halter
d9e711ab11
Fix remaining Python 3.7 issues to get the tests to pass
2018-12-06 00:35:09 +01:00
Dave Halter
3260867918
Move the stdlib namedtuple template of 3.6 to Jedi.
2018-12-06 00:34:52 +01:00
Dave Halter
d90011c002
Cleanup a few issues with the latest module refactoring
2018-12-05 22:55:56 +01:00
Dave Halter
2406c8374f
StubModuleContext is now a wrapped context
2018-12-05 21:33:23 +01:00
Dave Halter
3d4f241129
Cache Script._get_module
2018-12-05 18:18:26 +01:00
Dave Halter
9766abf1c5
Fix a small caching issue
2018-12-05 18:17:33 +01:00
Dave Halter
feefde400e
Fix mro for typing classes
2018-12-05 00:16:06 +01:00