Dave Halter
76c0c373da
Merge pull request #1642 from PeterJCLaw/mypy
...
Add an initial mypy config
2020-08-05 01:09:49 +02:00
Dave Halter
f12ed2088a
Use pathlib for file ios, because the new parso is out
2020-08-05 00:52:50 +02:00
Matthias Bussonnier
a9e2cd5a74
Reformat and move imports to top level.
2020-08-03 08:24:24 -07:00
Matthias Bussonnier
20be4f02c8
Turn print into warning to simplify silencing them.
2020-07-27 11:28:05 -07:00
Peter Law
b892c07841
Merge branch 'master' into mypy
2020-07-26 12:25:19 +01:00
Peter Law
cefc363f64
Configure mypy and flake8 for our re-export files
...
This removes the need to use __all__ in these files, while also
allowing us to have strictness elsewhere in the codebase.
2020-07-26 12:20:08 +01:00
Dave Halter
9d1587a41d
Don't need to inherit from object anymore
2020-07-26 00:11:57 +02:00
Peter Law
6315709fea
Inherit from base class to placate mypy
2020-07-24 20:25:55 +01:00
Peter Law
69be26b16e
Change subclass to function wrapper
...
This avoids mypy complaining that we need to provide a generic
argument to Popen, which we cannot acctually do as the implementation
of Popen does not inherit from typing.Generic.
2020-07-24 20:25:55 +01:00
Peter Law
35c2d660cb
Fix most import related mypy errors
2020-07-24 16:10:34 +01:00
Dave Halter
9957565b37
Try to use yield from instead of yield, if possible
2020-07-19 13:34:58 +02:00
Dave Halter
1ece7698c2
Merge branch 'master' into python3
2020-07-17 16:07:54 +02:00
Dave Halter
7851dff915
Properly negate with Interpreter, fixes #1636
2020-07-17 15:57:32 +02:00
Ryan Clary
b0f664ec94
* reflect default Popen behavior by inheriting os.environ
...
* without passing env_vars to create_environment, GeneralizedPopen behavior is same as before fix to issue #1540 (803c3cb271 )
* env_vars allows explicit environment variables, per PR #1619 (f9183bbf64 )
2020-07-16 19:04:33 -07:00
Dave Halter
9957374508
Fix dict completions for inherited dicts, fixes #1631
2020-07-14 17:50:12 +02:00
Dave Halter
480a464179
Implement all remaining Path issues and use it instead of strings
2020-07-12 01:14:00 +02:00
Dave Halter
db0e90763b
Start using pathlib.Path instead of all the os.path functions
2020-07-10 17:30:36 +02:00
Dave Halter
92af043906
Fix some subprocess issues
2020-07-02 18:39:24 +02:00
Dave Halter
dac1fb0a06
Get rid of a few Python 2 things
2020-07-02 16:00:26 +02:00
Dave Halter
ec08506704
Remove getstate and setstate, because they are not needed anymore
2020-07-02 15:55:31 +02:00
Dave Halter
7bcb420a0a
Delete a weird comment
2020-07-02 12:33:19 +02:00
Dave Halter
a0de93a638
Remove super arguments
2020-07-02 10:59:59 +02:00
Dave Halter
216ce8726c
Move GeneralizedPopen
2020-07-02 10:54:32 +02:00
Dave Halter
0c1ba1b305
Move the importing of modules out of compatibility
2020-07-02 10:51:49 +02:00
Dave Halter
5ab351dc8f
Remove unicode literals from code base
2020-07-02 10:43:14 +02:00
Dave Halter
7f67324210
Remove a lot more Python 2 mentions and todos
2020-07-02 10:30:58 +02:00
Dave Halter
8ee0c8593e
Remove unicode usages
2020-07-02 03:26:22 +02:00
Dave Halter
ef96c4c66b
Remove __future__ usages
2020-07-02 03:15:07 +02:00
Dave Halter
65601b6532
Remove compatibility code from getattr_static
2020-07-02 03:09:47 +02:00
Dave Halter
f4e537fd72
Remove a lot of sys.version_info references
2020-07-02 02:49:35 +02:00
Dave Halter
cfd8eb23b8
Remove all_suffixes from _compatibility
2020-07-02 02:32:02 +02:00
Dave Halter
db28eee760
Remove py__version__
2020-07-02 02:30:16 +02:00
Dave Halter
17343bb57c
Remove some more Python 3.5 references
2020-07-02 02:18:16 +02:00
Dave Halter
eea35ffc31
Remove supported Pythons from environments
2020-07-02 01:52:44 +02:00
Dave Halter
49e4b1a0f8
Remove force_unicode
2020-07-02 01:47:21 +02:00
Dave Halter
07fc1ef837
Remove the pickle compatibility stuff
2020-07-02 01:29:54 +02:00
Dave Halter
227cf00638
Remove the __builtin__ compatibility
2020-07-02 01:15:29 +02:00
Dave Halter
aab9fd2fbe
Remove queue compatibility
2020-07-02 00:52:26 +02:00
Dave Halter
4e2ca9e5fd
Remove some pickle compatibility
2020-07-02 00:50:58 +02:00
Dave Halter
395f7fc59e
Remove inspect.Parameter compatibility
2020-07-02 00:44:25 +02:00
Dave Halter
86eb48a89b
Remove unwrap compatibility
2020-07-02 00:40:08 +02:00
Dave Halter
3262ad4350
Remove the scandir compatibility
2020-07-02 00:38:44 +02:00
Dave Halter
fb34df3987
Remove a way for using imp to load Jedi in a subprocess
2020-07-02 00:37:09 +02:00
Dave Halter
23db298e2f
Removed various 3.3/3.4/3.5 references
2020-07-02 00:34:27 +02:00
Ryan Clary
7ec8454fc1
* Provide option to pass environment variables to Environment and CompiledSubprocess (subprocess.Popen)
...
* Extend this option to find_system_enviornments and get_system_environment without breaking API
2020-06-21 08:08:32 -07: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
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
02c3d651bd
Some more code quality fixes
2020-04-11 02:23:23 +02:00
Dave Halter
102f83ea85
Remove unreachable code
2020-04-11 01:39:04 +02:00
Dave Halter
4af138f4fb
Merge branch 'docs' of https://github.com/blueyed/jedi into refactor
...
Almost all of the docstrings were still there.
2020-03-14 00:12:53 +01:00