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 

3 

4from typing import ClassVar 

5 

6from icalendar.compatibility import Self 

7from icalendar.prop.text import vText 

8 

9 

10class vUnknown(vText): 

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

12 

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

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

15 """ 

16 

17 default_value: ClassVar[str] = "UNKNOWN" 

18 

19 @classmethod 

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

21 """Examples of vUnknown.""" 

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

23 

24 from icalendar.param import VALUE 

25 

26__all__ = ["vUnknown"]