summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2019-09-26 09:17:00 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2019-09-26 09:17:00 +0200
commit277774397023211bf89ca58a2c92a6c7b8fb39fb (patch)
tree119b874530870cc468016140a1d748e502517de8
parentfde732e0e9a4f224c5ae48ad942c6d955aa0a8e6 (diff)
downloadpylint-git-277774397023211bf89ca58a2c92a6c7b8fb39fb.tar.gz
Rename attributes to prepare for the astroid dataclass transform
-rw-r--r--tests/functional/too/too_few_public_methods_37.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/functional/too/too_few_public_methods_37.py b/tests/functional/too/too_few_public_methods_37.py
index 5e641f6cc..55fc54484 100644
--- a/tests/functional/too/too_few_public_methods_37.py
+++ b/tests/functional/too/too_few_public_methods_37.py
@@ -28,10 +28,10 @@ class Example(typing.NamedTuple):
class Point:
"""A three dimensional point with x, y and z components."""
- x: float
- y: float
- z: float
+ attr1: float
+ attr2: float
+ attr3: float
def to_array(self):
"""Convert to a NumPy array `np.array((x, y, z))`."""
- return self.x
+ return self.attr1