Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/icalendar/prop/unknown.py: 91%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

11 statements  

1"""UNKNOWN values from :rfc:`7265`.""" 

2 

3from typing import ClassVar 

4 

5from icalendar.compatibility import Self 

6from icalendar.prop.text import vText 

7 

8 

9class vUnknown(vText): 

10 """This is text but the VALUE parameter is unknown. 

11 

12 Since :rfc:`7265`, it is important to record if values are unknown. 

13 For :rfc:`5545`, we could just assume TEXT. 

14 """ 

15 

16 default_value: ClassVar[str] = "UNKNOWN" 

17 

18 @classmethod 

19 def examples(cls) -> list[Self]: 

20 """Examples of vUnknown.""" 

21 return [vUnknown("Some property text.")] 

22 

23 from icalendar.param import VALUE 

24 

25 

26__all__ = ["vUnknown"]