Commit Graph
74 Commits
Author SHA1 Message Date
Dave Halter 091735802d Add to the Changelog 2026-10-12 17:01:24 +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
Charan Rathore 558135e8f3 Stop changing the global recursion limit on import (#2113) 2026-10-01 06:38:00 +00: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
Nguyễn Hồng Quân 91ffdead32 Sort completions by input resemblance. (#2018)
* Sort completions by input resemblance.

Fixes #2017

* Clean code
2024-07-15 08:15:20 +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
Martin Vielsmaier 7494c9495e Update contributors. 2024-01-23 20:54:21 +01:00
Marcio Mazza c243608ac6 Add your name to AUTHORS.txt 2022-09-05 17:31:14 -03:00
Joseph Birkner a340fe077e Fixed ZIP completion. 2021-04-29 09:52:08 +02:00
Leo RyuandLeo Ryu fd435a7bbb Check if string_names is None before returning string_names (#1708)
* Check if string is None before using string_names

* Add test asserting None string_names returns an empty list

* Remove whitespace to pass flake8

* Add name to authors.txt

Co-authored-by: Leo Ryu <leo@episci.com>
2020-12-12 12:13:31 +01:00
muffinmad ce8473ee63 Add author's name to AUTHORS.txt 2020-05-12 23:34:28 +03:00
Vlad Serebrennikov e1c0d2c501 Reduce noise in signatures of compiled params (#1564)
* Remove "typing." prefix from compiled signature param

* Don't print default "None" for Optional params

* Don't remove 'typing.' prefix if symbol doesn't come from typing module

* Revert "Don't print default "None" for Optional params"

This reverts commit 8db334d9bb.

* Make sure "typing." doesn't appear in the middle

* Make sure only "typing." prefix is removed and not it's entries in the middle

* Use inspect.formatannotation() to create an annotation string

* Update AUTHORS.txt

* Add test for compiled param annotation string

* Replace Optional in test with other typing facilities

in order for test to be forward-compatible with 3.9

* Add an empty string fallback for Python 2

* Move _annotation_to_str back to original position
2020-05-10 13:33:36 +02:00
Max Mäusezahl 1115cbd94d This fixes two issues with the caching on Windows:
* the cache directory should really be %LOCALAPPDATA%
 * ~ is not a meaningful directory on Windows. It should really be
   os.path.expanduser('~'). To be honest it is probably always safe to
   assume that os.getenv('LOCALAPPDATA') executes to something sensible
   on any Windows system that hasn't been tampered with.
2020-05-10 11:46:29 +02:00
Ryan Clary 803c3cb271 * Use an explicit environment for subprocess to ensure that existing environment variables are not inherited. This ensures more reliable results, see issue #1540.
* Attempt to send SYSTEMROOT variable to Windows subprocess
2020-04-16 00:52:44 +02:00
Dave Halter e11db6e8e4 Move acknowledgements in docs 2020-03-19 01:42:18 +01:00
Lior Goldberg 1874e9be81 Remove the word 'class' from annotation_string
Currently, 'foo(x: int)' results with annotation_string="<class 'int'>".
Change this to 'int'.
2020-02-20 09:35:01 +01:00
Tim Gates 542a2a339e Fix simple typo: wheter -> whether (#1460)
Closes #1459
2019-12-17 10:05:21 +01:00
Shane Steinert-Threlkeld bd5909e7b2 Find active conda environment and set it as default (if there is one) (#1440)
* add detection of conda environments

* changed get_default_environment to look for conda

* updated comment on get_default_environment to mention CONDA_PREFIX

* added myself to authors

* simple fix for mistaken conda paths
2019-12-07 01:04:41 +01:00
Johannes-Maria Frank 02d16ac55c Fix for failing assertion on native modules Issue #1354 (#1370) 2019-07-23 13:02:08 +02:00
mwchase 925fc89447 Get typing.NewType working (#1344)
Squashed from the following commits:

* Update pep0484.py

(I don't think I want to know why the cursor jumped to the beginning of the line with every keystroke in GitHub's online editor. Change was entered backwards.)

* Added test for inline use of NewType. Currently assuming that wrapped instances should get the underlying type.

* Altered tests per https://github.com/davidhalter/jedi/issues/1015#issuecomment-356131566

* Add NewTypeFunction to typing evaluation module

* Update AUTHORS.txt

* Add a new test, and a speculative justification

For now, address only the second comment

* Copy code from third comment on the PR

From inspection, I *believe* I understand what this code is doing, and as such, I believe this should cause the new test I added in response to the second comment to fail, because that test is based on faulty assumptions.

* Explicitly discard the key from the tuple

* Update pep0484_typing.py

* Test for the wrapped type, not the wrapper "type"

* Change the return value from calling a NewType
2019-07-01 22:42:59 -07:00
Dima Gerasimov ceb5509170 Include function return type annotation in docstring if it is present 2018-04-23 21:20:21 +02:00
Dave Halter 49235f8910 Add micbou to AUTHORS 2018-03-24 23:25:49 +01:00
T.Rzepka 29be40ae3f Add author's name to AUTHORS.txt 2018-02-17 13:52:59 +01:00
Dave Halter 9177c120f4 Merge the implicit namespace improvement (pkgutils.itermodules modification)
There are still a few issues that need to be addressed.
2018-02-15 20:08:58 +01:00
Anton Zub 18819292e6 Add author's name to AUTHORS.txt 2018-02-03 11:55:53 +01:00
Maxim Novikov 78cbad0d08 Fix implicit namespace autocompletion. Resolves: #959 2018-01-02 18:17:48 +01:00
Robin Roth 88cf592c95 Make goto work with await
Created together with @langsamer and @davidhalter
2017-10-28 14:10:05 +02:00
Élie Gouzien 405a339719 Add author Élie Gouzien. 2017-05-06 19:40:36 +02:00
Simon Ruggier 338ea42ed9 docstrings: fix "Sphinx param with type" pattern (#807)
* docstrings: fix "Sphinx param with type" pattern

Previously, the pattern only matched if the parameter description
followed on the same line, like so:

    :param type foo: A param named foo.

However, it's also valid for the parameter description to be wrapped
onto the next line, like so:

    :param type foo:
        A param named foo.

This change updates the pattern to match the second example as well, and
adds a test to verify this behaviour.

Fixes #806.

* Add Simon Ruggier to the AUTHORS file
2017-04-27 20:05:48 +02:00
daniel 5513f72987 added support for implicit ns packages and added tests 2017-02-23 23:53:14 +01:00
Mathias Rav c6cd18802b Add myself as contributor 2017-02-04 18:05:15 +01:00
bstaint b31b456dd4 Fixed Windows slashes problem. 2016-08-01 01:13:39 +08:00
Dave Halter 320f0dc920 Added @scribu as an author. 2016-07-30 02:45:04 +02:00
Dave Halter 23ff395754 Merge dev and the away branch. 2016-06-07 08:45:26 +02:00
Dmitry Sadovnychyi 1404b7bcea Update AUTHORS.txt 2016-06-04 17:49:28 +08:00
Dave Halter e34c0b336c Add an acknowledgement section in the README. Thank @tkf, @dbrgn and @gvanrossum for their contributions. 2015-12-26 03:32:50 +01:00
Dave Halter 23f40d8998 Merge branch 'linter' of https://github.com/reinhrst/jedi into pep484
Conflicts:
	AUTHORS.txt
2015-12-17 23:46:20 +01:00
Dave Halter 7141158484 Merge master into linter. 2015-12-15 12:28:38 +01:00
Claude 0f08dc6ac6 Addinf myself to AUTHORS 2015-12-14 00:03:07 +01:00
Kevin Kelley 2fc962bc3a Add myself to AUTHORS.txt. 2015-10-24 23:34:46 +00:00
Sid Shanker 6237214bff Added @squidarth to AUTHORS.txt. 2015-05-04 09:06:14 -07:00
farhad 32081bd156 Merge branch 'dev' into unicode_tokenize_fix2
Conflicts:
	AUTHORS.txt
2015-03-06 12:14:38 +04:00
farhad f9c104348e added myself to AUTHORS.txt 2015-03-06 11:55:16 +04:00
Ian Lee 5625e1cb62 Add self to authors list 2015-02-20 17:17:34 -08:00
Dave Halter 8775d90173 Merge the master branch into the dev branch. 2015-02-09 14:41:41 +01:00
Savor d'Isavano c3c07c4ec2 Fixed issue #526. 2015-01-16 18:45:34 +08:00
Phillip Berndt 3189ba7662 Add type check to jedi.Interpreter() namespace argument and remove default value 2014-08-19 09:41:17 +02:00