diff --git a/pythonx/jedi b/pythonx/jedi index 005f693..afbd8ca 160000 --- a/pythonx/jedi +++ b/pythonx/jedi @@ -1 +1 @@ -Subproject commit 005f69390c4b1a3b864e7373cfcbdaf95e65411d +Subproject commit afbd8cad8938331ff89dac34126b4960809dc75b diff --git a/pythonx/parso b/pythonx/parso index c0ace63..fb010f2 160000 --- a/pythonx/parso +++ b/pythonx/parso @@ -1 +1 @@ -Subproject commit c0ace63a6905500e18d8ac06af1a0a9057e63498 +Subproject commit fb010f2b5d67a7b284962e1059e4ebadf87792d0 diff --git a/test/vspec/signatures.vim b/test/vspec/signatures.vim index 22bfb73..933df1c 100644 --- a/test/vspec/signatures.vim +++ b/test/vspec/signatures.vim @@ -41,7 +41,7 @@ describe 'signatures' doautocmd CursorHoldI noautocmd normal istaticmethod() doautocmd CursorHoldI - Expect getline(1) == '?!?jedi=0, ?!? (*_*f: Callable*_*) ?!?jedi?!?' + Expect getline(1) == '?!?jedi=0, ?!? (*_*f: Callable[..., Any]*_*) ?!?jedi?!?' end it 'highlights correct argument' @@ -54,14 +54,14 @@ describe 'signatures' " Move to "=" - hightlights "sep=...". noautocmd normal 5h doautocmd CursorHoldI - Expect getline(1) =~# '\V\^?!?jedi=0, ?!? (*values: object, *_*sep: Text=...*_*' + Expect getline(1) =~# '\V\^?!?jedi=0, ?!? (*values: object, *_*sep: Optional[Text]=...*_*' " Move left to "=" - hightlights first argument ("values"). " NOTE: it is arguable that maybe "sep=..." should be highlighted " still, but this tests for the cache to be "busted", and that " fresh results are retrieved from Jedi. noautocmd normal h doautocmd CursorHoldI - Expect getline(1) =~# '\V\^?!?jedi=0, ?!? (*_**values: object*_*, sep: Text=...,' + Expect getline(1) =~# '\V\^?!?jedi=0, ?!? (*_**values: object*_*, sep: Optional[Text]=...,' end it 'no signature' @@ -88,7 +88,7 @@ describe 'signatures' redir => msg Python jedi_vim.show_call_signatures() redir END - Expect msg == "\nstaticmethod(f: Callable)" + Expect msg == "\nstaticmethod(f: Callable[..., Any])" redir => msg doautocmd InsertLeave