• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!-- Generated with Stardoc: http://skydoc.bazel.build -->
2
3Skylib module containing functions checking types.
4
5<a id="types.is_bool"></a>
6
7## types.is_bool
8
9<pre>
10types.is_bool(<a href="#types.is_bool-v">v</a>)
11</pre>
12
13Returns True if v is an instance of a bool.
14
15**PARAMETERS**
16
17
18| Name  | Description | Default Value |
19| :------------- | :------------- | :------------- |
20| <a id="types.is_bool-v"></a>v |  The value whose type should be checked.   |  none |
21
22**RETURNS**
23
24True if v is an instance of a bool, False otherwise.
25
26
27<a id="types.is_depset"></a>
28
29## types.is_depset
30
31<pre>
32types.is_depset(<a href="#types.is_depset-v">v</a>)
33</pre>
34
35Returns True if v is an instance of a `depset`.
36
37**PARAMETERS**
38
39
40| Name  | Description | Default Value |
41| :------------- | :------------- | :------------- |
42| <a id="types.is_depset-v"></a>v |  The value whose type should be checked.   |  none |
43
44**RETURNS**
45
46True if v is an instance of a `depset`, False otherwise.
47
48
49<a id="types.is_dict"></a>
50
51## types.is_dict
52
53<pre>
54types.is_dict(<a href="#types.is_dict-v">v</a>)
55</pre>
56
57Returns True if v is an instance of a dict.
58
59**PARAMETERS**
60
61
62| Name  | Description | Default Value |
63| :------------- | :------------- | :------------- |
64| <a id="types.is_dict-v"></a>v |  The value whose type should be checked.   |  none |
65
66**RETURNS**
67
68True if v is an instance of a dict, False otherwise.
69
70
71<a id="types.is_function"></a>
72
73## types.is_function
74
75<pre>
76types.is_function(<a href="#types.is_function-v">v</a>)
77</pre>
78
79Returns True if v is an instance of a function.
80
81**PARAMETERS**
82
83
84| Name  | Description | Default Value |
85| :------------- | :------------- | :------------- |
86| <a id="types.is_function-v"></a>v |  The value whose type should be checked.   |  none |
87
88**RETURNS**
89
90True if v is an instance of a function, False otherwise.
91
92
93<a id="types.is_int"></a>
94
95## types.is_int
96
97<pre>
98types.is_int(<a href="#types.is_int-v">v</a>)
99</pre>
100
101Returns True if v is an instance of a signed integer.
102
103**PARAMETERS**
104
105
106| Name  | Description | Default Value |
107| :------------- | :------------- | :------------- |
108| <a id="types.is_int-v"></a>v |  The value whose type should be checked.   |  none |
109
110**RETURNS**
111
112True if v is an instance of a signed integer, False otherwise.
113
114
115<a id="types.is_list"></a>
116
117## types.is_list
118
119<pre>
120types.is_list(<a href="#types.is_list-v">v</a>)
121</pre>
122
123Returns True if v is an instance of a list.
124
125**PARAMETERS**
126
127
128| Name  | Description | Default Value |
129| :------------- | :------------- | :------------- |
130| <a id="types.is_list-v"></a>v |  The value whose type should be checked.   |  none |
131
132**RETURNS**
133
134True if v is an instance of a list, False otherwise.
135
136
137<a id="types.is_none"></a>
138
139## types.is_none
140
141<pre>
142types.is_none(<a href="#types.is_none-v">v</a>)
143</pre>
144
145Returns True if v has the type of None.
146
147**PARAMETERS**
148
149
150| Name  | Description | Default Value |
151| :------------- | :------------- | :------------- |
152| <a id="types.is_none-v"></a>v |  The value whose type should be checked.   |  none |
153
154**RETURNS**
155
156True if v is None, False otherwise.
157
158
159<a id="types.is_set"></a>
160
161## types.is_set
162
163<pre>
164types.is_set(<a href="#types.is_set-v">v</a>)
165</pre>
166
167Returns True if v is a set created by sets.make().
168
169**PARAMETERS**
170
171
172| Name  | Description | Default Value |
173| :------------- | :------------- | :------------- |
174| <a id="types.is_set-v"></a>v |  The value whose type should be checked.   |  none |
175
176**RETURNS**
177
178True if v was created by sets.make(), False otherwise.
179
180
181<a id="types.is_string"></a>
182
183## types.is_string
184
185<pre>
186types.is_string(<a href="#types.is_string-v">v</a>)
187</pre>
188
189Returns True if v is an instance of a string.
190
191**PARAMETERS**
192
193
194| Name  | Description | Default Value |
195| :------------- | :------------- | :------------- |
196| <a id="types.is_string-v"></a>v |  The value whose type should be checked.   |  none |
197
198**RETURNS**
199
200True if v is an instance of a string, False otherwise.
201
202
203<a id="types.is_tuple"></a>
204
205## types.is_tuple
206
207<pre>
208types.is_tuple(<a href="#types.is_tuple-v">v</a>)
209</pre>
210
211Returns True if v is an instance of a tuple.
212
213**PARAMETERS**
214
215
216| Name  | Description | Default Value |
217| :------------- | :------------- | :------------- |
218| <a id="types.is_tuple-v"></a>v |  The value whose type should be checked.   |  none |
219
220**RETURNS**
221
222True if v is an instance of a tuple, False otherwise.
223
224
225