mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
Fix an issue with None docstrings
This commit is contained in:
@@ -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