Dave Halter
51f4a99a1e
Bump version to 0.19.0
2023-07-29 00:57:34 +02:00
Dave Halter
57aefed6ea
Allow unsafe custom __getitem__ executions when allow unsafe executions is on
2023-07-29 00:33:09 +02:00
Dave Halter
8a4b079d0f
allow_descriptor_getattr -> allow_unsafe_interpreter_executions
2023-07-29 00:06:55 +02:00
Dave Halter
62cbcb0844
Make nested dict completions possible.
...
See also https://github.com/ipython/ipython/issues/13866
2023-07-28 23:50:38 +02:00
Dave Halter
d8420d0f72
Add a note to the changelog
2023-07-28 22:59:03 +02:00
Dave Halter
886279fb6d
Try to use the return annotations of properties, if available, fixes #1933
2023-07-28 22:35:15 +02:00
Dave Halter
ff3a7f367f
Avoid evaluating properties just for the api type, improves #1933
2023-07-28 22:11:15 +02:00
Dave Halter
1f70e3301e
Revert "Avoid one layer of caching that is probably useless"
...
This reverts commit a34c348a55 .
2023-07-28 16:10:30 +02:00
Dave Halter
a34c348a55
Avoid one layer of caching that is probably useless
2023-07-28 16:05:56 +02:00
Dave Halter
972123c9c9
Introduce the property return annotation
2023-07-28 15:54:54 +02:00
Dave Halter
6455a14841
Avoid multiple getattrs instead of a single one, see also #1933
2023-07-28 15:10:37 +02:00
Dave Halter
8d9e3ab3a7
Simplify
2023-07-28 13:10:26 +02:00
Dave Halter
048173e467
Remove a piece of unimportant code, see discussion in #1933
2023-07-28 10:15:28 +02:00
Dave Halter
1947e7dd56
Avoid dynamic params search for Interpreter, fixes #1899
2023-07-27 13:49:27 +02:00
Dave Halter
01d8da8f73
Reset the recursion limitations at the start of the main Script calls, fixes #1796
2023-07-27 13:14:24 +02:00
Dave Halter
6ea5ad7b19
Fix issue around completions with multiple with with_items, fixes 1931
2023-07-27 11:54:39 +02:00
Dave Halter
cd4ca74d7a
Satisfy flake8
2023-07-27 11:36:16 +02:00
Dave Halter
5f19237a3e
Fix renaming of namespace packages, fixes #1779
2023-07-27 03:09:25 +02:00
Luc Khai Hai
72d34f3d7d
Support typing.Annotated inference
2023-06-17 20:46:03 +09:00
Peter Law
a28bd24bef
Merge branch 'importlib-metadata-entry-points'
2023-05-28 12:08:09 +01:00
Peter Law
54cb64292c
Support importlib.metadata entry points for newer python
...
pkg_resources is deprecated and liable to be dropped at some point.
2023-05-28 11:48:19 +01:00
Peter Law
c137eb6918
Modernise importlib usage
...
`find_module` is deprecated in all supported version of Python and
is slated for removal in the upcoming 3.12. Happily it seems we
can move to the related `find_spec` and just hoist the loader from
the spec which that returns. (This is mostly what current `find_module`
implementations do anyway).
2023-05-27 22:03:51 +01:00
Peter Law
483e78993d
attrs' frozen decorator also acts like a dataclass
...
In 23.1.0 (specifically in 46053d703d )
the definition of the `frozen` decorator was tweaked slightly, such
that its type stub is separate from that for `define`. This means
that Jedi needs to be told about it as a separate member.
I've manually checked that this still works with the prior version
of `attrs`.
Fixes https://github.com/davidhalter/jedi/issues/1929
2023-05-27 00:13:55 +01:00
Peter Law
ca36fcfa4b
Fix typo in comment
2023-05-26 21:38:42 +01:00
David Hotham
0fbc2aafa3
fix help when in column zero
2023-03-12 14:21:09 +00:00
Peter Law
67e0bec597
Support Python 3.11
...
This adds support for targetting Python 3.11 via picking up the
latest grammar from parso while also validating support for running
on 3.11 by adding it to the CI matrix.
2023-02-13 19:58:35 +00:00
Peter Law
bbd5bcf3ca
Merge branch 'update-mypy'
2023-02-13 19:57:20 +00:00
Peter Law
664b10a5c6
Update mypy to the latest
...
This includes updating the ignore comments for things which mypy
now knows about or now complains about, as well as pulling in some
typeshed packages for things outside the standard library.
2023-02-13 19:40:16 +00:00
Peter Law
36a4b7d48c
Update flake8 and fix issue found
2023-02-13 19:15:35 +00:00
Patterson, Kevin R
fac0b7f068
instance_allow_descriptor_getattr as public setting
2023-02-10 05:43:21 -06:00
Georgi Hristov
fd0e6aed96
Replaced tuple passed as sys_path actual argument with list
...
Fixes davidhalter#1909
2023-02-05 15:46:23 -08:00
Dave Halter
eaab706038
Prepare the release of 0.18.2
2022-11-21 23:23:46 +01:00
Dave Halter
41455480be
Better search for venvs
2022-11-21 23:06:26 +01:00
Dave Halter
6b73d5c1bf
Probably using the 3.10 grammar is better for stubs for now
2022-11-21 21:07:33 +01:00
Dave Halter
a3fed3b6a6
Remove a TODO that was already implemented
2022-11-14 08:39:11 +01:00
Dave Halter
3a30008cc4
Fix keyword argument completion, fixes #1856
2022-11-13 20:26:00 +01:00
Dave Halter
b0d5fc2bd0
Fix errors around docs of namespace packages, fixes #1890 , fixes #1822
2022-11-13 19:50:08 +01:00
Dave Halter
6e5db3f479
Fix a weird AttributeError, fixes #1765
2022-11-13 18:26:01 +01:00
Dave Halter
85780111e0
Use the latest grammar from parso for stubs, probably fixes #1864
2022-11-13 17:59:22 +01:00
Dave Halter
0ba48bbb9d
Fix an issue with creatin a diff, fixes #1757
2022-11-13 17:51:54 +01:00
Dave Halter
26f7878d97
Revert some of the logic around ClassVar completions, see #1847
2022-11-12 23:15:16 +01:00
Dave Halter
8027e1b162
Remove the ClassVar filter, see also #1847
2022-11-12 22:58:00 +01:00
Dave Halter
94e78340e1
Fix a formatting issue in CI
2022-11-11 17:54:57 +01:00
Dave Halter
804e4b0ca2
Merge pull request #1861 from qmmp123/master
...
Fix : #1847
2022-11-11 16:00:39 +00:00
Dave Halter
3475ccfbd3
Merge pull request #1870 from Presburger/master
...
fix autocomplete crash in ycmd
2022-11-11 15:50:10 +00:00
Dave Halter
9723a0eed0
Merge pull request #1879 from marciomazza/find-external-pytest-fixtures
...
Find external pytest fixtures
2022-11-11 15:46:40 +00:00
Andrew Ammerlaan
0a6ad1010c
inference/compiled/subprocess/functions.py: Skip python3.11's frozen imports
...
Bug: https://github.com/davidhalter/jedi/issues/1858
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org >
2022-10-19 16:53:17 +02:00
Alex Ford
40e1e3f560
Extend dataclass constructor hinting to attrs next-gen apis.
...
Trivially extends dataclass constructor hinting to attrs next-gen APIs.
This will stumble in cases where attrs extends beyond the standard
dataclasses API, such as complex use of defaults, converters, et al.
However, it likely covers the vast majority of cases which fall solidly
in the intersection of the two APIs.
Extension beyond these cases could use [PEP0681 dataclass_transforms],
however this is definitely a problem for another day.
[PEP0681 dataclass_transforms]: https://peps.python.org/pep-0681/
https://github.com/davidhalter/jedi/issues/1835
2022-10-11 17:40:31 -07:00
Marcio Mazza
e25750ecef
Make code compatible with python < 3.8
2022-09-05 17:05:11 -03:00
Marcio Mazza
1a306fddbf
Fix check pytest fixture from import on the right context
2022-09-04 13:12:13 -03:00