mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-03 06:43:45 +08:00
Change some more tests for typeshed
This commit is contained in:
1 parent
d87a4af50f
commit
8ba5b67622
2 files changed
+4
-4
No files matched your search
@@ -614,8 +614,8 @@ def test_definition_goto_follow_imports(Script):
|
||||
('n = {1: ""}; n', 'Dict[int, str]'),
|
||||
('n = {1: "", 1.0: b""}; n', 'Dict[Union[float, int], Union[bytes, str]]'),
|
||||
|
||||
('n = next; n', 'Union[next(__i: Iterator[_T]) -> _T, '
|
||||
'next(__i: Iterator[_T], default: _VT) -> Union[_T, _VT]]'),
|
||||
('n = next; n', 'Union[next(i: SupportsNext[_T], /) -> _T, '
|
||||
'next(i: SupportsNext[_T], default: _VT, /) -> _T | _VT]'),
|
||||
('abs', 'abs(x: SupportsAbs[_T], /) -> _T'),
|
||||
('def foo(x, y): return x if xxxx else y\nfoo(str(), 1)\nfoo',
|
||||
'foo(x: str, y: int) -> Union[int, str]'),
|
||||
|
||||
Reference in new issue
Block a user