anyconfig.utils.detectors¶
Functions to detect something.
- anyconfig.utils.detectors.is_primitive_type(obj)¶
Test if given object is a primitive type.
- Return type:
TypeGuard[Union[bool,int,float,str,bytes]]
- anyconfig.utils.detectors.is_iterable(obj)¶
Test if given object is an iterable object.
- Return type:
TypeGuard[Iterable]
- anyconfig.utils.detectors.is_dict_like(obj)¶
Test if given object
objis an dict.- Return type:
TypeGuard[dict]
- anyconfig.utils.detectors.is_list_like(obj)¶
Test if given object
objis a list or -like one.- Return type:
TypeGuard[Iterable]