1
0
forked from VimPlug/jedi
Commit Graph

5903 Commits

Author SHA1 Message Date
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
Eric Masseran d866ec0f80 Add support for dataclass_transform decorator 2025-02-14 17:05:28 +01:00
Dave Halter ecb922c6ff Fix a few issues around duplicated import paths, fixes #2033 2024-11-25 00:53:09 +01:00
Dave Halter 41e9e957e7 Increase Jedi version 2024-11-11 02:39:18 +01:00
wutingjia be6df62434 filter imported names during completion 2024-10-17 19:20:39 +08: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
WutingjiaX 2859e4f409 Support inferring not expr to bool (#2016)
* support inferring some not expr

* format

---------

Co-authored-by: wutingjia <wutingjia@bytedance.com>
2024-07-12 12:58:39 +00:00