File: attribute_class.py

package info (click to toggle)
sphinx-automodapi 0.22.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,180 kB
  • sloc: python: 1,769; makefile: 196
file content (12 lines) | stat: -rw-r--r-- 232 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
class ClassWithAttribute:
    """A class with an attribute."""
    my_attribute = 1

    def my_method(self):
        """A method."""
        pass

    @property
    def my_property(self):
        """A property."""
        return 1