mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-08 21:35:15 +08:00
Fix an issue with None docstrings
This commit is contained in:
1 parent
6cdde65052
commit
cdc9520c9d
2 files changed
+15
-9
No files matched your search
@@ -46,3 +46,9 @@ def test_keyword_attributes(Script):
|
||||
assert def_.module_name in ('builtins', '__builtin__')
|
||||
assert 'typeshed' in def_.module_path
|
||||
assert def_.type == 'keyword'
|
||||
|
||||
|
||||
def test_none_keyword(Script):
|
||||
none, = Script('None').completions()
|
||||
assert not none.docstring()
|
||||
assert none.name == 'None'
|
||||
Reference in new issue
Block a user