Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added magic methods for classes with object

  • Loading branch information...
commit c1c2437fec9265815924f236a79c2c5dfd623e4c 1 parent 932749b
@davidhalter authored
Showing with 2 additions and 3 deletions.
  1. +0 −2  jedi/builtin.py
  2. +2 −1  jedi/parsing.py
View
2  jedi/builtin.py
@@ -245,8 +245,6 @@ def get_scope_objects(names):
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)
View
3  jedi/parsing.py
@@ -1316,7 +1316,8 @@ def _parseparen(self):
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
Please sign in to comment.
Something went wrong with that request. Please try again.