1174 Commits
Author SHA1 Message Date
Dave Halter 91206f4c65 Allow typing.overload and typing_extensions.overload, fixes #1840, fixes #2117 2026-10-12 23:03:31 +02: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 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
2026-05-02 01:24:54 +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 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 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 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 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 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 1eddf24a50 Remove Python 3.9 and 3.10 2026-04-27 00:34:17 +02:00
Hoblovski 1b33f0d77c fix: move test to arrays.py 2025-11-13 21:12:15 +08:00
Hoblovski 3d2ce2e01f tests: add bad case 2025-11-13 20:33:00 +08:00
WutingjiaXandwutingjia 2859e4f409 Support inferring not expr to bool (#2016)
* support inferring some not expr

* format

---------

Co-authored-by: wutingjia <wutingjia@bytedance.com>
2024-07-12 12:58:39 +00:00
wutingjia 4d09ac07e4 When inferring comparison operators, return a definite type instead of NO_VALUES for the in/not in operator 2024-07-10 11:20:11 +08:00
pyscripter a4574a50d0 Fix resolving of names that are not annotations (#1989), fixes #1988
* Fix #1988

* Fix failing code quality test.

* Fix  flake W504 line break after binary operator.  Now as formatted by Black.

* Added test to test/completion/pep0484_basic.py
Addressed feedback from Dave
2024-04-25 09:11:24 +00:00
Ehsan Iran-Nejad 54a6dadde3 properties with setters are now reported as 'property' for completion (#1983)
* properties with setters are now reported as 'property' for completion

* code cleanups

* fixed test

* fixed tests

* Revert "fixed test"

This reverts commit a80c955a48.

* code quality cleanup

* so picky

* Revert "Revert "fixed test""

This reverts commit 58dfc5292e.

* updated test per maintainer comments #1983

* removed extra char
2024-02-19 12:07:47 +00:00
Martin Vielsmaier 7d77f61040 Add support for pytest fixtures from local pytest plugins. 2024-01-23 20:54:21 +01: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 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
Dave Halter 0a670d10dd Merge branch 'master' of github.com:davidhalter/jedi 2022-11-21 22:59:48 +01:00
Dave Halter 89f9a3a7f1 Fix a Django test 2022-11-13 23:38:22 +01:00
Dave Halter 8027e1b162 Remove the ClassVar filter, see also #1847 2022-11-12 22:58:00 +01:00
Dave Halter 8485df416d Finally fix a Django test 2022-11-11 18:00:17 +01:00
Dave Halter f454989859 Now that ClassVars work differently fix a Django test 2022-11-11 17:52:35 +01:00
Dave Halter e779f23ac7 Another small change towards tests 2022-11-11 17:50:05 +01:00
Dave Halter 3c40363a39 Remove another test that depends on specific pytest versions and is well covered by other tests 2022-11-11 17:47:02 +01:00
Dave Halter 804e4b0ca2 Merge pull request #1861 from qmmp123/master
Fix: #1847
2022-11-11 16:00:39 +00:00
Marcio Mazza ec425ed2af Add tests to find pytest fixtures from external plugins 2022-09-03 17:16:32 -03:00
nedilmark e194ab5951 Fix: #1847 2022-06-18 06:13:07 +08:00
Dave Halter c0ac341750 Replace some type comments with annotations
This was necessary, back when we supported Python 3.5
2022-05-26 23:09:28 +02:00
GalaxySnail 8cb1b76ea4 Fix typo 2022-04-14 04:02:20 +08:00
GalaxySnail e7755651a4 Add some tests for PEP 604 2022-04-14 03:32:43 +08:00