Dave Halter
b27a7dde18
Fix file path completions
2026-04-28 15:25:25 +02:00
Dave Halter
3365d0763b
Implement __new__ signatures, fixes #2073
2026-04-28 02:25:25 +02:00
Dave Halter
ff581e8403
Start fixing some of the problems with new typeshed
2026-04-28 01:41:40 +02:00
Dave Halter
2455414d1d
Upgrade Typeshed
2026-04-28 01:38:26 +02:00
Dave Halter
38122a7fd3
Fix issues around whitespace after dot completions, fixes #1954
2026-04-27 18:15:45 +02:00
Dave Halter
40c685c52b
Fix star import completions, fixes #2087
2026-04-27 16:10:56 +02:00
Dave Halter
6e17c85a57
Avoid flake8 issues
2026-04-27 15:29:08 +02:00
Dave Halter
44600ea194
Fix union acess for 3.14
2026-04-27 15:21:26 +02:00
Dave Halter
d4233732be
Format unions with | consistently
2026-04-27 14:24:23 +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
Dave Halter
edb5462cf5
Fix an issue with tests
2026-04-26 03:05:30 +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
Dave Halter
68be64b992
Use forward references because 3.8 is still a bit annoying
2026-03-26 23:31:24 +01: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
e7fdbcc834
Fix a few more typing issues
2026-02-04 02:24:41 +01:00
Dave Halter
3ffed76884
Improve a weird typing issue
2026-02-04 01:28:30 +01:00
Dave Halter
30ef824abd
Introduce some stricter typing
2026-02-04 01:19:14 +01:00
Dave Halter
c7481b3319
Fix a linter issue
2026-01-20 02:05:51 +01:00
Dave Halter
3ac1632a5c
Avoid the need to import search_ancestor
2026-01-19 20:30:03 +01:00
Mark Diekhans
a89757a966
Handle object with __file__ attribute having a None value (issue #2082 )
2025-12-20 17:24:25 -08:00
Hoblovski
3454ebb1de
fix: let star_expr infer to NO_VALUES instead of crashing
2025-11-13 20:41:58 +08:00
Eric Masseran
15a7513fd0
Improve code comment
2025-08-29 18:54:30 +02:00
Eric Masseran
0f35a1b18b
Split dataclass and dataclass_transform logic
2025-08-29 18:54:14 +02:00
Eric Masseran
3a436df7ac
Remove property usage
2025-08-29 18:37:37 +02:00
Eric Masseran
c1e9aee15b
Clean code comments
2025-08-29 18:37:23 +02:00
Eric Masseran
6e5f201f6c
Use future annotations
2025-08-29 18:36:54 +02:00
Eric Masseran
356923e40d
Merge remote-tracking branch 'origin' into support-dataclass-transform
...
* origin:
Fix pip install -e in docs
Upgrade Mypy
Fix a few flake8 issues
Upgrade flake8
Upgrade other test runners
Remove 3.6/3.7 references and change tests slightly
Upgrade OS's that it is tested on
Try to add something to the README
2025-08-28 10:33:17 +02:00
Dave Halter
d411290dff
Upgrade Mypy
2025-06-16 16:49:46 +02:00
Dave Halter
7c27da8d68
Fix a few flake8 issues
2025-06-16 16:41:36 +02:00
Dave Halter
e5a72695a8
Remove 3.6/3.7 references and change tests slightly
2025-06-16 16:18:15 +02:00
Eric Masseran
503c88d987
Merge remote-tracking branch 'origin' into support-dataclass-transform
...
* origin:
Don't remove `sys.path[0]`.
perf: improve performance by replacing list to set
Explicit sphinx config path
2025-05-05 02:03:07 +02:00
Eric Masseran
d53a8ef81c
Support init customization on dataclass_transform source
2025-05-05 02:02:17 +02:00
Eric Masseran
5f4afa27e5
Documentation and better naming
2025-05-04 23:34:58 +02:00
Eric Masseran
a3fd90d734
Fix dataclass decorator other parameters
2025-03-18 00:42:58 +01:00
Eric Masseran
999332ef77
Dataclass transform change init False
2025-03-18 00:30:50 +01:00
Eric Masseran
e140523211
Fix attrs + remove dataclass_transform init=false tests
2025-03-17 23:51:53 +01:00
Eric Masseran
bd1edfce78
Fix test
2025-03-17 19:48:42 +01:00
Eric Masseran
7dcb944b05
Fix decorator transformed case
2025-03-15 16:42:16 +01:00
Eric Masseran
50778c390f
Fix init=false for transform and exclude fields on base transform
2025-03-15 16:23:32 +01:00
Eric Masseran
8912a35502
Support init=False for dataclass_transform
2025-03-15 16:00:51 +01:00
Eric Masseran
77cf382a1b
Support init=False for dataclass
2025-03-15 15:53:51 +01:00
Eric Masseran
472ee75e3c
Add ClassVar support for dataclass
2025-03-15 13:15:19 +01:00
Eric Masseran
efc7248175
Fix mypy
2025-03-15 12:05:05 +01:00
Damian Birchler
35a12fab7a
Don't remove sys.path[0].
...
Fixes https://github.com/davidhalter/jedi/issues/2053 .
2025-03-13 09:52:49 +01:00
Robin
699c930bd4
perf: improve performance by replacing list to set
2025-03-05 12:53:08 +00:00
Eric Masseran
74b46f3ee3
Add doc
2025-02-15 20:27:08 +01:00
Eric Masseran
027e29ec50
Support base class and metaclass mode
2025-02-15 20:12:53 +01:00