Commit Graph

61 Commits

Author SHA1 Message Date
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
Dave Halter
a6855029d2 added a few EuroPython sprint guys to AUTHORS.txt 2014-07-30 09:15:17 +02:00
Dave Halter
a01e4c6b37 Merge remote-tracking branch 'origin/master' into dev 2014-07-23 00:47:30 +02:00
Dave Halter
3264a1815e Merge pull request #407 from hattya/dev
fix virtualenv support
2014-07-02 21:16:51 +04:30
Syohei YOSHIDA
605ab9c6f5 Fix package_data '*.pym' paths 2014-06-19 19:10:58 +09:00
Mathias Fussenegger
bf43fcf1c6 detect buildout and add buildout eggs to sys.path 2014-06-18 18:30:11 +02:00
Fredrik Bergroth
d3ac1e902e Always cast pr to er in _follow_statements_imports 2014-06-11 23:49:36 +02:00
Akinori Hattori
1ecb173b33 update AUTHORS 2014-05-08 18:45:51 +09:00
Danilo Bargen
db9ee1f5a0 Updated AUTHORS 2014-05-06 07:39:31 +02:00
Jorgen Schaefer
9ed0dc4861 Always load source files in binary mode.
Source files can be in any coding system, provided Python can
read a coding: line at the beginning of the file. So source files
should be loaded in binary format and decoded according to that
line, not assumed to be in the default coding system.

Fixes #398.
2014-04-24 11:10:59 +02:00
David Halter
3a8692e730 merge authors.txt 2013-12-16 20:40:24 +01:00
ColinDuquesnoy
ebbe0eeb18 Add name to authors 2013-10-31 17:18:59 +01:00
Steven Silvester
9cac894273 Disabling gc while loading pickles for a 20% speed boost on larger libs 2013-10-06 06:26:36 -05:00
David Halter
2b6cc01d39 forgot @hattya and @srusskih in the contributors list 2013-07-29 14:05:54 +02:00