aboutsummaryrefslogtreecommitdiffstats
path: root/config_file/default.py
blob: 529021c134e859171d27d99a7d0114eb01ee9590 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class Default:
    """
    Default is used for the `default` value in ConfigFile's `get`.

    Previously, the default value for `get` was None. However, then
    the user cannot have `get` return a default value of None. So this
    class is used instead to get around that limitation.
    """

    def __init__(self, value):
        self.value = value

    def __repr__(self):
        return "Default Value: {} ({})".format(self.value, type(self.value))