Tim Gates
c28b337278
docs: Fix a few typos
...
There are small typos in:
- jedi/api/exceptions.py
- jedi/inference/base_value.py
- jedi/inference/compiled/mixed.py
- jedi/inference/value/dynamic_arrays.py
Fixes:
- Should read `usually` rather than `ususally`.
- Should read `modifications` rather than `modfications`.
- Should read `interpreters` rather than `interpreteters`.
- Should read `inferred` rather than `inferrined`.
- Should read `completable` rather than `completeable`.
Signed-off-by: Tim Gates <tim.gates@iress.com >
2022-07-15 17:29:02 +10:00
Dave Halter
ec9b453379
Handle defined_names for values that have no context, fixes #1744 , fixes #1745
2021-11-17 01:07:28 +01:00
Dave Halter
9d1587a41d
Don't need to inherit from object anymore
2020-07-26 00:11:57 +02:00
Peter Law
6ef18bea50
Make this noqa more specific
2020-07-21 21:34:37 +01:00
Dave Halter
9957565b37
Try to use yield from instead of yield, if possible
2020-07-19 13:34:58 +02:00
Dave Halter
1ece7698c2
Merge branch 'master' into python3
2020-07-17 16:07:54 +02:00
Dave Halter
d1851c369c
Introduce py__next__ to have more clear way to use __next__
2020-07-17 15:57:32 +02:00
Dave Halter
a0de93a638
Remove super arguments
2020-07-02 10:59:59 +02:00
Dave Halter
5ab351dc8f
Remove unicode literals from code base
2020-07-02 10:43:14 +02:00
Dave Halter
8ee0c8593e
Remove unicode usages
2020-07-02 03:26:22 +02:00
Dave Halter
b5e0c1e9c6
Remove compatibility for zip_longest
2020-07-02 01:08:57 +02:00
Dave Halter
a3410f124a
Make sure that Callables are properly represented
...
See also comment of https://github.com/davidhalter/jedi/pull/1614#issuecomment-647054740
2020-06-21 01:31:58 +02:00
Dave Halter
364d33119c
Merge branch 'django'
2020-06-14 22:24:31 +02:00
Dave Halter
1d1c0ec3af
Better debugging output for is_sub_class_of
2020-06-14 17:55:53 +02:00
Dave Halter
df7dd026d2
Make it possible to use inheritance on generics without always specifying type vars, see also discussion in #1593
2020-06-10 09:54:32 +02:00
Dave Halter
a2108de2c0
Use py__get__ for Django Model.objects
...
This includes the fix in https://github.com/typeddjango/django-stubs/pull/394
2020-06-09 23:26:43 +02:00
Dave Halter
574b790296
Make it possible to use inheritance on generics without always specifying type vars, see also discussion in #1593
2020-06-06 01:23:14 +02:00
Dave Halter
be594f1498
Remove an unused cache method
2020-05-15 23:53:44 +02:00
Dave Halter
99eba4e0eb
Undefined api types should not return a random value
2020-05-15 23:53:44 +02:00
Dave Halter
2a227dcc7a
Remove is_class_value from infer_type_vars
2020-05-08 17:49:02 +02:00
Dave Halter
12090ce74b
Fix tests
2020-05-08 15:18:23 +02:00
Dave Halter
138c22afe9
Remove common.value
2020-05-08 13:18:01 +02:00
Dave Halter
d19535340c
Move infer_type_vars to base_value
2020-05-08 13:13:26 +02:00
Dave Halter
02c3d651bd
Some more code quality fixes
2020-04-11 02:23:23 +02:00
Dave Halter
28f256d2a6
Merge branch 'improve-type-annotation-inference-refactors' of https://github.com/PeterJCLaw/jedi
2020-04-01 00:54:25 +02:00
Peter Law
f68d65ed59
Push much looping and merging of infering type vars into ValueSet
2020-03-22 15:29:11 +00:00
Dave Halter
7ef07b576f
Merge branch 'master' into typeddict
2020-02-07 04:03:27 +01:00
Dave Halter
4c7179bc87
Generate type hints, fixes #987
2020-02-02 16:55:10 +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
11a12d6ca8
Refactor execute_operation a bit
2020-01-12 13:01:08 +01:00
Dave Halter
4837822e32
Revert "Use the root implementation for get_root_context"
...
Was not able to pass the tests with it.
This reverts commit ba6cd1e2d4 .
2020-01-01 12:18:44 +01:00
Dave Halter
ba6cd1e2d4
Use the root implementation for get_root_context
2020-01-01 03:24:09 +01:00
Dave Halter
dd89325441
Make sure py__name__ and name are defined on all values
2019-12-27 00:31:58 +01:00
Dave Halter
700bd12122
Improve call signature detection by a lot
...
Fixes #1399
2019-12-04 23:55:26 +01:00
Dave Halter
4ba3dc69b3
Make sure we use the right context in case of goto with decorators, fixes #1427
2019-12-04 00:25:43 +01:00
Dave Halter
c38e4fce70
Make sure py__get__ is defined on all values
...
Also define matches_signature on all signatures, there's definitely cases where that might be called
2019-11-29 15:04:04 +01:00
Dave Halter
aea2ddcbd8
ContextualizedName -> TreeNameDefinition
2019-09-05 00:15:38 +02:00
Dave Halter
8311328a8e
Get py__simple_getitem__ modifications working for list/dict instances
2019-08-26 21:48:41 +02:00
Dave Halter
24b392b915
Random objects should not be affected by list/dict modifications
2019-08-26 19:28:30 +02:00
Dave Halter
e0f26dd7a1
get_function_execution -> as_context
2019-08-24 11:16:20 +02:00
Dave Halter
dd6befdc52
Cosmetics
2019-08-24 03:22:26 +02:00
Dave Halter
c1d8454f0c
Finally get rid of NameFinder
2019-08-24 03:21:00 +02:00
Dave Halter
ba67d384c1
Remove predefined_names from value, it's not needed anymore
2019-08-24 02:41:10 +02:00
Dave Halter
e148d5120f
Move some finder stuff around
2019-08-24 02:28:58 +02:00
Dave Halter
3828532065
Move a debugging statement out of finder
2019-08-24 02:13:52 +02:00
Dave Halter
250ac77f4a
Remove a check that is not needed
2019-08-24 01:11:31 +02:00
Dave Halter
ddb2ccb657
Move error handling for py__getattribute__
2019-08-24 00:59:48 +02:00
Dave Halter
b13a9f7d5b
Trying to move towards unifying goto and py__getattribute__
2019-08-24 00:18:48 +02:00
Dave Halter
fcec30dff6
Use py__getattribute__alternatives instead of overwriting py__getattribute__
2019-08-23 23:04:17 +02:00
Dave Halter
3fcecb3d6d
Move the filter search to a different place
2019-08-23 16:29:13 +02:00