mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-03 10:43:26 +08:00
Fix pep0484 comments
This commit is contained in:
@@ -133,8 +133,8 @@ class NameFinder(object):
|
||||
continue
|
||||
break
|
||||
|
||||
debug.dbg('finder.filter_name "%s" in (%s): %s@%s', self._string_name,
|
||||
self._context, names, self._position)
|
||||
debug.dbg('finder.filter_name %s in (%s): %s@%s',
|
||||
repr(self._string_name), self._context, names, self._position)
|
||||
return list(names)
|
||||
|
||||
def _check_getattr(self, inst):
|
||||
|
||||
@@ -191,9 +191,9 @@ def is_compiled(context):
|
||||
|
||||
def is_string(context):
|
||||
if context.evaluator.environment.version_info.major == 2:
|
||||
str_classes = (str, unicode, bytes)
|
||||
str_classes = (unicode, bytes)
|
||||
else:
|
||||
str_classes = (str,)
|
||||
str_classes = (unicode,)
|
||||
return is_compiled(context) and isinstance(context.get_safe_value(default=None), str_classes)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user