aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/c/class_members.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/c/class_members.py')
-rw-r--r--tests/functional/c/class_members.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/functional/c/class_members.py b/tests/functional/c/class_members.py
new file mode 100644
index 000000000..e43ab57ba
--- /dev/null
+++ b/tests/functional/c/class_members.py
@@ -0,0 +1,13 @@
+# pylint: disable=missing-docstring, too-few-public-methods
+
+
+class Class:
+ attr: int
+ ...
+
+
+# `bar` definitely does not exist here, but in a complex scenario,
+# it might. We simply exclude PEP 526 class and instance variables
+# from `no-member`.
+print(Class().attr)
+print(Class.attr)