blob: 4e6fc4d28cf60b134328f5aa76f962df5ba6e6a6 [file] [log] [blame]
# pylint: disable=missing-docstring,pointless-statement,invalid-name,no-self-use
class A:
def func(self):
print('hello')
@property
def index(self):
print('world')
# Since these are not assigned anywhere, assignment-from-none etc.
# in typecheck does not warn
a = A()
# double call is workaround for #4426
a.func()() # [not-callable]
[1, 2, 3][a.index] # [invalid-sequence-index]