istype

emlib.misc.istype(obj, *types)[source]

Examples:

>>> istype(1, int, float)
True
>>> istype((4, 0.5), (int, float))
True
>>> istype([4, 3], [int])
True
>>> istype({"foo": 4, "bar": 3}, {str:int})
True
Return type:

bool