summaryrefslogtreecommitdiff
path: root/tests/functional/c/class_members.py
blob: e741c760b312f04b04472a11e9bcb61b9732ffeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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)