Skip to content

Commit

Permalink
added magic methods for classes with object
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhalter committed Nov 18, 2012
1 parent 932749b commit c1c2437
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions jedi/builtin.py
Expand Up @@ -245,8 +245,6 @@ def get_scope_objects(names):
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)
Expand Down
3 changes: 2 additions & 1 deletion jedi/parsing.py
Expand Up @@ -1316,7 +1316,8 @@ def _parseparen(self):
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
Expand Down

0 comments on commit c1c2437

Please sign in to comment.