Dave Halter
44600ea194
Fix union acess for 3.14
2026-04-27 15:21:26 +02:00
Dave Halter
04d45a8e1e
Remove a 3, 9 artifact
2026-04-27 14:42:24 +02:00
Dave Halter
f1ab9d9539
Remove some 3.8 artifacts
2026-04-27 14:41:58 +02:00
Dave Halter
7bac12c125
Remove some 3.7/3.6 artifacts
2026-04-27 14:35:10 +02:00
Dave Halter
375dd1bacc
Add 3.14 to the supported environments
2026-04-27 14:01:39 +02:00
Dave Halter
94f7e540ff
Merge branch 'py314' of https://github.com/frenzymadness/jedi into py314
2026-04-27 12:22:31 +02:00
Dave Halter
a662298e2f
Remove a bit more python3.8/3.9 specific code
2026-04-27 00:42:07 +02:00
Dave Halter
1eddf24a50
Remove Python 3.9 and 3.10
2026-04-27 00:34:17 +02:00
Lumir Balhar
04737b2637
Fix Python 3.15 compatibility
...
- Fix getattr_static for Python 3.15 __dict__ GetSetDescriptorType
- Accept abs() parameter name change ('x' → 'number')
- Add Python 3.15 os module constants to test expectations
Fixes instance attribute introspection and stdlib changes in Python 3.15.
2026-04-08 08:19:15 +02:00
Lumir Balhar
9b24443787
Fix Python 3.14 compatibility for typing.Union annotations
...
In Python 3.14, typing.Union changed its repr from 'typing.Union[X, Y]'
to 'X | Y' (PEP 604), breaking annotation inference.
Changes:
- Use getattr() instead of safe_getattr() for __module__ retrieval
(getattr_static fails on Union types in Python 3.14)
- Add fallback to typing.get_origin() when regex fails to match
- Normalize Union display back to 'Union[X, Y]' format for consistency
- Update test expectations for invalid annotation edge case in 3.14
Fixes: https://github.com/davidhalter/jedi/issues/2064
2026-03-09 15:39:23 +01:00
Dave Halter
ea09983566
Some small typing improvements for tests
2026-02-16 21:20:27 +01:00
Dave Halter
8cbb817b12
Fix a lot of test related typing issues
2026-02-10 19:38:55 +01:00
Dave Halter
e5a72695a8
Remove 3.6/3.7 references and change tests slightly
2025-06-16 16:18:15 +02: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
Peter Law
857c9be500
Ignore py__name__ issues for functools.partial in Python 3.13.0b3+
...
See https://github.com/davidhalter/jedi/issues/2012 for details.
2024-07-05 21:38:28 +01:00
Peter Law
340dedd021
Use an explicit mapping for locals in this test
...
In Python 3.13 the `locals` function now returns a fresh mapping
each time it's called (when called in a function). We thus need
to store a reference to the mapping being used, rather than
re-fetching it each time.
Since we don't actually need to modify the locals within the scope
of the test function itself, it suffices to use our own mapping
here rather than the result of calling `locals`, which fully
isolates this test from the nature of that function.
Fixes https://github.com/davidhalter/jedi/issues/2002
2024-07-02 21:37:34 +01:00
Peter Law
0fcb4468e7
Fix or ignore lints in tests
2024-06-30 19:05:38 +01:00
Ehsan Iran-Nejad
54a6dadde3
properties with setters are now reported as 'property' for completion ( #1983 )
...
* properties with setters are now reported as 'property' for completion
* code cleanups
* fixed test
* fixed tests
* Revert "fixed test"
This reverts commit a80c955a48 .
* code quality cleanup
* so picky
* Revert "Revert "fixed test""
This reverts commit 58dfc5292e .
* updated test per maintainer comments #1983
* removed extra char
2024-02-19 12:07:47 +00:00
Peter Law
7e533ca7e1
Drop redundant conditional skips for unsupported Python versions
2023-09-17 18:38:12 +01:00
Dave Halter
57aefed6ea
Allow unsafe custom __getitem__ executions when allow unsafe executions is on
2023-07-29 00:33:09 +02:00
Dave Halter
8a4b079d0f
allow_descriptor_getattr -> allow_unsafe_interpreter_executions
2023-07-29 00:06:55 +02:00
Dave Halter
62cbcb0844
Make nested dict completions possible.
...
See also https://github.com/ipython/ipython/issues/13866
2023-07-28 23:50:38 +02:00
Dave Halter
886279fb6d
Try to use the return annotations of properties, if available, fixes #1933
2023-07-28 22:35:15 +02:00
Dave Halter
ff3a7f367f
Avoid evaluating properties just for the api type, improves #1933
2023-07-28 22:11:15 +02:00
Dave Halter
67d6262f45
Skip the namespace package test correctly
2023-07-27 10:07:16 +02:00
Dave Halter
5f19237a3e
Fix renaming of namespace packages, fixes #1779
2023-07-27 03:09:25 +02:00
David Hotham
0fbc2aafa3
fix help when in column zero
2023-03-12 14:21:09 +00:00
Patterson, Kevin R
fac0b7f068
instance_allow_descriptor_getattr as public setting
2023-02-10 05:43:21 -06:00
Steve Kowalik
00e23ddcee
Support Python 3.11 typing changes
...
Python 3.11 has changed typing so that unions now return forward
refrences instead of erroring, and typing.Any is now an _AnyMeta class.
Correct the parameters for both of those.
Fixes #1858
2023-01-10 14:52:24 +11:00
Dave Halter
66c52b4bc7
Try to fix a test for Windows
2022-11-13 23:48:43 +01:00
Dave Halter
3a30008cc4
Fix keyword argument completion, fixes #1856
2022-11-13 20:26:00 +01:00
Dave Halter
6e5db3f479
Fix a weird AttributeError, fixes #1765
2022-11-13 18:26:01 +01:00
Dave Halter
0ba48bbb9d
Fix an issue with creatin a diff, fixes #1757
2022-11-13 17:51:54 +01:00
Dave Halter
26f7878d97
Revert some of the logic around ClassVar completions, see #1847
2022-11-12 23:15:16 +01:00
Dave Halter
78a53bf005
Change a test slightly
2022-11-12 13:59:07 +01:00
Dave Halter
804e4b0ca2
Merge pull request #1861 from qmmp123/master
...
Fix : #1847
2022-11-11 16:00:39 +00:00
Marcio Mazza
85c7f14562
Fix test where home could be a potential project
2022-09-01 13:01:27 -03:00
nedilmark
e194ab5951
Fix : #1847
2022-06-18 06:13:07 +08:00
Dave Halter
ec9b453379
Handle defined_names for values that have no context, fixes #1744 , fixes #1745
2021-11-17 01:07:28 +01: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
a17b958078
Fix infer_default for params in REPL, fixes #1738
2021-11-16 23:36:22 +01:00
Dave Halter
e580d1f4d9
Fix a stub docs issue
2021-11-16 21:27:00 +01:00
Lumír 'Frenzy' Balhar
eab1b8be8b
inspect now raises OSError for objects without source file
...
CPython issue: https://bugs.python.org/issue44648
2021-09-01 20:50:54 +02:00
Dave Halter
387d73990b
Fix issues with getitem on compiled objects that have annotations, see #1719
2021-01-17 13:48:22 +01:00
Dave Halter
47d0318fa6
Paths are the default for modules
2021-01-14 02:00:14 +01:00
Dave Halter
2a8b212af7
Move the module_injector
2021-01-14 01:35:18 +01:00
Dave Halter
44d77523b3
Fix a test that depended on correct cwd location an dnot having an x.py in a local directory
2021-01-10 16:31:37 +01:00
Dave Halter
6279791b24
Fix an issue with complete_search
2021-01-10 16:08:17 +01:00
Dave Halter
02d43caa5e
Fix a wrong test about references
2021-01-02 01:17:38 +01:00
Dave Halter
1ccc63e83d
Make py__iter__ work as well for Interpreter
2021-01-01 17:58:31 +01:00