Fix an issue with names

This commit is contained in:
Dave Halter committed 2020-01-25 18:48:52 +01:00
1 parent f42ab8872d
commit feefd47ddd
2 files changed
+9 -1

No files matched your search

+7
View File
@@ -429,3 +429,10 @@ def test_completion_cache(Script, module_injector):
cls, = c.infer()
assert cls.type == 'class'
assert cls.docstring() == 'foo()\n\ndoc2'
def test_typing_module_completions(Script):
for c in Script('import typing; typing.').completions():
# Just make sure that there are no errors
c.type
c.docstring()