PHP 8.2.30
Preview: __init__.py Size: 677 B
//opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/_utils/__init__.py

"""
This is a module for defining private helpers which do not depend on the
rest of NumPy.

Everything in here must be self-contained so that it can be
imported anywhere else without creating circular imports.
If a utility requires the import of NumPy, it probably belongs
in ``numpy.core``.
"""


def set_module(module):
    """Private decorator for overriding __module__ on a function or class.

    Example usage::

        @set_module('numpy')
        def example():
            pass

        assert example.__module__ == 'numpy'
    """
    def decorator(func):
        if module is not None:
            func.__module__ = module
        return func
    return decorator

Directory Contents

Dirs: 1 × Files: 3

Name Size Perms Modified Actions
- drwxr-xr-x 2026-02-06 08:07:28
Edit Download
7.27 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
13.74 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
677 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).