Server IP : 192.64.118.117 / Your IP : 18.222.215.20 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib64/python3.11/site-packages/numpy/_utils/ |
Upload File : |
""" 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