diff options
| author | Sebastian Berg <sebastianb@nvidia.com> | 2022-11-25 14:05:45 +0100 |
|---|---|---|
| committer | Sebastian Berg <sebastianb@nvidia.com> | 2022-11-25 14:05:45 +0100 |
| commit | cbecc96b62477890174ae91433c4c9c28cc7765b (patch) | |
| tree | 3638aae20b09dd7fb9be95446f9d060fe4d11f7a | |
| parent | dab75729662b1335d714a3b5f500ee7f2914a21d (diff) | |
| download | numpy-cbecc96b62477890174ae91433c4c9c28cc7765b.tar.gz | |
STY: Fix indentation of _utils
| -rw-r--r-- | numpy/_utils/__init__.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/numpy/_utils/__init__.py b/numpy/_utils/__init__.py index 76fcddaad..60703f145 100644 --- a/numpy/_utils/__init__.py +++ b/numpy/_utils/__init__.py @@ -10,18 +10,18 @@ in ``numpy.core``. def set_module(module): - """Private decorator for overriding __module__ on a function or class. + """Private decorator for overriding __module__ on a function or class. - Example usage:: + Example usage:: - @set_module('numpy') - def example(): - pass + @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 + assert example.__module__ == 'numpy' + """ + def decorator(func): + if module is not None: + func.__module__ = module + return func + return decorator |
