Dave Halter
95a1a69771
Fix an issue where __ prefixed variables where not hidden when accessed from a class
...
Everything worked well when looking at it from an instance perspective.
2018-08-03 11:05:49 +02:00
Dave Halter
a3b5247de9
Merge branch 'master' into typeshed
2018-08-03 00:26:09 +02:00
Dave Halter
f25310e0b9
BoundMethods now have access to the function that they are using
2018-08-03 00:25:25 +02:00
Dave Halter
e576457a43
Remove another usage of is_class where it's not needed
2018-08-03 00:25:25 +02:00
Dave Halter
a1314ac3c1
FunctionContext should be created from a unified interface
2018-08-03 00:25:25 +02:00
Dave Halter
9ff5050d01
Use TreeContext in a good way
2018-08-03 00:25:25 +02:00
Dave Halter
61de28f741
Get a first typeshed example fully working as intended
2018-08-02 00:15:54 +02:00
Dave Halter
9bba91628a
Annotations can contain forward references even if they are not a string anymore
...
Since Python 3.7 this behavior can be imported with from future import __annotations
2018-07-28 16:35:24 +02:00
Dave Halter
e6f28b06b5
A bit better typeshed support
2018-07-28 14:39:55 +02:00
Dave Halter
4e75a35468
Fix stub searching for nested modules
2018-07-27 10:14:37 +02:00
Dave Halter
e827559340
Get some first stubs working
2018-07-25 23:48:53 +02:00
Dave Halter
e2cd228aad
Dict comprehension items call should now work, fixes #1129
2018-06-07 21:00:23 +02:00
Maxim Novikov
fc14aad8f2
Fix namespace autocompletion error
2018-05-03 09:12:17 +02:00
Dave Halter
8d48e7453a
When searching submodules, use all of __path__, fixes #1105
2018-05-01 23:17:42 +02:00
Dave Halter
88243d2408
Don't catch IndexError where we don't have to
2018-04-20 01:46:32 +02:00
Dave Halter
567c8b8097
Fix some fstring issues for now
2018-04-05 01:11:04 +02:00
Dave Halter
e6a3a8882c
Fix another error that surfaced in pandas
2018-03-20 01:04:00 +01:00
Dave Halter
6042706922
Fix the first issue in #1010
...
Somehow it was still possible with lists to recurse.
2018-03-18 17:09:44 +01:00
Dave Halter
90a226f898
All modules now have a code_lines attribute, see #1062
2018-03-16 10:20:26 +01:00
Dave Halter
e6469f46c7
Cleanup some instance stuff
2018-03-14 21:04:55 +01:00
Dave Halter
51e0d5d12f
Fix issues with default parameters in functions and classes
...
Default parameters were resolved at the wrong starting position. Fixes #1044
2018-03-08 09:59:09 +01:00
Dave Halter
14ac6b11b9
Correct mistakes of lambda names
2018-03-08 09:52:35 +01:00
Dave Halter
23e7c5bd2a
eval_element -> eval_node
2018-03-07 20:11:19 +01:00
Dave Halter
72be3e5247
Get rid of a regex warning, where escaping was not properly used in a normal string
2018-03-05 10:56:27 +01:00
Dave Halter
9e9c62a5ab
Get rid of the imp library import in Python3 to avoid warnings, fixes #1001
2018-03-05 10:55:21 +01:00
Dave Halter
c9a64bd1d3
Globals should be looked up with the same priority as other defined nodes.
2018-03-04 18:29:00 +01:00
Dave Halter
cbcc95c671
Fix the last async issue
2018-02-28 23:47:59 +01:00
Dave Halter
3820111d1e
Fix some more await things
2018-02-28 23:30:20 +01:00
Dave Halter
a41a4562d2
AbstractIterableMixin -> IterableMixin
2018-02-28 22:51:27 +01:00
Dave Halter
0d0213ee4c
Support generator returns when used with yield from.
2018-02-28 22:35:58 +01:00
Dave Halter
eeacdc33a1
Try to make the whole Builtin overwriting more abstract
2018-02-26 23:09:18 +01:00
Dave Halter
c1d06f4638
Getting more edget cases work in 3.6 for async
2018-02-21 01:11:59 +01:00
Dave Halter
bc0210af70
Use the await method properly and just use it instead of some crazy things
2018-02-21 00:27:15 +01:00
Dave Halter
bf01b9d47c
Refactor the way builtins can be overwritten by jedi's own contexts
2018-02-21 00:09:41 +01:00
Dave Halter
5c8300e62a
Move all the asynchronous contexts to a separate module
2018-02-19 09:43:50 +01:00
Dave Halter
f1c2aef963
Fix the merge issues. Now async stuff should at least partially work
2018-02-19 01:35:37 +01:00
Dave Halter
8f4b68ae39
Merge the async branch
2018-02-18 13:45:08 +01:00
Dave Halter
9177c120f4
Merge the implicit namespace improvement (pkgutils.itermodules modification)
...
There are still a few issues that need to be addressed.
2018-02-15 20:08:58 +01:00
Dave Halter
2a56323c16
Try to avoid CachedMetaClass for modules
2018-02-13 20:47:43 +01:00
Dave Halter
36699b77b2
DOn't check the parser cache, that's parso's responsibility
2018-02-13 19:19:00 +01:00
Dave Halter
26774c79fb
Add a module cache that has a bit more capabilites
2018-02-10 21:21:25 +01:00
Dave Halter
1ca4d21359
Use unicode literals, to avoid potential issues
2018-02-04 00:55:45 +01:00
Dave Halter
fe0e41e9d6
Fix some more dict.get/dict.values stuff
2018-02-02 18:24:18 +01:00
Dave Halter
8028138e8c
Implememnt dict.values for FakeDict to avoid a recursion error. Fixes #1014 .
2018-02-02 09:34:40 +01:00
Dave Halter
24b4e725b5
Make some things clearer about lazy contexts
2018-01-31 23:52:56 +01:00
Dave Halter
24561759f6
Fix a bug related to a wrong parametrization at one point
2018-01-30 01:17:09 +01:00
Dave Halter
68f15c90ac
Undo most of the namespace changes and use module again
...
Is a module like every other module, because if you import an empty
folder foobar it will be available as an object:
<module 'foobar' (namespace)>.
See #1033 .
2018-01-25 20:51:55 +01:00
Dave Halter
04fba28d35
Differentiate between namespace and module as a type
...
Also fixed a bug related to implicit namespace contexts, fixes #1033 .
2018-01-25 20:35:54 +01:00
Dave Halter
d986c44b94
Merge with master
...
The deprecation of Python2.6 and the insertion of environments made it quite difficult to merge.
2018-01-20 19:32:59 +01:00
Dave Halter
fe813292cf
Try to migrate to the new project API
2018-01-16 23:56:35 +01:00