Module check_types
source code
Special module for checking types.
|
file = None
hash(x)
|
|
io_module = True
|
|
__package__ = None
hash(x)
|
Imports:
IOBase,
float32,
float64,
ndarray,
float16,
float128
Check if the given Python object is a file.
- Parameters:
obj (anything) - The Python object.
- Returns: bool
- True if the object is a file, False otherwise.
|
Check if the given number is a Python or numpy float.
- Parameters:
num (anything.) - The number to check.
- Returns: bool
- True if the number is a float, False otherwise.
|
Check if the given Python object is a unicode string.
- Parameters:
obj (anything) - The Python object.
- Returns: bool
- True if the object is a unicode string, False otherwise.
|