1
0
forked from VimPlug/jedi

Revert changes to test/completion and test/static_analysis except for 2.6 comment removal

This commit is contained in:
Hugo
2018-01-07 10:33:24 +02:00
parent 3e8cd9f128
commit 7e449af4bd
32 changed files with 99 additions and 99 deletions

View File

@@ -106,7 +106,7 @@ def nothing(a,b,c):
#? int()
nothing("")[0]
class MethodDecoratorAsClass:
class MethodDecoratorAsClass():
class_var = 3
@Decorator
def func_without_self(arg, arg2):
@@ -124,7 +124,7 @@ MethodDecoratorAsClass().func_without_self('')[1]
MethodDecoratorAsClass().func_with_self(1)
class SelfVars:
class SelfVars():
"""Init decorator problem as an instance, #247"""
@Decorator
def __init__(self):
@@ -181,7 +181,7 @@ JustAClass.a()
# illegal decorators
# -----------------
class DecoratorWithoutCall:
class DecoratorWithoutCall():
def __init__(self, func):
self.func = func
@@ -200,7 +200,7 @@ f()
g()
class X:
class X():
@str
def x(self):
pass
@@ -220,7 +220,7 @@ def dec(f):
return f(s)
return wrapper
class MethodDecorators:
class MethodDecorators():
_class_var = 1
def __init__(self):
self._method_var = ''
@@ -245,7 +245,7 @@ MethodDecorators().class_var()
MethodDecorators().method_var()
class Base:
class Base():
@not_existing
def __init__(self):
pass
@@ -298,7 +298,7 @@ follow_statement(1)
# class decorators should just be ignored
@should_ignore
class A:
class A():
def ret(self):
return 1