Robot Framework
libdoc_data.py
Go to the documentation of this file.
1 
22 
23 from datetime import date
24 from enum import Enum
25 from typing import TypedDict, Union
26 
27 from robot.api.deco import keyword, not_keyword
28 
29 
30 not_keyword(TypedDict)
31 
32 
33 @not_keyword
34 
35 def parse_date(value: str):
36  d, m, y = [int(v) for v in value.split('.')]
37  return date(y, m, d)
38 
39 
40 
41 class Direction(Enum):
42  UP = 1
43  DOWN = 2
44  LEFT = 3
45  RIGHT = 4
46 
47 
48 
49 class Point(TypedDict):
50  x: int
51  y: int
52 
53 
54 class date2(date):
55  pass
56 
57 
58 ROBOT_LIBRARY_CONVERTERS = {date: parse_date}
59 
60 
61 
62 def type_hints(a: int, b: Direction, c: Point, d: date, e: bool = True, f: Union[int, date] = None):
63  pass
64 
65 
66 def type_aliases(a: date, b: date2):
67  pass
68 
69 
70 def int10(i: int):
71  pass
72 
73 
74 int1 = int2 = int3 = int4 = int5 = int6 = int7 = int8 = int9 = int10
75 
76 
77 
78 def one_paragraph(one):
79 
80 
81 
91 def multiple_paragraphs(one, two, three='default'):
92 
93 
94 
103 
104 
105 
114 
115 
116 
122 def lists(*list):
123 
124 
125 
131 def hr():
132 
133 
134 
141 def links():
142 
143 
144 
152 def images():
153 
154 
155 @keyword('Nön-ÄSCÏÏ', tags=['Nön', 'äscïï', 'tägß'])
156 
157 def non_ascii(ärg='ööööö'):
158 
159 
160 @keyword('Special ½!"#¤%&/()=?<|>+-_.!~*\'() chars',
161  tags=['½!"#¤%&/()=?', "<|>+-_.!~*\'()"])
162 
164 
165 
166 
Move direction.
Definition: libdoc_data.py:41
Pointless point.
Definition: libdoc_data.py:49
def int10(int i)
Definition: libdoc_data.py:70
def non_ascii(ärg='ööööö')
Älsö döc häs nön-äscïï stüff.
Definition: libdoc_data.py:157
def one_paragraph(one)
Hello, world!
Definition: libdoc_data.py:78
def parse_date(str value)
Date in format dd.mm.yyyy.
Definition: libdoc_data.py:35
def images()
https://github.com/robotframework/visual-identity/raw/master/logo/robot-framework....
Definition: libdoc_data.py:152
def lists(*list)
Definition: libdoc_data.py:122
def zzz_long_documentation()
Last keyword has a bit longer documentation to make sure page moves when testing linking to keywords.
Definition: libdoc_data.py:236
def tables_alone()
| a | b | c | | 1st | table | here |
Definition: libdoc_data.py:102
def type_hints(int a, Direction b, Point c, date d, bool e=True, Union[int, date] f=None)
We use integer, date, Direction, and many other types.
Definition: libdoc_data.py:62
def multiple_paragraphs(one, two, three='default')
Hello, world!
Definition: libdoc_data.py:91
def preformatted()
| First block | has two lines
Definition: libdoc_data.py:113
def special_chars()
Also doc has ½!"#¤%&/()=?<|>+-_.
Definition: libdoc_data.py:163
def type_aliases(date a, date2 b)
Definition: libdoc_data.py:66
def keyword(name=None, tags=(), types=())
Decorator to set custom name, tags and argument types to keywords.
Definition: deco.py:86
def not_keyword(func)
Decorator to disable exposing functions or methods as keywords.
Definition: deco.py:36