"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "numpy/typing/__init__.py" between
numpy-1.21.0.tar.gz and numpy-1.21.1.tar.gz

About: NumPy is the fundamental package for scientific computing with Python.

__init__.py  (numpy-1.21.0):__init__.py  (numpy-1.21.1)
skipping to change at line 164 skipping to change at line 164
0D-array -> scalar cast, then one can consider manually remedying the 0D-array -> scalar cast, then one can consider manually remedying the
situation with either `typing.cast` or a ``# type: ignore`` comment. situation with either `typing.cast` or a ``# type: ignore`` comment.
API API
--- ---
""" """
# NOTE: The API section will be appended with additional entries # NOTE: The API section will be appended with additional entries
# further down in this file # further down in this file
from typing import TYPE_CHECKING, List from typing import TYPE_CHECKING, List, Any
if TYPE_CHECKING: if TYPE_CHECKING:
import sys import sys
if sys.version_info >= (3, 8): if sys.version_info >= (3, 8):
from typing import final from typing import final
else: else:
from typing_extensions import final from typing_extensions import final
else: else:
def final(f): return f def final(f): return f
skipping to change at line 365 skipping to change at line 365
if TYPE_CHECKING: if TYPE_CHECKING:
from ._ufunc import ( from ._ufunc import (
_UFunc_Nin1_Nout1, _UFunc_Nin1_Nout1,
_UFunc_Nin2_Nout1, _UFunc_Nin2_Nout1,
_UFunc_Nin1_Nout2, _UFunc_Nin1_Nout2,
_UFunc_Nin2_Nout2, _UFunc_Nin2_Nout2,
_GUFunc_Nin2_Nout1, _GUFunc_Nin2_Nout1,
) )
else: else:
_UFunc_Nin1_Nout1 = NotImplemented _UFunc_Nin1_Nout1 = Any
_UFunc_Nin2_Nout1 = NotImplemented _UFunc_Nin2_Nout1 = Any
_UFunc_Nin1_Nout2 = NotImplemented _UFunc_Nin1_Nout2 = Any
_UFunc_Nin2_Nout2 = NotImplemented _UFunc_Nin2_Nout2 = Any
_GUFunc_Nin2_Nout1 = NotImplemented _GUFunc_Nin2_Nout1 = Any
# Clean up the namespace # Clean up the namespace
del TYPE_CHECKING, final, List del TYPE_CHECKING, final, List, Any
if __doc__ is not None: if __doc__ is not None:
from ._add_docstring import _docstrings from ._add_docstring import _docstrings
__doc__ += _docstrings __doc__ += _docstrings
__doc__ += '\n.. autoclass:: numpy.typing.NBitBase\n' __doc__ += '\n.. autoclass:: numpy.typing.NBitBase\n'
del _docstrings del _docstrings
from numpy._pytesttester import PytestTester from numpy._pytesttester import PytestTester
test = PytestTester(__name__) test = PytestTester(__name__)
del PytestTester del PytestTester
 End of changes. 3 change blocks. 
7 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)