python-by-example-150-chall.../venv/lib/python3.6/site-packages/pylint/test/functional/namePresetCamelCase.py

24 lines
538 B
Python
Raw Permalink Normal View History

2019-08-04 20:26:35 +08:00
# pylint: disable=missing-docstring,too-few-public-methods
__version__ = "1.0"
SOME_CONSTANT = 42 # [invalid-name]
def sayHello(someArgument):
return [someArgument * someValue for someValue in range(10)]
class MyClass: # [invalid-name]
def __init__(self, argX):
self._mySecretX = argX
@property
def myPublicX(self):
return self._mySecretX * 2
def __eq__(self, other):
return isinstance(other, MyClass) and self.myPublicX == other.myPublicX
def say_hello(): # [invalid-name]
pass