Coverage for typed_stream/_impl/_default_value.py: 100%
7 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-12 21:24 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-12 21:24 +0000
1# Licensed under the EUPL-1.2 or later.
2# You may obtain a copy of the licence in all the official languages of the
3# European Union at https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
5"""Defaults for arguments."""
7from __future__ import annotations
9import typing
11__all__ = (
12 "DEFAULT_VALUE",
13 "DefaultValueType",
14)
17@typing.final
18class DefaultValueType:
19 """Class to use as default when None is a valid value."""
21 __slots__ = ()
24DEFAULT_VALUE: typing.Final[DefaultValueType] = DefaultValueType()