mirror of
https://github.com/bazelbuild/bazel-skylib
synced 2024-11-28 08:43:51 +00:00
eabe5f7fe9
Co-authored-by: Alexandre Rostovtsev <arostovtsev@google.com> (merge conflict fixes)
3.3 KiB
Executable file
3.3 KiB
Executable file
types.is_list
types.is_list(v)
Returns True if v is an instance of a list.
PARAMETERS
Name | Description | Default Value |
---|---|---|
v | The value whose type should be checked. | none |
types.is_string
types.is_string(v)
Returns True if v is an instance of a string.
PARAMETERS
Name | Description | Default Value |
---|---|---|
v | The value whose type should be checked. | none |
types.is_bool
types.is_bool(v)
Returns True if v is an instance of a bool.
PARAMETERS
Name | Description | Default Value |
---|---|---|
v | The value whose type should be checked. | none |
types.is_none
types.is_none(v)
Returns True if v has the type of None.
PARAMETERS
Name | Description | Default Value |
---|---|---|
v | The value whose type should be checked. | none |
types.is_int
types.is_int(v)
Returns True if v is an instance of a signed integer.
PARAMETERS
Name | Description | Default Value |
---|---|---|
v | The value whose type should be checked. | none |
types.is_tuple
types.is_tuple(v)
Returns True if v is an instance of a tuple.
PARAMETERS
Name | Description | Default Value |
---|---|---|
v | The value whose type should be checked. | none |
types.is_dict
types.is_dict(v)
Returns True if v is an instance of a dict.
PARAMETERS
Name | Description | Default Value |
---|---|---|
v | The value whose type should be checked. | none |
types.is_function
types.is_function(v)
Returns True if v is an instance of a function.
PARAMETERS
Name | Description | Default Value |
---|---|---|
v | The value whose type should be checked. | none |
types.is_depset
types.is_depset(v)
Returns True if v is an instance of a depset
.
PARAMETERS
Name | Description | Default Value |
---|---|---|
v | The value whose type should be checked. | none |
types.is_set
types.is_set(v)
Returns True if v is a set created by sets.make().
PARAMETERS
Name | Description | Default Value |
---|---|---|
v | The value whose type should be checked. | none |