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
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
Dave Halter
8f15f38949
Revert a change for Python 2.7 compatibility (see also e267f63657)
2021-12-25 14:08:44 +01:00
Dave Halter
96af7e4077
The Python 3.6 requirement is now the lowest supported version
2021-12-25 13:37:35 +01:00
Dave Halter
929fa9b452
Fix a small issue in overload tests
2021-12-25 13:18:58 +01:00
Peter Law
b6f761f13c
Make typed decorators work for instance methods
...
This feels incomplete when compared to FunctionMixin.py__get__,
however seems to work at least in the cut-down reported.
Fixes https://github.com/davidhalter/jedi/issues/1801 .
2021-12-12 18:18:55 +00:00
Peter Law
72cf41f4c9
Lambdas in comprehensions need parentheses in Python > 3.8
...
Fixes https://github.com/davidhalter/jedi/issues/1824 .
2021-12-12 18:17:53 +00:00
Dave Halter
a276710f66
Merge pull request #1820 from davidhalter/changes
...
Some Changes for 0.18.1
2021-11-17 01:42:55 +01:00
jerluc
b2e647d598
Removing invalid test for async with open(...)
...
See explanation in https://github.com/davidhalter/jedi/pull/1819#issuecomment-970776091
2021-11-16 16:12:43 -08:00
Dave Halter
84d086a47b
Fix an issue with whitespace after a dot at the end of a file, also part of #1748
2021-11-17 00:31:46 +01:00
Dave Halter
8bc9c8cda2
Fix an issue where a slice is indexed, fixes #1748
2021-11-17 00:14:59 +01:00
Dave Halter
42508d9309
Fix fixture annotations for pytest
...
This means mostly these:
@fixture
def foo() -> Generator[int, None, None]: ...
2021-11-16 22:57:25 +01:00
jerluc
8847848a03
Adds support for "async with" via #1818
2021-11-16 13:00:24 -08:00
Dave Halter
42c5276e04
Merge pull request #1800 from Boerde/pytest_improve_fixture_completion
...
Improve completion for pytest fixtures
2021-11-16 21:09:35 +01:00
Kirat Singh
53e837055f
fix(import): support for nested namespace packages
...
If multiple directories in sys.path provide a nested namespace
package, then jedi would only visit the first directory which
contained the package. Fix this by saving the remaining path list in
the ImplicitNamespaceValue and add a test for it.
2021-10-02 04:09:27 +00:00
boerde
8808b5b64b
added test to override fixture return value with annotation
2021-08-29 09:14:29 +02:00
Laurent Soest
96b4330ef9
testing: added test to override generator with annotation
2021-08-28 21:02:45 +02:00
Peter Law
78a95f4751
Handle generics appearing within any quoted annotations
...
This hoists the solution added for return-type annotations to
also apply for input annotations so they work too.
2021-07-25 16:31:27 +01:00
Peter Law
599a1c3ee1
Handle generics appearing within quoted return annotations
...
This ensures that these quoted likely forwards references in
return type annotations behave like their non-quoted equivalents.
I suspect there may be other places which will need similar
adjustments, which may mean that we should push the conversion
a layer closer to the parsing (perhaps in `py__annotations__`?).
One case I know that this doesn't solve (but which likely needs
similar adjustment) is generics in return types of comment-style
annotations. They're less likely and may not be worth supporting
since all supported Python versions can use the in-syntax spelling
for annotations at this point.
2021-07-25 15:32:22 +01:00
Dave Halter
c5fb2985a3
Use clearly defined project for tests to avoid scanning the 2000 typeshed files all the time
2021-01-02 15:31:57 +01:00
Dave Halter
55c7e4eb49
Stdlib modules should not be included in the get_references search, fixes davidhalter/jedi-vim#792
2021-01-02 00:58:50 +01:00
Dave Halter
d821451a64
Upgrade typeshed
2021-01-01 03:18:49 +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
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
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
1ece7698c2
Merge branch 'master' into python3
2020-07-17 16:07:54 +02:00
Dave Halter
e4987b3e7a
Fix issues with generators, fixes #1624
2020-07-17 15:57:32 +02:00
Dave Halter
0790f376ca
Some Python 2 removals
2020-07-02 03:34:44 +02:00
Dave Halter
17343bb57c
Remove some more Python 3.5 references
2020-07-02 02:18:16 +02:00
Dave Halter
23db298e2f
Removed various 3.3/3.4/3.5 references
2020-07-02 00:34:27 +02:00
Dave Halter
7e295d05a1
Remove some more Python 2/3.5 references
2020-07-02 00:25:00 +02:00
Dave Halter
50b85153ce
Remove a lot of test references to Python 2/3.5
2020-07-02 00:17:21 +02:00
Peter Law
5184d0cb9c
Support passing values through decorators from factories
...
This builds on the approach taken in https://github.com/davidhalter/jedi/pull/1613
but applies it to type vars themselves so that their type var
nature is preserved when a function returns Callable[[T], T] and
the T has an upper bound.
2020-06-26 11:22:19 +01:00
Peter Law
2d0258db1a
Add tests for class-style decorator factories
2020-06-26 11:19:51 +01:00
Dave Halter
a3410f124a
Make sure that Callables are properly represented
...
See also comment of https://github.com/davidhalter/jedi/pull/1614#issuecomment-647054740
2020-06-21 01:31:58 +02:00
Dave Halter
1872ad311b
Fix decorator param completion
2020-06-15 00:34:55 +02:00
Dave Halter
364d33119c
Merge branch 'django'
2020-06-14 22:24:31 +02:00
Dave Halter
4ab35cac7b
Merge branch 'master' of github.com:davidhalter/jedi
2020-06-14 18:11:50 +02:00