Runtime Utility Modules
types
Expose runtime type names, class-creation utilities and helper types such as read-only mapping proxies and simple attribute namespaces.
Formal Syntax & Structure
python syntaxpython
typesReturn Value
module
Module object accessed through import.
Working Example
Example Snippetpython
import typesdef f(): passprint(isinstance(f,types.FunctionType))