mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 07:58:04 +00:00
5673ffe2d8
adapt existing test/input test cases to new check. add some more positive test case for useless-object-inheritance msg code was in conflict with existing msg. adapt existing test cases for new checker.
26 lines
473 B
Python
26 lines
473 B
Python
"""check unused import
|
|
"""
|
|
# pylint: disable=no-absolute-import, useless-object-inheritance
|
|
|
|
from __future__ import print_function
|
|
|
|
import os
|
|
import sys
|
|
|
|
class NonRegr(object):
|
|
"""???"""
|
|
def __init__(self):
|
|
print('initialized')
|
|
|
|
def sys(self):
|
|
"""should not get sys from there..."""
|
|
print(self, sys)
|
|
|
|
def dummy(self, truc):
|
|
"""yo"""
|
|
return self, truc
|
|
|
|
def blop(self):
|
|
"""yo"""
|
|
print(self, 'blip')
|