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