forked from VimPlug/jedi
Remove redundant parentheses
This commit is contained in:
@@ -432,7 +432,7 @@ def dotted_from_fs_path(fs_path, sys_path):
|
||||
# C:\path\to\Lib
|
||||
path = ''
|
||||
for s in sys_path:
|
||||
if (fs_path.startswith(s) and len(path) < len(s)):
|
||||
if fs_path.startswith(s) and len(path) < len(s):
|
||||
path = s
|
||||
|
||||
# - Window
|
||||
|
||||
@@ -87,7 +87,7 @@ else:
|
||||
return getattr(klass, '__dict__', _sentinel)
|
||||
return _shadowed_dict_newstyle(klass)
|
||||
|
||||
class _OldStyleClass():
|
||||
class _OldStyleClass:
|
||||
pass
|
||||
|
||||
_oldstyle_instance_type = type(_OldStyleClass())
|
||||
@@ -122,7 +122,7 @@ def _safe_hasattr(obj, name):
|
||||
|
||||
|
||||
def _safe_is_data_descriptor(obj):
|
||||
return (_safe_hasattr(obj, '__set__') or _safe_hasattr(obj, '__delete__'))
|
||||
return _safe_hasattr(obj, '__set__') or _safe_hasattr(obj, '__delete__')
|
||||
|
||||
|
||||
def getattr_static(obj, attr, default=_sentinel):
|
||||
|
||||
@@ -64,7 +64,7 @@ class MixedName(compiled.CompiledName):
|
||||
contexts = list(self.infer())
|
||||
if not contexts:
|
||||
# This means a start_pos that doesn't exist (compiled objects).
|
||||
return (0, 0)
|
||||
return 0, 0
|
||||
return contexts[0].name.start_pos
|
||||
|
||||
@start_pos.setter
|
||||
|
||||
Reference in New Issue
Block a user