def set_module(module_name: str):
    """
    A decorator that sets the ``__module__`` of the object.

    Usage example:

    .. code-block:: python

        @set_module("package.subpackage")
        class TestClass(Injector):
            pass

    :param module_name: The desired value for ``__module__``.
    """

    def _set_module(func):
        func.__module__ = module_name
        return func

    return _set_module