Commit Graph
8591 Commits
Author SHA1 Message Date
Dave Halter 79d9764bce Merge pull request #2119 from abdull-ah-med/codex/async-pytest-fixtures
Recognize asynchronous pytest fixtures
2026-10-12 11:05:00 +00:00
Abdullah AhmedandClaude Sonnet 5.5 3f7e8adddc Honor return annotations of async pytest fixtures
Async fixtures skipped the annotation branch, so a `-> T` annotation was
ignored and only the body was inferred. Infer the annotation directly:
the awaited value for coroutines, and the yielded value for annotated
async generators. Add cases where the body is not inferable.

Also drop the tooling note from the AUTHORS entry.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 04:52:32 -04:00
Abdullah Ahmed d8efff8e30 Recognize asynchronous pytest fixtures 2026-10-12 04:05:48 -04:00
Dave Halter 2e3e905707 Add to the changelog 2026-10-01 08:42:53 +02:00
Charan Rathore 558135e8f3 Stop changing the global recursion limit on import (#2113) 2026-10-01 06:38:00 +00:00
Dhanu-dynamic f37a9f9feb Ignore environment_path in loaded project files (#2110)
A .jedi/project.json can be part of a checked out repository, so honouring its environment_path let an untrusted file point Jedi at a binary to execute. Rather than trying to gate that binary (the ownership heuristic in _is_unix_safe_simple is meaningless on Windows, where st_uid is always 0), drop environment_path from loaded project files entirely, the same way load_unsafe_extensions is already ignored. It stays available when a Project is constructed directly by the user.
2026-09-29 13:58:51 +00:00
Dave Halter ed47f89162 Fix docstrings for param completions, fixes #2063, fixes #2109 2026-09-27 11:41:13 +02:00
Dhanu-dynamic 112d255414 Do not trust code execution settings from .jedi/project.json (#2108)
get_default_project() loads the first .jedi/project.json above the analysed file, which can be part of a checked out repository. Its environment_path was executed with safe=False and its load_unsafe_extensions was honoured. Loaded projects now check the binary like find_virtualenvs and ignore load_unsafe_extensions.
2026-09-26 12:52:55 +00:00
曾楚笑 5c37b736a3 Fix get_context indentation for async functions (#2107) 2026-09-22 21:50:04 +00:00
Elias 19236b472b Avoid goto crashes on unfinished keyword calls (#2106) 2026-09-20 07:13:11 +00:00
ef5d361121 Fix typos in comments and docstrings (#2101)
ci / tests (3.10, ubuntu-24.04, 3.10) (push) Canceled after 0s
ci / tests (3.10, ubuntu-24.04, 3.11) (push) Canceled after 0s
ci / tests (3.10, ubuntu-24.04, 3.12) (push) Canceled after 0s
ci / tests (3.10, ubuntu-24.04, 3.13) (push) Canceled after 0s
ci / tests (3.10, ubuntu-24.04, 3.14) (push) Canceled after 0s
ci / tests (3.10, windows-2022, 3.10) (push) Canceled after 0s
ci / tests (3.10, windows-2022, 3.11) (push) Canceled after 0s
ci / tests (3.10, windows-2022, 3.12) (push) Canceled after 0s
ci / tests (3.10, windows-2022, 3.13) (push) Canceled after 0s
ci / tests (3.10, windows-2022, 3.14) (push) Canceled after 0s
ci / tests (3.11, ubuntu-24.04, 3.10) (push) Canceled after 0s
ci / tests (3.11, ubuntu-24.04, 3.11) (push) Canceled after 0s
ci / tests (3.11, ubuntu-24.04, 3.12) (push) Canceled after 0s
ci / tests (3.11, ubuntu-24.04, 3.13) (push) Canceled after 0s
ci / tests (3.11, ubuntu-24.04, 3.14) (push) Canceled after 0s
ci / tests (3.11, windows-2022, 3.10) (push) Canceled after 0s
ci / tests (3.11, windows-2022, 3.11) (push) Canceled after 0s
ci / tests (3.11, windows-2022, 3.12) (push) Canceled after 0s
ci / tests (3.11, windows-2022, 3.13) (push) Canceled after 0s
ci / tests (3.11, windows-2022, 3.14) (push) Canceled after 0s
ci / tests (3.12, ubuntu-24.04, 3.10) (push) Canceled after 0s
ci / tests (3.12, ubuntu-24.04, 3.11) (push) Canceled after 0s
ci / tests (3.12, ubuntu-24.04, 3.12) (push) Canceled after 0s
ci / tests (3.12, ubuntu-24.04, 3.13) (push) Canceled after 0s
ci / tests (3.12, ubuntu-24.04, 3.14) (push) Canceled after 0s
ci / tests (3.12, windows-2022, 3.10) (push) Canceled after 0s
ci / tests (3.12, windows-2022, 3.11) (push) Canceled after 0s
ci / tests (3.12, windows-2022, 3.12) (push) Canceled after 0s
ci / tests (3.12, windows-2022, 3.13) (push) Canceled after 0s
ci / tests (3.12, windows-2022, 3.14) (push) Canceled after 0s
ci / tests (3.13, ubuntu-24.04, 3.10) (push) Canceled after 0s
ci / tests (3.13, ubuntu-24.04, 3.11) (push) Canceled after 0s
ci / tests (3.13, ubuntu-24.04, 3.12) (push) Canceled after 0s
ci / tests (3.13, ubuntu-24.04, 3.13) (push) Canceled after 0s
ci / tests (3.13, ubuntu-24.04, 3.14) (push) Canceled after 0s
ci / tests (3.13, windows-2022, 3.10) (push) Canceled after 0s
ci / tests (3.13, windows-2022, 3.11) (push) Canceled after 0s
ci / tests (3.13, windows-2022, 3.12) (push) Canceled after 0s
ci / tests (3.13, windows-2022, 3.13) (push) Canceled after 0s
ci / tests (3.13, windows-2022, 3.14) (push) Canceled after 0s
ci / tests (3.14, ubuntu-24.04, 3.10) (push) Canceled after 0s
ci / tests (3.14, ubuntu-24.04, 3.11) (push) Canceled after 0s
ci / tests (3.14, ubuntu-24.04, 3.12) (push) Canceled after 0s
ci / tests (3.14, ubuntu-24.04, 3.13) (push) Canceled after 0s
ci / tests (3.14, ubuntu-24.04, 3.14) (push) Canceled after 0s
ci / tests (3.14, windows-2022, 3.10) (push) Canceled after 0s
ci / tests (3.14, windows-2022, 3.11) (push) Canceled after 0s
ci / tests (3.14, windows-2022, 3.12) (push) Canceled after 0s
ci / tests (3.14, windows-2022, 3.13) (push) Canceled after 0s
ci / tests (3.14, windows-2022, 3.14) (push) Canceled after 0s
ci / tests (interpreter, ubuntu-24.04, 3.10) (push) Canceled after 0s
ci / tests (interpreter, ubuntu-24.04, 3.11) (push) Canceled after 0s
ci / tests (interpreter, ubuntu-24.04, 3.12) (push) Canceled after 0s
ci / tests (interpreter, ubuntu-24.04, 3.13) (push) Canceled after 0s
ci / tests (interpreter, ubuntu-24.04, 3.14) (push) Canceled after 0s
ci / tests (interpreter, windows-2022, 3.10) (push) Canceled after 0s
ci / tests (interpreter, windows-2022, 3.11) (push) Canceled after 0s
ci / tests (interpreter, windows-2022, 3.12) (push) Canceled after 0s
ci / tests (interpreter, windows-2022, 3.13) (push) Canceled after 0s
ci / tests (interpreter, windows-2022, 3.14) (push) Canceled after 0s
ci / code-quality (push) Canceled after 0s
ci / coverage (push) Canceled after 0s
Found by codespell:
- curent -> current (classes.py)
- suppport -> support, propeties -> properties (inference/__init__.py)
- existance -> existence (inference/analysis.py)
- Propably -> Probably (inference/value/instance.py)

Co-authored-by: maxtaran2010 <ocotifuzo727@gmail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-09 23:42:11 +00:00
Dave Halter 3102215478 Move the type parameter syntax tests so that it works for all versions
ci / tests (3.10, ubuntu-24.04, 3.10) (push) Has been cancelled
ci / tests (3.10, ubuntu-24.04, 3.11) (push) Has been cancelled
ci / tests (3.10, ubuntu-24.04, 3.12) (push) Has been cancelled
ci / tests (3.10, ubuntu-24.04, 3.13) (push) Has been cancelled
ci / tests (3.10, ubuntu-24.04, 3.14) (push) Has been cancelled
ci / tests (3.10, windows-2022, 3.10) (push) Has been cancelled
ci / tests (3.10, windows-2022, 3.11) (push) Has been cancelled
ci / tests (3.10, windows-2022, 3.12) (push) Has been cancelled
ci / tests (3.10, windows-2022, 3.13) (push) Has been cancelled
ci / tests (3.10, windows-2022, 3.14) (push) Has been cancelled
ci / tests (3.11, ubuntu-24.04, 3.10) (push) Has been cancelled
ci / tests (3.11, ubuntu-24.04, 3.11) (push) Has been cancelled
ci / tests (3.11, ubuntu-24.04, 3.12) (push) Has been cancelled
ci / tests (3.11, ubuntu-24.04, 3.13) (push) Has been cancelled
ci / tests (3.11, ubuntu-24.04, 3.14) (push) Has been cancelled
ci / tests (3.11, windows-2022, 3.10) (push) Has been cancelled
ci / tests (3.11, windows-2022, 3.11) (push) Has been cancelled
ci / tests (3.11, windows-2022, 3.12) (push) Has been cancelled
ci / tests (3.11, windows-2022, 3.13) (push) Has been cancelled
ci / tests (3.11, windows-2022, 3.14) (push) Has been cancelled
ci / tests (3.12, ubuntu-24.04, 3.10) (push) Has been cancelled
ci / tests (3.12, ubuntu-24.04, 3.11) (push) Has been cancelled
ci / tests (3.12, ubuntu-24.04, 3.12) (push) Has been cancelled
ci / tests (3.12, ubuntu-24.04, 3.13) (push) Has been cancelled
ci / tests (3.12, ubuntu-24.04, 3.14) (push) Has been cancelled
ci / tests (3.12, windows-2022, 3.10) (push) Has been cancelled
ci / tests (3.12, windows-2022, 3.11) (push) Has been cancelled
ci / tests (3.12, windows-2022, 3.12) (push) Has been cancelled
ci / tests (3.12, windows-2022, 3.13) (push) Has been cancelled
ci / tests (3.12, windows-2022, 3.14) (push) Has been cancelled
ci / tests (3.13, ubuntu-24.04, 3.10) (push) Has been cancelled
ci / tests (3.13, ubuntu-24.04, 3.11) (push) Has been cancelled
ci / tests (3.13, ubuntu-24.04, 3.12) (push) Has been cancelled
ci / tests (3.13, ubuntu-24.04, 3.13) (push) Has been cancelled
ci / tests (3.13, ubuntu-24.04, 3.14) (push) Has been cancelled
ci / tests (3.13, windows-2022, 3.10) (push) Has been cancelled
ci / tests (3.13, windows-2022, 3.11) (push) Has been cancelled
ci / tests (3.13, windows-2022, 3.12) (push) Has been cancelled
ci / tests (3.13, windows-2022, 3.13) (push) Has been cancelled
ci / tests (3.13, windows-2022, 3.14) (push) Has been cancelled
ci / tests (3.14, ubuntu-24.04, 3.10) (push) Has been cancelled
ci / tests (3.14, ubuntu-24.04, 3.11) (push) Has been cancelled
ci / tests (3.14, ubuntu-24.04, 3.12) (push) Has been cancelled
ci / tests (3.14, ubuntu-24.04, 3.13) (push) Has been cancelled
ci / tests (3.14, ubuntu-24.04, 3.14) (push) Has been cancelled
ci / tests (3.14, windows-2022, 3.10) (push) Has been cancelled
ci / tests (3.14, windows-2022, 3.11) (push) Has been cancelled
ci / tests (3.14, windows-2022, 3.12) (push) Has been cancelled
ci / tests (3.14, windows-2022, 3.13) (push) Has been cancelled
ci / tests (3.14, windows-2022, 3.14) (push) Has been cancelled
ci / tests (interpreter, ubuntu-24.04, 3.10) (push) Has been cancelled
ci / tests (interpreter, ubuntu-24.04, 3.11) (push) Has been cancelled
ci / tests (interpreter, ubuntu-24.04, 3.12) (push) Has been cancelled
ci / tests (interpreter, ubuntu-24.04, 3.13) (push) Has been cancelled
ci / tests (interpreter, ubuntu-24.04, 3.14) (push) Has been cancelled
ci / tests (interpreter, windows-2022, 3.10) (push) Has been cancelled
ci / tests (interpreter, windows-2022, 3.11) (push) Has been cancelled
ci / tests (interpreter, windows-2022, 3.12) (push) Has been cancelled
ci / tests (interpreter, windows-2022, 3.13) (push) Has been cancelled
ci / tests (interpreter, windows-2022, 3.14) (push) Has been cancelled
ci / code-quality (push) Has been cancelled
ci / coverage (push) Has been cancelled
v0.20.0
2026-05-02 01:24:54 +02:00
Dave Halter 1b37f2eb94 Prepare for the 0.20.0 release 2026-05-02 01:14:51 +02:00
Dave Halter 8e4df5cc0e Make sure the new generic syntax does not fail with latest parso 2026-05-02 01:08:27 +02:00
Dave Halter 4c9dbcca03 Merge pull request #2098 from davidhalter/updates
Typeshed upgrade
2026-05-01 22:40:26 +00:00
Dave Halter fedb1a5eb0 Fix 3.10 tests in one more case 2026-05-02 00:22:06 +02:00
Dave Halter 87e782f9c8 Fix flake8 2026-05-02 00:13:19 +02:00
Dave Halter cd52d982e1 Fixes to get the tests passing for 3.10 2026-05-02 00:11:16 +02:00
Dave Halter d0b11806d4 Finally make tests work for 3.14 2026-05-01 23:49:36 +02:00
Dave Halter 8520a9958b Implement support for TypeVar inference for __new__ 2026-05-01 22:52:05 +02:00
Dave Halter 55e5f0cb92 Implement new-style unions with TypeVars 2026-05-01 21:01:27 +02:00
Dave Halter 8ba5b67622 Change some more tests for typeshed 2026-05-01 17:07:36 +02:00
Dave Halter d87a4af50f Implement unions with forward references 2026-05-01 16:40:25 +02:00
Dave Halter 01dc123ea1 Allow unions when inferring annotations 2026-05-01 16:33:24 +02:00
Dave Halter 418598d8c1 Implement type[...] 2026-05-01 15:44:26 +02:00
Dave Halter 0702da22f2 Change some tests 2026-05-01 14:43:59 +02:00
Dave Halter b7652708ec Add more tests about newstyle unions 2026-05-01 14:37:46 +02:00
Dave Halter e7d29065bd Change a test about ellipsis slightly 2026-05-01 14:37:35 +02:00
Dave Halter 1820aa9476 Change some tests slightly 2026-05-01 14:30:00 +02:00
Dave Halter 696df90daf Change some tests slightly 2026-05-01 14:14:12 +02:00
Dave Halter f8fb2d1230 Basic support for TypeAlias, fixes #1969 2026-05-01 13:05:22 +02:00
Dave Halter 590ed56c6e Revert a small change to tests 2026-04-30 00:26:29 +02:00
Dave Halter a1d9da0a7f Make sure tuple behaves similar to Tuple, fixes #2040 2026-04-30 00:15:56 +02:00
Dave Halter 4f7dfd14b3 Small improvements to generator/async completions 2026-04-29 23:38:07 +02:00
Dave Halter be993d132e Attempt to improve tuple unpackings 2026-04-29 23:10:31 +02:00
Dave Halter 0d79865a0f Fix __enter__ Self resolving 2026-04-29 18:15:57 +02:00
Dave Halter 3375d48f8c Improve typing_extensions usages 2026-04-29 18:08:59 +02:00
Dave Halter aa72381ed1 Implement Self, fixes #2023, fixes #2068 2026-04-29 17:51:01 +02:00
Dave Halter c30732eb04 Add a tuple[...] test for the future, see #2040 2026-04-29 17:10:02 +02:00
Dave Halter fe0369436e Change a few tests to match new typeshed 2026-04-29 09:30:49 +02:00
Dave Halter 04e5f5b3b8 Change a few tests for new typeshed 2026-04-28 17:14:42 +02:00
Dave Halter 75f1d064d5 Ignore Final/ClassVar if they don't have a generic assignment 2026-04-28 17:05:43 +02:00
Dave Halter 6473ddc28c Implement Final[...] in a way so it doesn't completely fail 2026-04-28 15:49:26 +02:00
Dave Halter b27a7dde18 Fix file path completions 2026-04-28 15:25:25 +02:00
Dave Halter 3365d0763b Implement __new__ signatures, fixes #2073 2026-04-28 02:25:25 +02:00
Dave Halter ff581e8403 Start fixing some of the problems with new typeshed 2026-04-28 01:41:40 +02:00
Dave Halter 2455414d1d Upgrade Typeshed 2026-04-28 01:38:26 +02:00
Dave Halter 38122a7fd3 Fix issues around whitespace after dot completions, fixes #1954
ci / tests (3.10, ubuntu-24.04, 3.10) (push) Has been cancelled
ci / tests (3.10, ubuntu-24.04, 3.11) (push) Has been cancelled
ci / tests (3.10, ubuntu-24.04, 3.12) (push) Has been cancelled
ci / tests (3.10, ubuntu-24.04, 3.13) (push) Has been cancelled
ci / tests (3.10, ubuntu-24.04, 3.14) (push) Has been cancelled
ci / tests (3.10, windows-2022, 3.10) (push) Has been cancelled
ci / tests (3.10, windows-2022, 3.11) (push) Has been cancelled
ci / tests (3.10, windows-2022, 3.12) (push) Has been cancelled
ci / tests (3.10, windows-2022, 3.13) (push) Has been cancelled
ci / tests (3.10, windows-2022, 3.14) (push) Has been cancelled
ci / tests (3.11, ubuntu-24.04, 3.10) (push) Has been cancelled
ci / tests (3.11, ubuntu-24.04, 3.11) (push) Has been cancelled
ci / tests (3.11, ubuntu-24.04, 3.12) (push) Has been cancelled
ci / tests (3.11, ubuntu-24.04, 3.13) (push) Has been cancelled
ci / tests (3.11, ubuntu-24.04, 3.14) (push) Has been cancelled
ci / tests (3.11, windows-2022, 3.10) (push) Has been cancelled
ci / tests (3.11, windows-2022, 3.11) (push) Has been cancelled
ci / tests (3.11, windows-2022, 3.12) (push) Has been cancelled
ci / tests (3.11, windows-2022, 3.13) (push) Has been cancelled
ci / tests (3.11, windows-2022, 3.14) (push) Has been cancelled
ci / tests (3.12, ubuntu-24.04, 3.10) (push) Has been cancelled
ci / tests (3.12, ubuntu-24.04, 3.11) (push) Has been cancelled
ci / tests (3.12, ubuntu-24.04, 3.12) (push) Has been cancelled
ci / tests (3.12, ubuntu-24.04, 3.13) (push) Has been cancelled
ci / tests (3.12, ubuntu-24.04, 3.14) (push) Has been cancelled
ci / tests (3.12, windows-2022, 3.10) (push) Has been cancelled
ci / tests (3.12, windows-2022, 3.11) (push) Has been cancelled
ci / tests (3.12, windows-2022, 3.12) (push) Has been cancelled
ci / tests (3.12, windows-2022, 3.13) (push) Has been cancelled
ci / tests (3.12, windows-2022, 3.14) (push) Has been cancelled
ci / tests (3.13, ubuntu-24.04, 3.10) (push) Has been cancelled
ci / tests (3.13, ubuntu-24.04, 3.11) (push) Has been cancelled
ci / tests (3.13, ubuntu-24.04, 3.12) (push) Has been cancelled
ci / tests (3.13, ubuntu-24.04, 3.13) (push) Has been cancelled
ci / tests (3.13, ubuntu-24.04, 3.14) (push) Has been cancelled
ci / tests (3.13, windows-2022, 3.10) (push) Has been cancelled
ci / tests (3.13, windows-2022, 3.11) (push) Has been cancelled
ci / tests (3.13, windows-2022, 3.12) (push) Has been cancelled
ci / tests (3.13, windows-2022, 3.13) (push) Has been cancelled
ci / tests (3.13, windows-2022, 3.14) (push) Has been cancelled
ci / tests (3.14, ubuntu-24.04, 3.10) (push) Has been cancelled
ci / tests (3.14, ubuntu-24.04, 3.11) (push) Has been cancelled
ci / tests (3.14, ubuntu-24.04, 3.12) (push) Has been cancelled
ci / tests (3.14, ubuntu-24.04, 3.13) (push) Has been cancelled
ci / tests (3.14, ubuntu-24.04, 3.14) (push) Has been cancelled
ci / tests (3.14, windows-2022, 3.10) (push) Has been cancelled
ci / tests (3.14, windows-2022, 3.11) (push) Has been cancelled
ci / tests (3.14, windows-2022, 3.12) (push) Has been cancelled
ci / tests (3.14, windows-2022, 3.13) (push) Has been cancelled
ci / tests (3.14, windows-2022, 3.14) (push) Has been cancelled
ci / tests (interpreter, ubuntu-24.04, 3.10) (push) Has been cancelled
ci / tests (interpreter, ubuntu-24.04, 3.11) (push) Has been cancelled
ci / tests (interpreter, ubuntu-24.04, 3.12) (push) Has been cancelled
ci / tests (interpreter, ubuntu-24.04, 3.13) (push) Has been cancelled
ci / tests (interpreter, ubuntu-24.04, 3.14) (push) Has been cancelled
ci / tests (interpreter, windows-2022, 3.10) (push) Has been cancelled
ci / tests (interpreter, windows-2022, 3.11) (push) Has been cancelled
ci / tests (interpreter, windows-2022, 3.12) (push) Has been cancelled
ci / tests (interpreter, windows-2022, 3.13) (push) Has been cancelled
ci / tests (interpreter, windows-2022, 3.14) (push) Has been cancelled
ci / code-quality (push) Has been cancelled
ci / coverage (push) Has been cancelled
2026-04-27 18:15:45 +02:00
Dave Halter 40c685c52b Fix star import completions, fixes #2087 2026-04-27 16:10:56 +02:00
Dave Halter 83a232e945 Change the CHANGELOG slightly 2026-04-27 16:09:39 +02:00