summaryrefslogtreecommitdiff
path: root/doc/data/messages/s/subclassed-final-class/good.py
blob: e8d9faa5431e6b10647b10c44c161e8306c38624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from typing import final


@final
class PlatypusData:
    """General Platypus data."""

    average_length = 46
    average_body_temperature = 32


def print_average_length_platypus():
    output = f"The average length of a platypus is: {PlatypusData.average_length}cm"
    print(output)