forked from VimPlug/jedi
added magic methods for classes with object
This commit is contained in:
@@ -245,8 +245,6 @@ class Parser(CachedModule):
|
||||
stmts = {}
|
||||
members = {}
|
||||
for n in names:
|
||||
if '__' in n and n not in mixin_funcs:
|
||||
continue
|
||||
try:
|
||||
# this has a builtin_function_or_method
|
||||
exe = getattr(scope, n)
|
||||
|
||||
@@ -1316,7 +1316,8 @@ class PyFuzzyParser(object):
|
||||
if annotation:
|
||||
param.add_annotation(annotation)
|
||||
|
||||
if param:
|
||||
# params without vars are usually syntax errors.
|
||||
if param and (param.set_vars or param.used_vars):
|
||||
param.position_nr = pos
|
||||
names.append(param)
|
||||
pos += 1
|
||||
|
||||
Reference in New Issue
Block a user