mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Fix typing.NewType signature
This commit is contained in:
@@ -117,6 +117,10 @@ class X:
|
||||
('from typing import List\nList[int](', None),
|
||||
('from typing import Tuple\nTuple(', None),
|
||||
('from typing import Tuple\nTuple[int](', None),
|
||||
('from typing import Optional\nOptional(', None),
|
||||
('from typing import Optional\nOptional[int](', None),
|
||||
('from typing import Any\nAny(', None),
|
||||
('from typing import NewType\nNewType(', 'NewType(name: str, tp: Type[_T]) -> Type[_T]'),
|
||||
]
|
||||
)
|
||||
def test_tree_signature(Script, environment, code, expected):
|
||||
|
||||
Reference in New Issue
Block a user