mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-22 00:24:37 +00:00
24 lines
473 B
Python
24 lines
473 B
Python
|
"""don't want E1101 if __getattr__ is defined"""
|
||
|
|
||
|
__revision__ = None
|
||
|
|
||
|
class MyString:
|
||
|
"""proxied string"""
|
||
|
|
||
|
def __init__(self, string):
|
||
|
self.string = string
|
||
|
|
||
|
def __getattr__(self, attr):
|
||
|
return getattr(self.string, attr)
|
||
|
|
||
|
def lower(self):
|
||
|
"""string.lower"""
|
||
|
return self.string.lower()
|
||
|
|
||
|
def upper(self):
|
||
|
"""string.upper"""
|
||
|
return self.string.upper()
|
||
|
|
||
|
MYSTRING = MyString("abc")
|
||
|
print MYSTRING.title()
|