mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-01 17:03:45 +08:00
Stubs should not become stubs again in the conversion function, fixes #1475
This commit is contained in:
1 parent
e802f5aabd
commit
eee919174d
3 files changed
+18
-3
No files matched your search
@@ -431,8 +431,9 @@ def test_completion_cache(Script, module_injector):
|
||||
assert cls.docstring() == 'foo()\n\ndoc2'
|
||||
|
||||
|
||||
def test_typing_module_completions(Script):
|
||||
for c in Script('import typing; typing.').completions():
|
||||
@pytest.mark.parametrize('module', ['typing', 'os'])
|
||||
def test_module_completions(Script, module):
|
||||
for c in Script('import {module}; {module}.'.format(module=module)).completions():
|
||||
# Just make sure that there are no errors
|
||||
c.type
|
||||
c.docstring()
|
||||
Reference in new issue
Block a user