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

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 

4 

5"""Defaults for arguments.""" 

6 

7from __future__ import annotations 

8 

9import typing 

10 

11__all__ = ( 

12 "DEFAULT_VALUE", 

13 "DefaultValueType", 

14) 

15 

16 

17@typing.final 

18class DefaultValueType: 

19 """Class to use as default when None is a valid value.""" 

20 

21 __slots__ = () 

22 

23 

24DEFAULT_VALUE: typing.Final[DefaultValueType] = DefaultValueType()