Check if a parameter is a Python module? April 3, 2023 by Tarik from types import ModuleType isinstance(obj, ModuleType)