Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/prompt_toolkit/styles/__init__.py: 100%

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

9 statements  

1""" 

2Styling for prompt_toolkit applications. 

3""" 

4 

5from __future__ import annotations 

6 

7from .base import ( 

8 ANSI_COLOR_NAMES, 

9 DEFAULT_ATTRS, 

10 Attrs, 

11 BaseStyle, 

12 DummyStyle, 

13 DynamicStyle, 

14) 

15from .defaults import default_pygments_style, default_ui_style 

16from .named_colors import NAMED_COLORS 

17from .pygments import ( 

18 pygments_token_to_classname, 

19 style_from_pygments_cls, 

20 style_from_pygments_dict, 

21) 

22from .style import Priority, Style, merge_styles, parse_color 

23from .style_transformation import ( 

24 AdjustBrightnessStyleTransformation, 

25 ConditionalStyleTransformation, 

26 DummyStyleTransformation, 

27 DynamicStyleTransformation, 

28 ReverseStyleTransformation, 

29 SetDefaultColorStyleTransformation, 

30 StyleTransformation, 

31 SwapLightAndDarkStyleTransformation, 

32 merge_style_transformations, 

33) 

34 

35__all__ = [ 

36 # Base. 

37 "Attrs", 

38 "DEFAULT_ATTRS", 

39 "ANSI_COLOR_NAMES", 

40 "BaseStyle", 

41 "DummyStyle", 

42 "DynamicStyle", 

43 # Defaults. 

44 "default_ui_style", 

45 "default_pygments_style", 

46 # Style. 

47 "Style", 

48 "Priority", 

49 "merge_styles", 

50 "parse_color", 

51 # Style transformation. 

52 "StyleTransformation", 

53 "SwapLightAndDarkStyleTransformation", 

54 "ReverseStyleTransformation", 

55 "SetDefaultColorStyleTransformation", 

56 "AdjustBrightnessStyleTransformation", 

57 "DummyStyleTransformation", 

58 "ConditionalStyleTransformation", 

59 "DynamicStyleTransformation", 

60 "merge_style_transformations", 

61 # Pygments. 

62 "style_from_pygments_cls", 

63 "style_from_pygments_dict", 

64 "pygments_token_to_classname", 

65 # Named colors. 

66 "NAMED_COLORS", 

67]