Peter Law
770cdade00
Claim support for Python 3.12
2023-09-16 21:41:06 +01:00
Peter Law
29890c1f29
Ignore linux-only os.CLONE_* constants in Python 3.12 in import test
2023-09-16 21:41:06 +01:00
Peter Law
159566e1a0
Add Python 3.12 as a tested platform
2023-09-16 21:41:06 +01:00
Peter Law
a80618a2df
Unpin Django in tests
...
It's not completely clear why this was pinned originally, though
at the time Jedi supported Python 2.7 as well as 3.5-3.8, so that
may have had something to do with it.
Removing this pin now seems to work in CI and unblocks some issues
we're seeing around Python 3.12 (specifically that Django<3.1
implicitly relies on distutils, which is no longer available by
default, and possibly other issues).
2023-09-16 21:40:34 +01:00
Peter Law
4bc1b6ef99
Bump use of actions/checkout to avoid Node JS deprecations
2023-09-16 18:12:28 +01:00
Peter Law
d655d65d3a
Fix typo in comment
2023-09-16 18:03:56 +01:00
Dave Halter
51f4a99a1e
Bump version to 0.19.0
v0.19.0
2023-07-29 00:57:34 +02:00
Dave Halter
93c14d2e6e
Add release notes for 0.19.0
2023-07-29 00:46:38 +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
67d6262f45
Skip the namespace package test correctly
2023-07-27 10:07:16 +02:00
Dave Halter
5f19237a3e
Fix renaming of namespace packages, fixes #1779
2023-07-27 03:09:25 +02:00
Dave Halter
f2444b4be5
Merge pull request #1943 from diegorodriguezv/patch-1
...
Fix language servers reference
2023-06-22 08:44:15 +00:00
diegorodriguezv
7028bbb5d5
Fix language servers reference
2023-06-21 19:06:53 -05:00
Dave Halter
3699ba0aa7
Merge pull request #1942 from lkh42t/inference-annotated
...
Support typing.Annotated inference
2023-06-19 00:28:27 +00: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
Dave Halter
d421b920fa
Merge pull request #1937 from PeterJCLaw/update-importlib-usage
...
Modernise importlib usage
2023-05-27 22:54:45 +00: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
d67facc922
Merge branch 'update-github-actions'
2023-05-27 22:03:03 +01:00
Dave Halter
7023b645b1
Merge pull request #1935 from PeterJCLaw/fix-attrs-as-dataclass
...
Teach Jedi that `attrs`' `frozen` decorator also acts like a dataclass
2023-05-27 21:01:21 +00:00
Peter Law
b5120cc90b
Update GitHub Actions for Node 16 support
2023-05-27 00:18:38 +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
3dbcd2c6de
Whitespace
2023-05-27 00:10:00 +01:00
Peter Law
ca36fcfa4b
Fix typo in comment
2023-05-26 21:38:42 +01:00
Dave Halter
825c6b93bf
Merge pull request #1930 from tachikoma-li/doc-fix
...
docs: Fix typo in acknowledgements
2023-04-21 21:55:14 +00:00
Li Li
c22585c6f2
small doc fix
2023-04-19 15:12:39 +10:00
Dave Halter
431d1e104d
Merge pull request #1926 from dijonkitchen/patch-1
...
Update usage.rst to match Readme language servers
2023-04-12 15:50:21 +00:00
Dave Halter
adcd6ade8b
Merge pull request #1927 from dijonkitchen/patch-2
...
docs: fix spelling
2023-04-12 15:49:40 +00:00
JC (Jonathan Chen)
32a1dd33a6
docs: fix spelling
2023-04-12 11:01:10 -04:00
JC (Jonathan Chen)
9ea01bcc69
Update usage.rst to match Readme language servers
2023-04-12 10:58:57 -04:00
Dave Halter
77cfefc1cc
Add a security policy
2023-03-22 00:47:58 +01:00
Dave Halter
ff7d6c6e4c
Merge pull request #1922 from zerocewl/add_pylsp_link
...
Added link to the python-lsp-server
2023-03-21 23:24:04 +00:00
Dave Halter
6ee33bd385
Merge pull request #1923 from dimbleby/help-after-newline
...
fix help when in column zero
2023-03-13 20:17:13 +00:00
David Hotham
0fbc2aafa3
fix help when in column zero
2023-03-12 14:21:09 +00:00