Dave Halter
85f45771f1
Fix typing.NewType signature
2021-01-01 04:22:52 +01:00
Dave Halter
30e702de11
Generics don't have signatures
2021-01-01 04:09:49 +01:00
Dave Halter
778442a972
Type aliases should not have a signature
2021-01-01 03:59:28 +01:00
Dave Halter
4f34712858
Fix signatures for TypeVar and cast, fixes #1709
2021-01-01 03:59:12 +01:00
Dave Halter
d821451a64
Upgrade typeshed
2021-01-01 03:18:49 +01:00
Dave Halter
92d96ac336
actually use auto_import_modules correctly
2021-01-01 02:59:42 +01:00
Dave Halter
5d2aed34f4
Fix signatures if a decorator has no signatures, fixes #1705
2020-12-28 00:47:10 +01:00
Dave Halter
04c1c0f871
Fix an issue with api_name of class attributes, fixes #1688
2020-12-28 00:29:30 +01:00
Dave Halter
0f128c6deb
Fix nested comprehension contexts, fixes #1691
2020-12-27 21:09:00 +01:00
Dave Halter
52443daf12
Fix another Windows test on 3.8
2020-12-26 12:19:59 +01:00
Dave Halter
86d57edda4
Some Windows compatibility fixes
2020-12-26 11:52:47 +01:00
Dave Halter
3184264b3b
Try to fix windows
2020-12-26 04:16:32 +01:00
Dave Halter
d4a1657b2e
Better error reporting
2020-12-26 04:03:19 +01:00
Dave Halter
b89f9445c2
Merge pull request #1684 from davidhalter/relative-import
...
Relative imports should work even if they are not within the project
2020-12-22 23:18:46 +01:00
Dave Halter
ce6ddb91de
Merge pull request #1711 from davidhalter/deprecations
...
Remove Deprecations
2020-12-21 22:49:09 +01:00
Dave Halter
f9cec89038
Merge branch 'master' into deprecations
2020-12-12 12:17:25 +01:00
Dave Halter
bc4f6ed9dd
Merge branch 'master' into relative-import
2020-12-12 12:15:13 +01:00
Leo 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
Dave Halter
42a759a7ae
Merge pull request #1706 from ColdGrub1384/master
...
Catch 'PermissionError' for unreadable directories
2020-12-07 22:34:03 +01:00
Adrian Labbé
6dcae857a7
Remove 'test_get_parent_dir_with_file'
2020-12-07 14:50:04 -03:00
Dave Halter
34792c0077
Merge pull request #1707 from Carreau/fix-1702
...
Add tests for #1702 , for a rare numpydoc syntax.
2020-12-07 15:07:53 +01:00
Matthias Bussonnier
06d6776422
Add tests for #1702 , for a rare numpydoc syntax.
...
It looks like numpydoc, and things like masked array docstrings use a
syntax that make jedi crash:
fill_value : {var}, optional
Value used internally for the masked values.
If ``fill_value`` is not None, it supersedes ``endwith``.
Here we add a test that we do not crash jedi.
2020-12-06 18:08:51 -08:00
Yoni Weill
1095820006
add tests for get_completion_prefix_length
2020-12-06 21:09:03 +02:00
Adrian Labbé
47e60107b2
Add tests for 'test_get_parent_dir_with_file' and 'test_is_potential_project'
2020-12-06 15:26:20 -03:00
Dave Halter
a03a093e2c
change the create_stub_module stuff a bit
2020-10-24 10:41:59 +02:00
Dave Halter
6094e7b39a
Fix get_line_code for stubs
2020-10-24 10:12:32 +02:00
Dave Halter
98d0a55a02
Add a few more tests for annotations on self
2020-10-23 23:32:28 +02:00
Dave Halter
6eabde1519
Fix annotations on self attributes, fixes #1681
2020-10-23 23:26:07 +02:00
Dave Halter
bf310c780c
Fix a recursion on imports, fixes #1677
2020-10-23 21:04:36 +02:00
Dave Halter
e671a0cb6d
Fix an error with enums, fixes #1675
2020-10-23 20:25:00 +02:00
Dave Halter
a5a36a049c
Fix an infer issue on literals after brackets, fixes #1657
2020-10-23 19:09:23 +02:00
Dave Halter
43ff2833f3
Make a test more reliable
2020-10-23 18:04:47 +02:00
Dave Halter
5f2f4af851
Update test/test_inference/test_imports.py
...
Co-authored-by: Peter Law <PeterJCLaw@gmail.com >
2020-10-21 22:32:33 +02:00
Dave Halter
78e87d0ab8
Relative imports should work even if they are not within the project
2020-10-20 01:00:22 +02:00
Dave Halter
c1f4e7d874
One interpreter test is different for 3.9+
2020-09-19 21:27:55 +02:00
Dave Halter
f18493b627
Fix an interpreter test
2020-09-19 20:57:32 +02:00
Dave Halter
58ef6cd36b
if_stmt test clauses should be resolved at the start of the if_stmt
2020-08-05 23:55:46 +02:00
Dave Halter
abf63d73d3
Basic implementation support for namedexpr, fixes #1647
2020-08-05 23:55:46 +02:00
Dave Halter
f12ed2088a
Use pathlib for file ios, because the new parso is out
2020-08-05 00:52:50 +02:00
Dave Halter
2f7d0ec42c
Project attributes are now read accessible
2020-08-01 18:26:26 +02:00
Peter Law
403564315c
Reflow test to ensure trailing space is preserved
...
Many editors strip trailing space, so avoid using a multiline
string where the space is actually needed.
2020-07-21 22:44:43 +01:00
Peter Law
5e6138d16f
Update to flake8 3.8.x
...
In particular this improves support for detecting usage of various
type annotation usages and adds support for correctly parsing
type: ignore comments which contain a reason tag.
2020-07-21 21:34:58 +01:00
Dave Halter
bb303a75c0
Fix a test
2020-07-20 23:58:46 +02:00
Dave Halter
89f525407a
Remove the deprecation tests
2020-07-20 02:06:17 +02:00
Dave Halter
14069e81fd
Remove speed tests, they were only flaky and didn't really provide a value anymore
2020-07-20 01:43:29 +02:00
Dave Halter
401e8d3100
Fix issues with property searches
2020-07-20 01:40:25 +02:00
Dave Halter
784e965d3a
@property now returns Name.type == 'property', fixes muffinmad/anakin-language-server#15
2020-07-20 01:20:24 +02:00
Dave Halter
27603f9780
Reenable a test for nested imports
2020-07-19 13:57:52 +02:00
Dave Halter
d9a90d5d5e
Remove a test that no longer made sense
2020-07-19 13:55:18 +02:00
Dave Halter
d78567f853
Fix a Python 3.9 issue on travis
2020-07-17 16:12:55 +02:00