Skylib module containing functions checking types.

Macros and Functions

types.is_list

Returns True if v is an instance of a list.

v

The value whose type should be checked.


types.is_string

Returns True if v is an instance of a string.

v

The value whose type should be checked.


types.is_bool

Returns True if v is an instance of a bool.

v

The value whose type should be checked.


types.is_none

Returns True if v has the type of None.

v

The value whose type should be checked.


types.is_int

Returns True if v is an instance of a signed integer.

v

The value whose type should be checked.


types.is_tuple

Returns True if v is an instance of a tuple.

v

The value whose type should be checked.


types.is_dict

Returns True if v is an instance of a dict.

v

The value whose type should be checked.


types.is_function

Returns True if v is an instance of a function.

v

The value whose type should be checked.


types.is_depset

Returns True if v is an instance of a depset.

v

The value whose type should be checked.


types.is_set

Returns True if v is a set created by sets.make().

v

The value whose type should be checked.