You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting from Python 3.12, functions, classes and type aliases may contain a type parameter list. However, this new syntax is not supported by Jedi. For example:
Because of this, language servers that use Jedi (such as jedi-language-server or python-lsp-server) cannot provide hover information for objects with type parameter lists.
Version Information
Python 3.12.6
Jedi 0.19.1
The text was updated successfully, but these errors were encountered:
My guess is that this is a parso issue (looking their reveals davidhalter/parso#221), though Jedi may need subsequent changes to make use of the parameters.
@PeterJCLaw is correct. I wanted to change this in parso a while ago, which would have taken maybe an hour, but the problem is that this is absolutely non-trivial in Jedi and even simply ignoring it in Jedi is probably quite a bit of work.
The Issue
Starting from Python 3.12, functions, classes and type aliases may contain a type parameter list. However, this new syntax is not supported by Jedi. For example:
Because of this, language servers that use Jedi (such as
jedi-language-server
orpython-lsp-server
) cannot provide hover information for objects with type parameter lists.Version Information
The text was updated successfully, but these errors were encountered: