Initial configuration commit
This commit is contained in:
commit
31c8abea59
266 changed files with 780274 additions and 0 deletions
28
typings/numpy/_utils/__init__.pyi
Normal file
28
typings/numpy/_utils/__init__.pyi
Normal file
|
@ -0,0 +1,28 @@
|
|||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
from ._convertions import asbytes, asunicode
|
||||
|
||||
"""
|
||||
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): # -> (func: Unknown) -> Unknown:
|
||||
"""Private decorator for overriding __module__ on a function or class.
|
||||
|
||||
Example usage::
|
||||
|
||||
@set_module('numpy')
|
||||
def example():
|
||||
pass
|
||||
|
||||
assert example.__module__ == 'numpy'
|
||||
"""
|
||||
...
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue