diff --git a/python/completers/python/jedi_completer.py b/python/completers/python/jedi_completer.py index 865b1dd0..222ad974 100644 --- a/python/completers/python/jedi_completer.py +++ b/python/completers/python/jedi_completer.py @@ -140,7 +140,7 @@ class JediCompleter( ThreadedCompleter ): if len( definition_list ) == 1: definition = definition_list[ 0 ] if definition.in_builtin_module(): - if isinstance( definition.name, jedi.keywords.Keyword ): + if definition.is_keyword: vimsupport.PostVimMessage( "Cannot get the definition of Python keywords." ) else: