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