anhtld commited on
Commit
2420cb7
·
verified ·
1 Parent(s): f165d46

auto-sync 2026-07-02T13:37:00Z workspace (part 10)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/INSTALLER +1 -0
  2. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/METADATA +139 -0
  3. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/RECORD +0 -0
  4. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/WHEEL +5 -0
  5. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/entry_points.txt +13 -0
  6. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/LICENSE.txt +30 -0
  7. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/include/numpy/libdivide/LICENSE.txt +21 -0
  8. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/common/pythoncapi-compat/COPYING +14 -0
  9. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/highway/LICENSE +371 -0
  10. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/multiarray/dragon4_LICENSE.txt +27 -0
  11. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/npysort/x86-simd-sort/LICENSE.md +28 -0
  12. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/umath/svml/LICENSE +30 -0
  13. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/fft/pocketfft/LICENSE.md +25 -0
  14. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/linalg/lapack_lite/LICENSE.txt +48 -0
  15. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/ma/LICENSE +24 -0
  16. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/LICENSE.md +71 -0
  17. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/distributions/LICENSE.md +61 -0
  18. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/mt19937/LICENSE.md +61 -0
  19. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/pcg64/LICENSE.md +22 -0
  20. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/philox/LICENSE.md +31 -0
  21. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/sfc64/LICENSE.md +27 -0
  22. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/splitmix64/LICENSE.md +9 -0
  23. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/nditer.py +4 -0
  24. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/numeric.py +90 -0
  25. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/numerictypes.py +17 -0
  26. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/random.py +1498 -0
  27. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/recfunctions.py +164 -0
  28. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/scalars.py +249 -0
  29. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/shape.py +19 -0
  30. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/simple.py +170 -0
  31. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/ufunc_config.py +64 -0
  32. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/ufunclike.py +52 -0
  33. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/ufuncs.py +16 -0
  34. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/warnings_and_errors.py +6 -0
  35. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arithmetic.pyi +719 -0
  36. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/array_api_info.pyi +70 -0
  37. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/array_constructors.pyi +279 -0
  38. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arraypad.pyi +27 -0
  39. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arrayprint.pyi +25 -0
  40. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arraysetops.pyi +74 -0
  41. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arrayterator.pyi +27 -0
  42. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/bitwise_ops.pyi +166 -0
  43. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/char.pyi +225 -0
  44. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/chararray.pyi +138 -0
  45. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/comparisons.pyi +264 -0
  46. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/constants.pyi +14 -0
  47. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/ctypeslib.pyi +81 -0
  48. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/datasource.pyi +23 -0
  49. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/dtype.pyi +132 -0
  50. workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/einsumfunc.pyi +39 -0
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/METADATA ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.2
2
+ Name: numpy
3
+ Version: 2.4.2+computecanada
4
+ Summary: Fundamental package for array computing in Python
5
+ Description-Content-Type: text/markdown
6
+ Classifier: Development Status :: 5 - Production/Stable
7
+ Classifier: Intended Audience :: Science/Research
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: Programming Language :: C
10
+ Classifier: Programming Language :: Python
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Programming Language :: Python :: Implementation :: CPython
18
+ Classifier: Topic :: Software Development
19
+ Classifier: Topic :: Scientific/Engineering
20
+ Classifier: Typing :: Typed
21
+ Classifier: Operating System :: Microsoft :: Windows
22
+ Classifier: Operating System :: POSIX
23
+ Classifier: Operating System :: Unix
24
+ Classifier: Operating System :: MacOS
25
+ Author: Travis E. Oliphant et al.
26
+ Maintainer-email: NumPy Developers <numpy-discussion@python.org>
27
+ Project-URL: homepage, https://numpy.org
28
+ Project-URL: documentation, https://numpy.org/doc/
29
+ Project-URL: source, https://github.com/numpy/numpy
30
+ Project-URL: download, https://pypi.org/project/numpy/#files
31
+ Project-URL: tracker, https://github.com/numpy/numpy/issues
32
+ Project-URL: release notes, https://numpy.org/doc/stable/release
33
+ Requires-Python: >=3.11
34
+ License-File: LICENSE.txt
35
+ License-File: numpy/_core/include/numpy/libdivide/LICENSE.txt
36
+ License-File: numpy/_core/src/common/pythoncapi-compat/COPYING
37
+ License-File: numpy/_core/src/highway/LICENSE
38
+ License-File: numpy/_core/src/multiarray/dragon4_LICENSE.txt
39
+ License-File: numpy/_core/src/npysort/x86-simd-sort/LICENSE.md
40
+ License-File: numpy/_core/src/umath/svml/LICENSE
41
+ License-File: numpy/fft/pocketfft/LICENSE.md
42
+ License-File: numpy/linalg/lapack_lite/LICENSE.txt
43
+ License-File: numpy/ma/LICENSE
44
+ License-File: numpy/random/LICENSE.md
45
+ License-File: numpy/random/src/distributions/LICENSE.md
46
+ License-File: numpy/random/src/mt19937/LICENSE.md
47
+ License-File: numpy/random/src/pcg64/LICENSE.md
48
+ License-File: numpy/random/src/philox/LICENSE.md
49
+ License-File: numpy/random/src/sfc64/LICENSE.md
50
+ License-File: numpy/random/src/splitmix64/LICENSE.md
51
+ License-Expression: BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0
52
+
53
+ <h1 align="center">
54
+ <img src="https://raw.githubusercontent.com/numpy/numpy/main/branding/logo/primary/numpylogo.svg" width="300">
55
+ </h1><br>
56
+
57
+
58
+ [![Powered by NumFOCUS](https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A)](
59
+ https://numfocus.org)
60
+ [![PyPI Downloads](https://img.shields.io/pypi/dm/numpy.svg?label=PyPI%20downloads)](
61
+ https://pypi.org/project/numpy/)
62
+ [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/numpy.svg?label=Conda%20downloads)](
63
+ https://anaconda.org/conda-forge/numpy)
64
+ [![Stack Overflow](https://img.shields.io/badge/stackoverflow-Ask%20questions-blue.svg)](
65
+ https://stackoverflow.com/questions/tagged/numpy)
66
+ [![Nature Paper](https://img.shields.io/badge/DOI-10.1038%2Fs41586--020--2649--2-blue)](
67
+ https://doi.org/10.1038/s41586-020-2649-2)
68
+ [![LFX Health Score](https://insights.linuxfoundation.org/api/badge/health-score?project=numpy)](https://insights.linuxfoundation.org/project/numpy)
69
+ [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/numpy/numpy/badge)](https://securityscorecards.dev/viewer/?uri=github.com/numpy/numpy)
70
+ [![Typing](https://img.shields.io/pypi/types/numpy)](https://pypi.org/project/numpy/)
71
+
72
+
73
+ NumPy is the fundamental package for scientific computing with Python.
74
+
75
+ - **Website:** https://numpy.org
76
+ - **Documentation:** https://numpy.org/doc
77
+ - **Mailing list:** https://mail.python.org/mailman/listinfo/numpy-discussion
78
+ - **Source code:** https://github.com/numpy/numpy
79
+ - **Contributing:** https://numpy.org/devdocs/dev/index.html
80
+ - **Bug reports:** https://github.com/numpy/numpy/issues
81
+ - **Report a security vulnerability:** https://tidelift.com/docs/security
82
+
83
+ It provides:
84
+
85
+ - a powerful N-dimensional array object
86
+ - sophisticated (broadcasting) functions
87
+ - tools for integrating C/C++ and Fortran code
88
+ - useful linear algebra, Fourier transform, and random number capabilities
89
+
90
+ Testing:
91
+
92
+ NumPy requires `pytest` and `hypothesis`. Tests can then be run after installation with:
93
+
94
+ python -c "import numpy, sys; sys.exit(numpy.test() is False)"
95
+
96
+ Code of Conduct
97
+ ----------------------
98
+
99
+ NumPy is a community-driven open source project developed by a diverse group of
100
+ [contributors](https://numpy.org/teams/). The NumPy leadership has made a strong
101
+ commitment to creating an open, inclusive, and positive community. Please read the
102
+ [NumPy Code of Conduct](https://numpy.org/code-of-conduct/) for guidance on how to interact
103
+ with others in a way that makes our community thrive.
104
+
105
+ Call for Contributions
106
+ ----------------------
107
+
108
+ The NumPy project welcomes your expertise and enthusiasm!
109
+
110
+ Small improvements or fixes are always appreciated. If you are considering larger contributions
111
+ to the source code, please contact us through the [mailing
112
+ list](https://mail.python.org/mailman/listinfo/numpy-discussion) first.
113
+
114
+ Writing code isn’t the only way to contribute to NumPy. You can also:
115
+ - review pull requests
116
+ - help us stay on top of new and old issues
117
+ - develop tutorials, presentations, and other educational materials
118
+ - maintain and improve [our website](https://github.com/numpy/numpy.org)
119
+ - develop graphic design for our brand assets and promotional materials
120
+ - translate website content
121
+ - help with outreach and onboard new contributors
122
+ - write grant proposals and help with other fundraising efforts
123
+
124
+ For more information about the ways you can contribute to NumPy, visit [our website](https://numpy.org/contribute/).
125
+ If you’re unsure where to start or how your skills fit in, reach out! You can
126
+ ask on the mailing list or here, on GitHub, by opening a new issue or leaving a
127
+ comment on a relevant issue that is already open.
128
+
129
+ Our preferred channels of communication are all public, but if you’d like to
130
+ speak to us in private first, contact our community coordinators at
131
+ numpy-team@googlegroups.com or on Slack (write numpy-team@googlegroups.com for
132
+ an invitation).
133
+
134
+ We also have a biweekly community call, details of which are announced on the
135
+ mailing list. You are very welcome to join.
136
+
137
+ If you are new to contributing to open source, [this
138
+ guide](https://opensource.guide/how-to-contribute/) helps explain why, what,
139
+ and how to successfully get involved.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/RECORD ADDED
The diff for this file is too large to render. See raw diff
 
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/WHEEL ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: wheelfile 0.0.8
3
+ Root-Is-Purelib: true
4
+ Tag: cp311-cp311-linux_x86_64
5
+
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/entry_points.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [pkg_config]
2
+ numpy = numpy._core.lib.pkgconfig
3
+
4
+ [array_api]
5
+ numpy = numpy
6
+
7
+ [pyinstaller40]
8
+ hook-dirs = numpy:_pyinstaller_hooks_dir
9
+
10
+ [console_scripts]
11
+ f2py = numpy.f2py.f2py2e:main
12
+ numpy-config = numpy._configtool:main
13
+
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/LICENSE.txt ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2005-2025, NumPy Developers.
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are
6
+ met:
7
+
8
+ * Redistributions of source code must retain the above copyright
9
+ notice, this list of conditions and the following disclaimer.
10
+
11
+ * Redistributions in binary form must reproduce the above
12
+ copyright notice, this list of conditions and the following
13
+ disclaimer in the documentation and/or other materials provided
14
+ with the distribution.
15
+
16
+ * Neither the name of the NumPy Developers nor the names of any
17
+ contributors may be used to endorse or promote products derived
18
+ from this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/include/numpy/libdivide/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ zlib License
2
+ ------------
3
+
4
+ Copyright (C) 2010 - 2019 ridiculous_fish, <libdivide@ridiculousfish.com>
5
+ Copyright (C) 2016 - 2019 Kim Walisch, <kim.walisch@gmail.com>
6
+
7
+ This software is provided 'as-is', without any express or implied
8
+ warranty. In no event will the authors be held liable for any damages
9
+ arising from the use of this software.
10
+
11
+ Permission is granted to anyone to use this software for any purpose,
12
+ including commercial applications, and to alter it and redistribute it
13
+ freely, subject to the following restrictions:
14
+
15
+ 1. The origin of this software must not be misrepresented; you must not
16
+ claim that you wrote the original software. If you use this software
17
+ in a product, an acknowledgment in the product documentation would be
18
+ appreciated but is not required.
19
+ 2. Altered source versions must be plainly marked as such, and must not be
20
+ misrepresented as being the original software.
21
+ 3. This notice may not be removed or altered from any source distribution.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/common/pythoncapi-compat/COPYING ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ BSD Zero Clause License
2
+
3
+ Copyright Contributors to the pythoncapi_compat project.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/highway/LICENSE ADDED
@@ -0,0 +1,371 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ This project is primarily dual-licensed under your choice of either the Apache
2
+ License 2.0 or the BSD 3-Clause License.
3
+
4
+ The following files are licensed under different terms:
5
+ * hwy/contrib/random/random-inl.h: CC0 1.0 Universal
6
+
7
+ The full texts of all applicable licenses are included below, separated by
8
+ '---'.
9
+
10
+ --------------------------------------------------------------------------------
11
+ Apache License 2.0
12
+ --------------------------------------------------------------------------------
13
+
14
+ Apache License
15
+ Version 2.0, January 2004
16
+ http://www.apache.org/licenses/
17
+
18
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
19
+
20
+ 1. Definitions.
21
+
22
+ "License" shall mean the terms and conditions for use, reproduction,
23
+ and distribution as defined by Sections 1 through 9 of this document.
24
+
25
+ "Licensor" shall mean the copyright owner or entity authorized by
26
+ the copyright owner that is granting the License.
27
+
28
+ "Legal Entity" shall mean the union of the acting entity and all
29
+ other entities that control, are controlled by, or are under common
30
+ control with that entity. For the purposes of this definition,
31
+ "control" means (i) the power, direct or indirect, to cause the
32
+ direction or management of such entity, whether by contract or
33
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
34
+ outstanding shares, or (iii) beneficial ownership of such entity.
35
+
36
+ "You" (or "Your") shall mean an individual or Legal Entity
37
+ exercising permissions granted by this License.
38
+
39
+ "Source" form shall mean the preferred form for making modifications,
40
+ including but not limited to software source code, documentation
41
+ source, and configuration files.
42
+
43
+ "Object" form shall mean any form resulting from mechanical
44
+ transformation or translation of a Source form, including but
45
+ not limited to compiled object code, generated documentation,
46
+ and conversions to other media types.
47
+
48
+ "Work" shall mean the work of authorship, whether in Source or
49
+ Object form, made available under the License, as indicated by a
50
+ copyright notice that is included in or attached to the work
51
+ (an example is provided in the Appendix below).
52
+
53
+ "Derivative Works" shall mean any work, whether in Source or Object
54
+ form, that is based on (or derived from) the Work and for which the
55
+ editorial revisions, annotations, elaborations, or other modifications
56
+ represent, as a whole, an original work of authorship. For the purposes
57
+ of this License, Derivative Works shall not include works that remain
58
+ separable from, or merely link (or bind by name) to the interfaces of,
59
+ the Work and Derivative Works thereof.
60
+
61
+ "Contribution" shall mean any work of authorship, including
62
+ the original version of the Work and any modifications or additions
63
+ to that Work or Derivative Works thereof, that is intentionally
64
+ submitted to Licensor for inclusion in the Work by the copyright owner
65
+ or by an individual or Legal Entity authorized to submit on behalf of
66
+ the copyright owner. For the purposes of this definition, "submitted"
67
+ means any form of electronic, verbal, or written communication sent
68
+ to the Licensor or its representatives, including but not limited to
69
+ communication on electronic mailing lists, source code control systems,
70
+ and issue tracking systems that are managed by, or on behalf of, the
71
+ Licensor for the purpose of discussing and improving the Work, but
72
+ excluding communication that is conspicuously marked or otherwise
73
+ designated in writing by the copyright owner as "Not a Contribution."
74
+
75
+ "Contributor" shall mean Licensor and any individual or Legal Entity
76
+ on behalf of whom a Contribution has been received by Licensor and
77
+ subsequently incorporated within the Work.
78
+
79
+ 2. Grant of Copyright License. Subject to the terms and conditions of
80
+ this License, each Contributor hereby grants to You a perpetual,
81
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
82
+ copyright license to reproduce, prepare Derivative Works of,
83
+ publicly display, publicly perform, sublicense, and distribute the
84
+ Work and such Derivative Works in Source or Object form.
85
+
86
+ 3. Grant of Patent License. Subject to the terms and conditions of
87
+ this License, each Contributor hereby grants to You a perpetual,
88
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
89
+ (except as stated in this section) patent license to make, have made,
90
+ use, offer to sell, sell, import, and otherwise transfer the Work,
91
+ where such license applies only to those patent claims licensable
92
+ by such Contributor that are necessarily infringed by their
93
+ Contribution(s) alone or by combination of their Contribution(s)
94
+ with the Work to which such Contribution(s) was submitted. If You
95
+ institute patent litigation against any entity (including a
96
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
97
+ or a Contribution incorporated within the Work constitutes direct
98
+ or contributory patent infringement, then any patent licenses
99
+ granted to You under this License for that Work shall terminate
100
+ as of the date such litigation is filed.
101
+
102
+ 4. Redistribution. You may reproduce and distribute copies of the
103
+ Work or Derivative Works thereof in any medium, with or without
104
+ modifications, and in Source or Object form, provided that You
105
+ meet the following conditions:
106
+
107
+ (a) You must give any other recipients of the Work or
108
+ Derivative Works a copy of this License; and
109
+
110
+ (b) You must cause any modified files to carry prominent notices
111
+ stating that You changed the files; and
112
+
113
+ (c) You must retain, in the Source form of any Derivative Works
114
+ that You distribute, all copyright, patent, trademark, and
115
+ attribution notices from the Source form of the Work,
116
+ excluding those notices that do not pertain to any part of
117
+ the Derivative Works; and
118
+
119
+ (d) If the Work includes a "NOTICE" text file as part of its
120
+ distribution, then any Derivative Works that You distribute must
121
+ include a readable copy of the attribution notices contained
122
+ within such NOTICE file, excluding those notices that do not
123
+ pertain to any part of the Derivative Works, in at least one
124
+ of the following places: within a NOTICE text file distributed
125
+ as part of the Derivative Works; within the Source form or
126
+ documentation, if provided along with the Derivative Works; or,
127
+ within a display generated by the Derivative Works, if and
128
+ wherever such third-party notices normally appear. The contents
129
+ of the NOTICE file are for informational purposes only and
130
+ do not modify the License. You may add Your own attribution
131
+ notices within Derivative Works that You distribute, alongside
132
+ or as an addendum to the NOTICE text from the Work, provided
133
+ that such additional attribution notices cannot be construed
134
+ as modifying the License.
135
+
136
+ You may add Your own copyright statement to Your modifications and
137
+ may provide additional or different license terms and conditions
138
+ for use, reproduction, or distribution of Your modifications, or
139
+ for any such Derivative Works as a whole, provided Your use,
140
+ reproduction, and distribution of the Work otherwise complies with
141
+ the conditions stated in this License.
142
+
143
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
144
+ any Contribution intentionally submitted for inclusion in the Work
145
+ by You to the Licensor shall be under the terms and conditions of
146
+ this License, without any additional terms or conditions.
147
+ Notwithstanding the above, nothing herein shall supersede or modify
148
+ the terms of any separate license agreement you may have executed
149
+ with Licensor regarding such Contributions.
150
+
151
+ 6. Trademarks. This License does not grant permission to use the trade
152
+ names, trademarks, service marks, or product names of the Licensor,
153
+ except as required for reasonable and customary use in describing the
154
+ origin of the Work and reproducing the content of the NOTICE file.
155
+
156
+ 7. Disclaimer of Warranty. Unless required by applicable law or
157
+ agreed to in writing, Licensor provides the Work (and each
158
+ Contributor provides its Contributions) on an "AS IS" BASIS,
159
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
160
+ implied, including, without limitation, any warranties or conditions
161
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
162
+ PARTICULAR PURPOSE. You are solely responsible for determining the
163
+ appropriateness of using or redistributing the Work and assume any
164
+ risks associated with Your exercise of permissions under this License.
165
+
166
+ 8. Limitation of Liability. In no event and under no legal theory,
167
+ whether in tort (including negligence), contract, or otherwise,
168
+ unless required by applicable law (such as deliberate and grossly
169
+ negligent acts) or agreed to in writing, shall any Contributor be
170
+ liable to You for damages, including any direct, indirect, special,
171
+ incidental, or consequential damages of any character arising as a
172
+ result of this License or out of the use or inability to use the
173
+ Work (including but not limited to damages for loss of goodwill,
174
+ work stoppage, computer failure or malfunction, or any and all
175
+ other commercial damages or losses), even if such Contributor
176
+ has been advised of the possibility of such damages.
177
+
178
+ 9. Accepting Warranty or Additional Liability. While redistributing
179
+ the Work or Derivative Works thereof, You may choose to offer,
180
+ and charge a fee for, acceptance of support, warranty, indemnity,
181
+ or other liability obligations and/or rights consistent with this
182
+ License. However, in accepting such obligations, You may act only
183
+ on Your own behalf and on Your sole responsibility, not on behalf
184
+ of any other Contributor, and only if You agree to indemnify,
185
+ defend, and hold each Contributor harmless for any liability
186
+ incurred by, or claims asserted against, such Contributor by reason
187
+ of your accepting any such warranty or additional liability.
188
+
189
+ END OF TERMS AND CONDITIONS
190
+
191
+ APPENDIX: How to apply the Apache License to your work.
192
+
193
+ To apply the Apache License to your work, attach the following
194
+ boilerplate notice, with the fields enclosed by brackets "[]"
195
+ replaced with your own identifying information. (Don't include
196
+ the brackets!) The text should be enclosed in the appropriate
197
+ comment syntax for the file format. We also recommend that a
198
+ file or class name and description of purpose be included on the
199
+ same "printed page" as the copyright notice for easier
200
+ identification within third-party archives.
201
+
202
+ Copyright [yyyy] [name of copyright owner]
203
+
204
+ Licensed under the Apache License, Version 2.0 (the "License");
205
+ you may not use this file except in compliance with the License.
206
+ You may obtain a copy of the License at
207
+
208
+ http://www.apache.org/licenses/LICENSE-2.0
209
+
210
+ Unless required by applicable law or agreed to in writing, software
211
+ distributed under the License is distributed on an "AS IS" BASIS,
212
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
213
+ See the License for the specific language governing permissions and
214
+ limitations under the License.
215
+
216
+ --------------------------------------------------------------------------------
217
+ BSD 3-Clause License
218
+ --------------------------------------------------------------------------------
219
+
220
+ Copyright (c) The Highway Project Authors. All rights reserved.
221
+
222
+ Redistribution and use in source and binary forms, with or without modification,
223
+ are permitted provided that the following conditions are met:
224
+
225
+ 1. Redistributions of source code must retain the above copyright notice, this
226
+ list of conditions and the following disclaimer.
227
+
228
+ 2. Redistributions in binary form must reproduce the above copyright notice,
229
+ this list of conditions and the following disclaimer in the documentation
230
+ and/or other materials provided with the distribution.
231
+
232
+ 3. Neither the name of the copyright holder nor the names of its
233
+ contributors may be used to endorse or promote products derived from
234
+ this software without specific prior written permission.
235
+
236
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
237
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
238
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
239
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
240
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
241
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
242
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
243
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
244
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
245
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
246
+
247
+ --------------------------------------------------------------------------------
248
+ CC0 1.0 Universal
249
+ --------------------------------------------------------------------------------
250
+
251
+ Creative Commons Legal Code
252
+
253
+ CC0 1.0 Universal
254
+
255
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
256
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
257
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
258
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
259
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
260
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
261
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
262
+ HEREUNDER.
263
+
264
+ Statement of Purpose
265
+
266
+ The laws of most jurisdictions throughout the world automatically confer
267
+ exclusive Copyright and Related Rights (defined below) upon the creator
268
+ and subsequent owner(s) (each and all, an "owner") of an original work of
269
+ authorship and/or a database (each, a "Work").
270
+
271
+ Certain owners wish to permanently relinquish those rights to a Work for
272
+ the purpose of contributing to a commons of creative, cultural and
273
+ scientific works ("Commons") that the public can reliably and without fear
274
+ of later claims of infringement build upon, modify, incorporate in other
275
+ works, reuse and redistribute as freely as possible in any form whatsoever
276
+ and for any purposes, including without limitation commercial purposes.
277
+ These owners may contribute to the Commons to promote the ideal of a free
278
+ culture and the further production of creative, cultural and scientific
279
+ works, or to gain reputation or greater distribution for their Work in
280
+ part through the use and efforts of others.
281
+
282
+ For these and/or other purposes and motivations, and without any
283
+ expectation of additional consideration or compensation, the person
284
+ associating CC0 with a Work (the "Affirmer"), to the extent that he or she
285
+ is an owner of Copyright and Related Rights in the Work, voluntarily
286
+ elects to apply CC0 to the Work and publicly distribute the Work under its
287
+ terms, with knowledge of his or her Copyright and Related Rights in the
288
+ Work and the meaning and intended legal effect of CC0 on those rights.
289
+
290
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
291
+ protected by copyright and related or neighboring rights ("Copyright and
292
+ Related Rights"). Copyright and Related Rights include, but are not
293
+ limited to, the following:
294
+
295
+ i. the right to reproduce, adapt, distribute, perform, display,
296
+ communicate, and translate a Work;
297
+ ii. moral rights retained by the original author(s) and/or performer(s);
298
+ iii. publicity and privacy rights pertaining to a person's image or
299
+ likeness depicted in a Work;
300
+ iv. rights protecting against unfair competition in regards to a Work,
301
+ subject to the limitations in paragraph 4(a), below;
302
+ v. rights protecting the extraction, dissemination, use and reuse of data
303
+ in a Work;
304
+ vi. database rights (such as those arising under Directive 96/9/EC of the
305
+ European Parliament and of the Council of 11 March 1996 on the legal
306
+ protection of databases, and under any national implementation
307
+ thereof, including any amended or successor version of such
308
+ directive); and
309
+ vii. other similar, equivalent or corresponding rights throughout the
310
+ world based on applicable law or treaty, and any national
311
+ implementations thereof.
312
+
313
+ 2. Waiver. To the greatest extent permitted by, but not in contravention
314
+ of, applicable law, Affirmer hereby overtly, fully, permanently,
315
+ irrevocably and unconditionally waives, abandons, and surrenders all of
316
+ Affirmer's Copyright and Related Rights and associated claims and causes
317
+ of action, whether now known or unknown (including existing as well as
318
+ future claims and causes of action), in the Work (i) in all territories
319
+ worldwide, (ii) for the maximum duration provided by applicable law or
320
+ treaty (including future time extensions), (iii) in any current or future
321
+ medium and for any number of copies, and (iv) for any purpose whatsoever,
322
+ including without limitation commercial, advertising or promotional
323
+ purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
324
+ member of the public at large and to the detriment of Affirmer's heirs and
325
+ successors, fully intending that such Waiver shall not be subject to
326
+ revocation, rescission, cancellation, termination, or any other legal or
327
+ equitable action to disrupt the quiet enjoyment of the Work by the public
328
+ as contemplated by Affirmer's express Statement of Purpose.
329
+
330
+ 3. Public License Fallback. Should any part of the Waiver for any reason
331
+ be judged legally invalid or ineffective under applicable law, then the
332
+ Waiver shall be preserved to the maximum extent permitted taking into
333
+ account Affirmer's express Statement of Purpose. In addition, to the
334
+ extent the Waiver is so judged Affirmer hereby grants to each affected
335
+ person a royalty-free, non transferable, non sublicensable, non exclusive,
336
+ irrevocable and unconditional license to exercise Affirmer's Copyright and
337
+ Related Rights in the Work (i) in all territories worldwide, (ii) for the
338
+ maximum duration provided by applicable law or treaty (including future
339
+ time extensions), (iii) in any current or future medium and for any number
340
+ of copies, and (iv) for any purpose whatsoever, including without
341
+ limitation commercial, advertising or promotional purposes (the
342
+ "License"). The License shall be deemed effective as of the date CC0 was
343
+ applied by Affirmer to the Work. Should any part of the License for any
344
+ reason be judged legally invalid or ineffective under applicable law, such
345
+ partial invalidity or ineffectiveness shall not invalidate the remainder
346
+ of the License, and in such case Affirmer hereby affirms that he or she
347
+ will not (i) exercise any of his or her remaining Copyright and Related
348
+ Rights in the Work or (ii) assert any associated claims and causes of
349
+ action with respect to the Work, in either case contrary to Affirmer's
350
+ express Statement of Purpose.
351
+
352
+ 4. Limitations and Disclaimers.
353
+
354
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
355
+ surrendered, licensed or otherwise affected by this document.
356
+ b. Affirmer offers the Work as-is and makes no representations or
357
+ warranties of any kind concerning the Work, express, implied,
358
+ statutory or otherwise, including without limitation warranties of
359
+ title, merchantability, fitness for a particular purpose, non
360
+ infringement, or the absence of latent or other defects, accuracy, or
361
+ the present or absence of errors, whether or not discoverable, all to
362
+ the greatest extent permissible under applicable law.
363
+ c. Affirmer disclaims responsibility for clearing rights of other persons
364
+ that may apply to the Work or any use thereof, including without
365
+ limitation any person's Copyright and Related Rights in the Work.
366
+ Further, Affirmer disclaims responsibility for obtaining any necessary
367
+ consents, permissions or other rights required for any use of the
368
+ Work.
369
+ d. Affirmer understands and acknowledges that Creative Commons is not a
370
+ party to this document and has no duty or obligation with respect to
371
+ this CC0 or use of the Work.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/multiarray/dragon4_LICENSE.txt ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2014 Ryan Juckett
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to
5
+ deal in the Software without restriction, including without limitation the
6
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7
+ sell copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19
+ IN THE SOFTWARE.
20
+
21
+ dragon4.c|h h contains a modified version of Ryan Juckett's Dragon4
22
+ implementation, obtained from https://www.ryanjuckett.com,
23
+ which has been ported from C++ to C and which has
24
+ modifications specific to printing floats in numpy.
25
+
26
+ Ryan Juckett's original code was under the Zlib license; he gave numpy
27
+ permission to include it under the MIT license instead.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/npysort/x86-simd-sort/LICENSE.md ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2022, Intel. All rights reserved.
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/umath/svml/LICENSE ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2005-2021, NumPy Developers.
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are
6
+ met:
7
+
8
+ * Redistributions of source code must retain the above copyright
9
+ notice, this list of conditions and the following disclaimer.
10
+
11
+ * Redistributions in binary form must reproduce the above
12
+ copyright notice, this list of conditions and the following
13
+ disclaimer in the documentation and/or other materials provided
14
+ with the distribution.
15
+
16
+ * Neither the name of the NumPy Developers nor the names of any
17
+ contributors may be used to endorse or promote products derived
18
+ from this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/fft/pocketfft/LICENSE.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (C) 2010-2018 Max-Planck-Society
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification,
5
+ are permitted provided that the following conditions are met:
6
+
7
+ * Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+ * Redistributions in binary form must reproduce the above copyright notice, this
10
+ list of conditions and the following disclaimer in the documentation and/or
11
+ other materials provided with the distribution.
12
+ * Neither the name of the copyright holder nor the names of its contributors may
13
+ be used to endorse or promote products derived from this software without
14
+ specific prior written permission.
15
+
16
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
20
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
23
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/linalg/lapack_lite/LICENSE.txt ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 1992-2013 The University of Tennessee and The University
2
+ of Tennessee Research Foundation. All rights
3
+ reserved.
4
+ Copyright (c) 2000-2013 The University of California Berkeley. All
5
+ rights reserved.
6
+ Copyright (c) 2006-2013 The University of Colorado Denver. All rights
7
+ reserved.
8
+
9
+ $COPYRIGHT$
10
+
11
+ Additional copyrights may follow
12
+
13
+ $HEADER$
14
+
15
+ Redistribution and use in source and binary forms, with or without
16
+ modification, are permitted provided that the following conditions are
17
+ met:
18
+
19
+ - Redistributions of source code must retain the above copyright
20
+ notice, this list of conditions and the following disclaimer.
21
+
22
+ - Redistributions in binary form must reproduce the above copyright
23
+ notice, this list of conditions and the following disclaimer listed
24
+ in this license in the documentation and/or other materials
25
+ provided with the distribution.
26
+
27
+ - Neither the name of the copyright holders nor the names of its
28
+ contributors may be used to endorse or promote products derived from
29
+ this software without specific prior written permission.
30
+
31
+ The copyright holders provide no reassurances that the source code
32
+ provided does not infringe any patent, copyright, or any other
33
+ intellectual property rights of third parties. The copyright holders
34
+ disclaim any liability to any recipient for claims brought against
35
+ recipient by any third party for infringement of that parties
36
+ intellectual property rights.
37
+
38
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
39
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
40
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
41
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
42
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
43
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
44
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
45
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
46
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
47
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
48
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/ma/LICENSE ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ * Copyright (c) 2006, University of Georgia and Pierre G.F. Gerard-Marchant
2
+ * All rights reserved.
3
+ * Redistribution and use in source and binary forms, with or without
4
+ * modification, are permitted provided that the following conditions are met:
5
+ *
6
+ * * Redistributions of source code must retain the above copyright
7
+ * notice, this list of conditions and the following disclaimer.
8
+ * * Redistributions in binary form must reproduce the above copyright
9
+ * notice, this list of conditions and the following disclaimer in the
10
+ * documentation and/or other materials provided with the distribution.
11
+ * * Neither the name of the University of Georgia nor the
12
+ * names of its contributors may be used to endorse or promote products
13
+ * derived from this software without specific prior written permission.
14
+ *
15
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
16
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
19
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/LICENSE.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ **This software is dual-licensed under the The University of Illinois/NCSA
2
+ Open Source License (NCSA) and The 3-Clause BSD License**
3
+
4
+ # NCSA Open Source License
5
+ **Copyright (c) 2019 Kevin Sheppard. All rights reserved.**
6
+
7
+ Developed by: Kevin Sheppard (<kevin.sheppard@economics.ox.ac.uk>,
8
+ <kevin.k.sheppard@gmail.com>)
9
+ [http://www.kevinsheppard.com](http://www.kevinsheppard.com)
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
12
+ this software and associated documentation files (the "Software"), to deal with
13
+ the Software without restriction, including without limitation the rights to
14
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
15
+ of the Software, and to permit persons to whom the Software is furnished to do
16
+ so, subject to the following conditions:
17
+
18
+ Redistributions of source code must retain the above copyright notice, this
19
+ list of conditions and the following disclaimers.
20
+
21
+ Redistributions in binary form must reproduce the above copyright notice, this
22
+ list of conditions and the following disclaimers in the documentation and/or
23
+ other materials provided with the distribution.
24
+
25
+ Neither the names of Kevin Sheppard, nor the names of any contributors may be
26
+ used to endorse or promote products derived from this Software without specific
27
+ prior written permission.
28
+
29
+ **THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32
+ CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH
35
+ THE SOFTWARE.**
36
+
37
+
38
+ # 3-Clause BSD License
39
+ **Copyright (c) 2019 Kevin Sheppard. All rights reserved.**
40
+
41
+ Redistribution and use in source and binary forms, with or without
42
+ modification, are permitted provided that the following conditions are met:
43
+
44
+ 1. Redistributions of source code must retain the above copyright notice,
45
+ this list of conditions and the following disclaimer.
46
+
47
+ 2. Redistributions in binary form must reproduce the above copyright notice,
48
+ this list of conditions and the following disclaimer in the documentation
49
+ and/or other materials provided with the distribution.
50
+
51
+ 3. Neither the name of the copyright holder nor the names of its contributors
52
+ may be used to endorse or promote products derived from this software
53
+ without specific prior written permission.
54
+
55
+ **THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
56
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
57
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
58
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
59
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
60
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
61
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
62
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
63
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
64
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
65
+ THE POSSIBILITY OF SUCH DAMAGE.**
66
+
67
+ # Components
68
+
69
+ Many parts of this module have been derived from original sources,
70
+ often the algorithm's designer. Component licenses are located with
71
+ the component code.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/distributions/LICENSE.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## NumPy
2
+
3
+ Copyright (c) 2005-2017, NumPy Developers.
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are
8
+ met:
9
+
10
+ * Redistributions of source code must retain the above copyright
11
+ notice, this list of conditions and the following disclaimer.
12
+
13
+ * Redistributions in binary form must reproduce the above
14
+ copyright notice, this list of conditions and the following
15
+ disclaimer in the documentation and/or other materials provided
16
+ with the distribution.
17
+
18
+ * Neither the name of the NumPy Developers nor the names of any
19
+ contributors may be used to endorse or promote products derived
20
+ from this software without specific prior written permission.
21
+
22
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
+
34
+
35
+ ## Julia
36
+
37
+ The ziggurat methods were derived from Julia.
38
+
39
+ Copyright (c) 2009-2019: Jeff Bezanson, Stefan Karpinski, Viral B. Shah,
40
+ and other contributors:
41
+
42
+ https://github.com/JuliaLang/julia/contributors
43
+
44
+ Permission is hereby granted, free of charge, to any person obtaining
45
+ a copy of this software and associated documentation files (the
46
+ "Software"), to deal in the Software without restriction, including
47
+ without limitation the rights to use, copy, modify, merge, publish,
48
+ distribute, sublicense, and/or sell copies of the Software, and to
49
+ permit persons to whom the Software is furnished to do so, subject to
50
+ the following conditions:
51
+
52
+ The above copyright notice and this permission notice shall be
53
+ included in all copies or substantial portions of the Software.
54
+
55
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
56
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
57
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
58
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
59
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
60
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
61
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/mt19937/LICENSE.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MT19937
2
+
3
+ Copyright (c) 2003-2005, Jean-Sebastien Roy (js@jeannot.org)
4
+
5
+ The rk_random and rk_seed functions algorithms and the original design of
6
+ the Mersenne Twister RNG:
7
+
8
+ Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
9
+ All rights reserved.
10
+
11
+ Redistribution and use in source and binary forms, with or without
12
+ modification, are permitted provided that the following conditions
13
+ are met:
14
+
15
+ 1. Redistributions of source code must retain the above copyright
16
+ notice, this list of conditions and the following disclaimer.
17
+
18
+ 2. Redistributions in binary form must reproduce the above copyright
19
+ notice, this list of conditions and the following disclaimer in the
20
+ documentation and/or other materials provided with the distribution.
21
+
22
+ 3. The names of its contributors may not be used to endorse or promote
23
+ products derived from this software without specific prior written
24
+ permission.
25
+
26
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
29
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
30
+ OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
31
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
32
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
33
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
34
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
35
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37
+
38
+ Original algorithm for the implementation of rk_interval function from
39
+ Richard J. Wagner's implementation of the Mersenne Twister RNG, optimised by
40
+ Magnus Jonsson.
41
+
42
+ Constants used in the rk_double implementation by Isaku Wada.
43
+
44
+ Permission is hereby granted, free of charge, to any person obtaining a
45
+ copy of this software and associated documentation files (the
46
+ "Software"), to deal in the Software without restriction, including
47
+ without limitation the rights to use, copy, modify, merge, publish,
48
+ distribute, sublicense, and/or sell copies of the Software, and to
49
+ permit persons to whom the Software is furnished to do so, subject to
50
+ the following conditions:
51
+
52
+ The above copyright notice and this permission notice shall be included
53
+ in all copies or substantial portions of the Software.
54
+
55
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
56
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
57
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
58
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
59
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
60
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
61
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/pcg64/LICENSE.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PCG64
2
+
3
+ ## The MIT License
4
+
5
+ PCG Random Number Generation for C.
6
+
7
+ Copyright 2014 Melissa O'Neill <oneill@pcg-random.org>
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining
10
+ a copy of this software and associated documentation files (the "Software"),
11
+ to deal in the Software without restriction, including without limitation
12
+ the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in
15
+ all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
19
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
20
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/philox/LICENSE.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PHILOX
2
+
3
+ Copyright 2010-2012, D. E. Shaw Research.
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are
8
+ met:
9
+
10
+ * Redistributions of source code must retain the above copyright
11
+ notice, this list of conditions, and the following disclaimer.
12
+
13
+ * Redistributions in binary form must reproduce the above copyright
14
+ notice, this list of conditions, and the following disclaimer in the
15
+ documentation and/or other materials provided with the distribution.
16
+
17
+ * Neither the name of D. E. Shaw Research nor the names of its
18
+ contributors may be used to endorse or promote products derived from
19
+ this software without specific prior written permission.
20
+
21
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/sfc64/LICENSE.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SFC64
2
+
3
+ ## The MIT License
4
+
5
+ Adapted from a C++ implementation of Chris Doty-Humphrey's SFC PRNG.
6
+
7
+ https://gist.github.com/imneme/f1f7821f07cf76504a97f6537c818083
8
+
9
+ Copyright (c) 2018 Melissa E. O'Neill
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a
12
+ copy of this software and associated documentation files (the "Software"),
13
+ to deal in the Software without restriction, including without limitation
14
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
15
+ and/or sell copies of the Software, and to permit persons to whom the
16
+ Software is furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in
19
+ all copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27
+ DEALINGS IN THE SOFTWARE.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/splitmix64/LICENSE.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # SPLITMIX64
2
+
3
+ Written in 2015 by Sebastiano Vigna (vigna@acm.org)
4
+
5
+ To the extent possible under law, the author has dedicated all copyright
6
+ and related and neighboring rights to this software to the public domain
7
+ worldwide. This software is distributed without any warranty.
8
+
9
+ See <http://creativecommons.org/publicdomain/zero/1.0/>.
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/nditer.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ import numpy as np
2
+
3
+ arr = np.array([1])
4
+ np.nditer([arr, None])
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/numeric.py ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Tests for :mod:`numpy._core.numeric`.
3
+
4
+ Does not include tests which fall under ``array_constructors``.
5
+ """
6
+
7
+ from typing import Any
8
+
9
+ import numpy as np
10
+
11
+
12
+ class SubClass(np.ndarray[tuple[Any, ...], np.dtype[np.float64]]): ...
13
+
14
+
15
+ i8 = np.int64(1)
16
+
17
+ A = np.arange(27).reshape(3, 3, 3)
18
+ B = A.tolist()
19
+ C = np.empty((27, 27)).view(SubClass)
20
+
21
+ np.count_nonzero(i8)
22
+ np.count_nonzero(A)
23
+ np.count_nonzero(B)
24
+ np.count_nonzero(A, keepdims=True)
25
+ np.count_nonzero(A, axis=0)
26
+
27
+ np.isfortran(i8)
28
+ np.isfortran(A)
29
+
30
+ np.argwhere(i8)
31
+ np.argwhere(A)
32
+
33
+ np.flatnonzero(i8)
34
+ np.flatnonzero(A)
35
+
36
+ np.correlate(B[0][0], A.ravel(), mode="valid")
37
+ np.correlate(A.ravel(), A.ravel(), mode="same")
38
+
39
+ np.convolve(B[0][0], A.ravel(), mode="valid")
40
+ np.convolve(A.ravel(), A.ravel(), mode="same")
41
+
42
+ np.outer(i8, A)
43
+ np.outer(B, A)
44
+ np.outer(A, A)
45
+ np.outer(A, A, out=C)
46
+
47
+ np.tensordot(B, A)
48
+ np.tensordot(A, A)
49
+ np.tensordot(A, A, axes=0)
50
+ np.tensordot(A, A, axes=(0, 1))
51
+
52
+ np.isscalar(i8)
53
+ np.isscalar(A)
54
+ np.isscalar(B)
55
+
56
+ np.roll(A, 1)
57
+ np.roll(A, (1, 2))
58
+ np.roll(B, 1)
59
+
60
+ np.rollaxis(A, 0, 1)
61
+
62
+ np.moveaxis(A, 0, 1)
63
+ np.moveaxis(A, (0, 1), (1, 2))
64
+
65
+ np.cross(B, A)
66
+ np.cross(A, A)
67
+
68
+ np.indices([0, 1, 2])
69
+ np.indices([0, 1, 2], sparse=False)
70
+ np.indices([0, 1, 2], sparse=True)
71
+
72
+ np.binary_repr(1)
73
+
74
+ np.base_repr(1)
75
+
76
+ np.allclose(i8, A)
77
+ np.allclose(B, A)
78
+ np.allclose(A, A)
79
+
80
+ np.isclose(i8, A)
81
+ np.isclose(B, A)
82
+ np.isclose(A, A)
83
+
84
+ np.array_equal(i8, A)
85
+ np.array_equal(B, A)
86
+ np.array_equal(A, A)
87
+
88
+ np.array_equiv(i8, A)
89
+ np.array_equiv(B, A)
90
+ np.array_equiv(A, A)
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/numerictypes.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+
3
+ np.isdtype(np.float64, (np.int64, np.float64))
4
+ np.isdtype(np.int64, "signed integer")
5
+
6
+ np.issubdtype("S1", np.bytes_)
7
+ np.issubdtype(np.float64, np.float32)
8
+
9
+ np.ScalarType
10
+ np.ScalarType[0]
11
+ np.ScalarType[3]
12
+ np.ScalarType[8]
13
+ np.ScalarType[10]
14
+
15
+ np.typecodes["Character"]
16
+ np.typecodes["Complex"]
17
+ np.typecodes["All"]
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/random.py ADDED
@@ -0,0 +1,1498 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing import Any
4
+
5
+ import numpy as np
6
+
7
+ SEED_NONE = None
8
+ SEED_INT = 4579435749574957634658964293569
9
+ SEED_ARR: np.ndarray[Any, np.dtype[np.int64]] = np.array([1, 2, 3, 4], dtype=np.int64)
10
+ SEED_ARRLIKE: list[int] = [1, 2, 3, 4]
11
+ SEED_SEED_SEQ: np.random.SeedSequence = np.random.SeedSequence(0)
12
+ SEED_MT19937: np.random.MT19937 = np.random.MT19937(0)
13
+ SEED_PCG64: np.random.PCG64 = np.random.PCG64(0)
14
+ SEED_PHILOX: np.random.Philox = np.random.Philox(0)
15
+ SEED_SFC64: np.random.SFC64 = np.random.SFC64(0)
16
+
17
+ # default rng
18
+ np.random.default_rng()
19
+ np.random.default_rng(SEED_NONE)
20
+ np.random.default_rng(SEED_INT)
21
+ np.random.default_rng(SEED_ARR)
22
+ np.random.default_rng(SEED_ARRLIKE)
23
+ np.random.default_rng(SEED_SEED_SEQ)
24
+ np.random.default_rng(SEED_MT19937)
25
+ np.random.default_rng(SEED_PCG64)
26
+ np.random.default_rng(SEED_PHILOX)
27
+ np.random.default_rng(SEED_SFC64)
28
+
29
+ # Seed Sequence
30
+ np.random.SeedSequence(SEED_NONE)
31
+ np.random.SeedSequence(SEED_INT)
32
+ np.random.SeedSequence(SEED_ARR)
33
+ np.random.SeedSequence(SEED_ARRLIKE)
34
+
35
+ # Bit Generators
36
+ np.random.MT19937(SEED_NONE)
37
+ np.random.MT19937(SEED_INT)
38
+ np.random.MT19937(SEED_ARR)
39
+ np.random.MT19937(SEED_ARRLIKE)
40
+ np.random.MT19937(SEED_SEED_SEQ)
41
+
42
+ np.random.PCG64(SEED_NONE)
43
+ np.random.PCG64(SEED_INT)
44
+ np.random.PCG64(SEED_ARR)
45
+ np.random.PCG64(SEED_ARRLIKE)
46
+ np.random.PCG64(SEED_SEED_SEQ)
47
+
48
+ np.random.Philox(SEED_NONE)
49
+ np.random.Philox(SEED_INT)
50
+ np.random.Philox(SEED_ARR)
51
+ np.random.Philox(SEED_ARRLIKE)
52
+ np.random.Philox(SEED_SEED_SEQ)
53
+
54
+ np.random.SFC64(SEED_NONE)
55
+ np.random.SFC64(SEED_INT)
56
+ np.random.SFC64(SEED_ARR)
57
+ np.random.SFC64(SEED_ARRLIKE)
58
+ np.random.SFC64(SEED_SEED_SEQ)
59
+
60
+ seed_seq: np.random.bit_generator.SeedSequence = np.random.SeedSequence(SEED_NONE)
61
+ seed_seq.spawn(10)
62
+ seed_seq.generate_state(3)
63
+ seed_seq.generate_state(3, "u4")
64
+ seed_seq.generate_state(3, "uint32")
65
+ seed_seq.generate_state(3, "u8")
66
+ seed_seq.generate_state(3, "uint64")
67
+ seed_seq.generate_state(3, np.uint32)
68
+ seed_seq.generate_state(3, np.uint64)
69
+
70
+
71
+ def_gen: np.random.Generator = np.random.default_rng()
72
+
73
+ D_arr_0p1: np.ndarray[Any, np.dtype[np.float64]] = np.array([0.1])
74
+ D_arr_0p5: np.ndarray[Any, np.dtype[np.float64]] = np.array([0.5])
75
+ D_arr_0p9: np.ndarray[Any, np.dtype[np.float64]] = np.array([0.9])
76
+ D_arr_1p5: np.ndarray[Any, np.dtype[np.float64]] = np.array([1.5])
77
+ I_arr_10: np.ndarray[Any, np.dtype[np.int_]] = np.array([10], dtype=np.int_)
78
+ I_arr_20: np.ndarray[Any, np.dtype[np.int_]] = np.array([20], dtype=np.int_)
79
+ D_arr_like_0p1: list[float] = [0.1]
80
+ D_arr_like_0p5: list[float] = [0.5]
81
+ D_arr_like_0p9: list[float] = [0.9]
82
+ D_arr_like_1p5: list[float] = [1.5]
83
+ I_arr_like_10: list[int] = [10]
84
+ I_arr_like_20: list[int] = [20]
85
+ D_2D_like: list[list[float]] = [[1, 2], [2, 3], [3, 4], [4, 5.1]]
86
+ D_2D: np.ndarray[Any, np.dtype[np.float64]] = np.array(D_2D_like)
87
+
88
+ S_out: np.ndarray[Any, np.dtype[np.float32]] = np.empty(1, dtype=np.float32)
89
+ D_out: np.ndarray[Any, np.dtype[np.float64]] = np.empty(1)
90
+
91
+ def_gen.standard_normal()
92
+ def_gen.standard_normal(dtype=np.float32)
93
+ def_gen.standard_normal(dtype="float32")
94
+ def_gen.standard_normal(dtype="double")
95
+ def_gen.standard_normal(dtype=np.float64)
96
+ def_gen.standard_normal(size=None)
97
+ def_gen.standard_normal(size=1)
98
+ def_gen.standard_normal(size=1, dtype=np.float32)
99
+ def_gen.standard_normal(size=1, dtype="f4")
100
+ def_gen.standard_normal(size=1, dtype="float32", out=S_out)
101
+ def_gen.standard_normal(dtype=np.float32, out=S_out)
102
+ def_gen.standard_normal(size=1, dtype=np.float64)
103
+ def_gen.standard_normal(size=1, dtype="float64")
104
+ def_gen.standard_normal(size=1, dtype="f8")
105
+ def_gen.standard_normal(out=D_out)
106
+ def_gen.standard_normal(size=1, dtype="float64")
107
+ def_gen.standard_normal(size=1, dtype="float64", out=D_out)
108
+
109
+ def_gen.random()
110
+ def_gen.random(dtype=np.float32)
111
+ def_gen.random(dtype="float32")
112
+ def_gen.random(dtype="double")
113
+ def_gen.random(dtype=np.float64)
114
+ def_gen.random(size=None)
115
+ def_gen.random(size=1)
116
+ def_gen.random(size=1, dtype=np.float32)
117
+ def_gen.random(size=1, dtype="f4")
118
+ def_gen.random(size=1, dtype="float32", out=S_out)
119
+ def_gen.random(dtype=np.float32, out=S_out)
120
+ def_gen.random(size=1, dtype=np.float64)
121
+ def_gen.random(size=1, dtype="float64")
122
+ def_gen.random(size=1, dtype="f8")
123
+ def_gen.random(out=D_out)
124
+ def_gen.random(size=1, dtype="float64")
125
+ def_gen.random(size=1, dtype="float64", out=D_out)
126
+
127
+ def_gen.standard_cauchy()
128
+ def_gen.standard_cauchy(size=None)
129
+ def_gen.standard_cauchy(size=1)
130
+
131
+ def_gen.standard_exponential()
132
+ def_gen.standard_exponential(method="inv")
133
+ def_gen.standard_exponential(dtype=np.float32)
134
+ def_gen.standard_exponential(dtype="float32")
135
+ def_gen.standard_exponential(dtype="double")
136
+ def_gen.standard_exponential(dtype=np.float64)
137
+ def_gen.standard_exponential(size=None)
138
+ def_gen.standard_exponential(size=None, method="inv")
139
+ def_gen.standard_exponential(size=1, method="inv")
140
+ def_gen.standard_exponential(size=1, dtype=np.float32)
141
+ def_gen.standard_exponential(size=1, dtype="f4", method="inv")
142
+ def_gen.standard_exponential(size=1, dtype="float32", out=S_out)
143
+ def_gen.standard_exponential(dtype=np.float32, out=S_out)
144
+ def_gen.standard_exponential(size=1, dtype=np.float64, method="inv")
145
+ def_gen.standard_exponential(size=1, dtype="float64")
146
+ def_gen.standard_exponential(size=1, dtype="f8")
147
+ def_gen.standard_exponential(out=D_out)
148
+ def_gen.standard_exponential(size=1, dtype="float64")
149
+ def_gen.standard_exponential(size=1, dtype="float64", out=D_out)
150
+
151
+ def_gen.zipf(1.5)
152
+ def_gen.zipf(1.5, size=None)
153
+ def_gen.zipf(1.5, size=1)
154
+ def_gen.zipf(D_arr_1p5)
155
+ def_gen.zipf(D_arr_1p5, size=1)
156
+ def_gen.zipf(D_arr_like_1p5)
157
+ def_gen.zipf(D_arr_like_1p5, size=1)
158
+
159
+ def_gen.weibull(0.5)
160
+ def_gen.weibull(0.5, size=None)
161
+ def_gen.weibull(0.5, size=1)
162
+ def_gen.weibull(D_arr_0p5)
163
+ def_gen.weibull(D_arr_0p5, size=1)
164
+ def_gen.weibull(D_arr_like_0p5)
165
+ def_gen.weibull(D_arr_like_0p5, size=1)
166
+
167
+ def_gen.standard_t(0.5)
168
+ def_gen.standard_t(0.5, size=None)
169
+ def_gen.standard_t(0.5, size=1)
170
+ def_gen.standard_t(D_arr_0p5)
171
+ def_gen.standard_t(D_arr_0p5, size=1)
172
+ def_gen.standard_t(D_arr_like_0p5)
173
+ def_gen.standard_t(D_arr_like_0p5, size=1)
174
+
175
+ def_gen.poisson(0.5)
176
+ def_gen.poisson(0.5, size=None)
177
+ def_gen.poisson(0.5, size=1)
178
+ def_gen.poisson(D_arr_0p5)
179
+ def_gen.poisson(D_arr_0p5, size=1)
180
+ def_gen.poisson(D_arr_like_0p5)
181
+ def_gen.poisson(D_arr_like_0p5, size=1)
182
+
183
+ def_gen.power(0.5)
184
+ def_gen.power(0.5, size=None)
185
+ def_gen.power(0.5, size=1)
186
+ def_gen.power(D_arr_0p5)
187
+ def_gen.power(D_arr_0p5, size=1)
188
+ def_gen.power(D_arr_like_0p5)
189
+ def_gen.power(D_arr_like_0p5, size=1)
190
+
191
+ def_gen.pareto(0.5)
192
+ def_gen.pareto(0.5, size=None)
193
+ def_gen.pareto(0.5, size=1)
194
+ def_gen.pareto(D_arr_0p5)
195
+ def_gen.pareto(D_arr_0p5, size=1)
196
+ def_gen.pareto(D_arr_like_0p5)
197
+ def_gen.pareto(D_arr_like_0p5, size=1)
198
+
199
+ def_gen.chisquare(0.5)
200
+ def_gen.chisquare(0.5, size=None)
201
+ def_gen.chisquare(0.5, size=1)
202
+ def_gen.chisquare(D_arr_0p5)
203
+ def_gen.chisquare(D_arr_0p5, size=1)
204
+ def_gen.chisquare(D_arr_like_0p5)
205
+ def_gen.chisquare(D_arr_like_0p5, size=1)
206
+
207
+ def_gen.exponential(0.5)
208
+ def_gen.exponential(0.5, size=None)
209
+ def_gen.exponential(0.5, size=1)
210
+ def_gen.exponential(D_arr_0p5)
211
+ def_gen.exponential(D_arr_0p5, size=1)
212
+ def_gen.exponential(D_arr_like_0p5)
213
+ def_gen.exponential(D_arr_like_0p5, size=1)
214
+
215
+ def_gen.geometric(0.5)
216
+ def_gen.geometric(0.5, size=None)
217
+ def_gen.geometric(0.5, size=1)
218
+ def_gen.geometric(D_arr_0p5)
219
+ def_gen.geometric(D_arr_0p5, size=1)
220
+ def_gen.geometric(D_arr_like_0p5)
221
+ def_gen.geometric(D_arr_like_0p5, size=1)
222
+
223
+ def_gen.logseries(0.5)
224
+ def_gen.logseries(0.5, size=None)
225
+ def_gen.logseries(0.5, size=1)
226
+ def_gen.logseries(D_arr_0p5)
227
+ def_gen.logseries(D_arr_0p5, size=1)
228
+ def_gen.logseries(D_arr_like_0p5)
229
+ def_gen.logseries(D_arr_like_0p5, size=1)
230
+
231
+ def_gen.rayleigh(0.5)
232
+ def_gen.rayleigh(0.5, size=None)
233
+ def_gen.rayleigh(0.5, size=1)
234
+ def_gen.rayleigh(D_arr_0p5)
235
+ def_gen.rayleigh(D_arr_0p5, size=1)
236
+ def_gen.rayleigh(D_arr_like_0p5)
237
+ def_gen.rayleigh(D_arr_like_0p5, size=1)
238
+
239
+ def_gen.standard_gamma(0.5)
240
+ def_gen.standard_gamma(0.5, size=None)
241
+ def_gen.standard_gamma(0.5, dtype="float32")
242
+ def_gen.standard_gamma(0.5, size=None, dtype="float32")
243
+ def_gen.standard_gamma(0.5, size=1)
244
+ def_gen.standard_gamma(D_arr_0p5)
245
+ def_gen.standard_gamma(D_arr_0p5, dtype="f4")
246
+ def_gen.standard_gamma(0.5, size=1, dtype="float32", out=S_out)
247
+ def_gen.standard_gamma(D_arr_0p5, dtype=np.float32, out=S_out)
248
+ def_gen.standard_gamma(D_arr_0p5, size=1)
249
+ def_gen.standard_gamma(D_arr_like_0p5)
250
+ def_gen.standard_gamma(D_arr_like_0p5, size=1)
251
+ def_gen.standard_gamma(0.5, out=D_out)
252
+ def_gen.standard_gamma(D_arr_like_0p5, out=D_out)
253
+ def_gen.standard_gamma(D_arr_like_0p5, size=1)
254
+ def_gen.standard_gamma(D_arr_like_0p5, size=1, out=D_out, dtype=np.float64)
255
+
256
+ def_gen.vonmises(0.5, 0.5)
257
+ def_gen.vonmises(0.5, 0.5, size=None)
258
+ def_gen.vonmises(0.5, 0.5, size=1)
259
+ def_gen.vonmises(D_arr_0p5, 0.5)
260
+ def_gen.vonmises(0.5, D_arr_0p5)
261
+ def_gen.vonmises(D_arr_0p5, 0.5, size=1)
262
+ def_gen.vonmises(0.5, D_arr_0p5, size=1)
263
+ def_gen.vonmises(D_arr_like_0p5, 0.5)
264
+ def_gen.vonmises(0.5, D_arr_like_0p5)
265
+ def_gen.vonmises(D_arr_0p5, D_arr_0p5)
266
+ def_gen.vonmises(D_arr_like_0p5, D_arr_like_0p5)
267
+ def_gen.vonmises(D_arr_0p5, D_arr_0p5, size=1)
268
+ def_gen.vonmises(D_arr_like_0p5, D_arr_like_0p5, size=1)
269
+
270
+ def_gen.wald(0.5, 0.5)
271
+ def_gen.wald(0.5, 0.5, size=None)
272
+ def_gen.wald(0.5, 0.5, size=1)
273
+ def_gen.wald(D_arr_0p5, 0.5)
274
+ def_gen.wald(0.5, D_arr_0p5)
275
+ def_gen.wald(D_arr_0p5, 0.5, size=1)
276
+ def_gen.wald(0.5, D_arr_0p5, size=1)
277
+ def_gen.wald(D_arr_like_0p5, 0.5)
278
+ def_gen.wald(0.5, D_arr_like_0p5)
279
+ def_gen.wald(D_arr_0p5, D_arr_0p5)
280
+ def_gen.wald(D_arr_like_0p5, D_arr_like_0p5)
281
+ def_gen.wald(D_arr_0p5, D_arr_0p5, size=1)
282
+ def_gen.wald(D_arr_like_0p5, D_arr_like_0p5, size=1)
283
+
284
+ def_gen.uniform(0.5, 0.5)
285
+ def_gen.uniform(0.5, 0.5, size=None)
286
+ def_gen.uniform(0.5, 0.5, size=1)
287
+ def_gen.uniform(D_arr_0p5, 0.5)
288
+ def_gen.uniform(0.5, D_arr_0p5)
289
+ def_gen.uniform(D_arr_0p5, 0.5, size=1)
290
+ def_gen.uniform(0.5, D_arr_0p5, size=1)
291
+ def_gen.uniform(D_arr_like_0p5, 0.5)
292
+ def_gen.uniform(0.5, D_arr_like_0p5)
293
+ def_gen.uniform(D_arr_0p5, D_arr_0p5)
294
+ def_gen.uniform(D_arr_like_0p5, D_arr_like_0p5)
295
+ def_gen.uniform(D_arr_0p5, D_arr_0p5, size=1)
296
+ def_gen.uniform(D_arr_like_0p5, D_arr_like_0p5, size=1)
297
+
298
+ def_gen.beta(0.5, 0.5)
299
+ def_gen.beta(0.5, 0.5, size=None)
300
+ def_gen.beta(0.5, 0.5, size=1)
301
+ def_gen.beta(D_arr_0p5, 0.5)
302
+ def_gen.beta(0.5, D_arr_0p5)
303
+ def_gen.beta(D_arr_0p5, 0.5, size=1)
304
+ def_gen.beta(0.5, D_arr_0p5, size=1)
305
+ def_gen.beta(D_arr_like_0p5, 0.5)
306
+ def_gen.beta(0.5, D_arr_like_0p5)
307
+ def_gen.beta(D_arr_0p5, D_arr_0p5)
308
+ def_gen.beta(D_arr_like_0p5, D_arr_like_0p5)
309
+ def_gen.beta(D_arr_0p5, D_arr_0p5, size=1)
310
+ def_gen.beta(D_arr_like_0p5, D_arr_like_0p5, size=1)
311
+
312
+ def_gen.f(0.5, 0.5)
313
+ def_gen.f(0.5, 0.5, size=None)
314
+ def_gen.f(0.5, 0.5, size=1)
315
+ def_gen.f(D_arr_0p5, 0.5)
316
+ def_gen.f(0.5, D_arr_0p5)
317
+ def_gen.f(D_arr_0p5, 0.5, size=1)
318
+ def_gen.f(0.5, D_arr_0p5, size=1)
319
+ def_gen.f(D_arr_like_0p5, 0.5)
320
+ def_gen.f(0.5, D_arr_like_0p5)
321
+ def_gen.f(D_arr_0p5, D_arr_0p5)
322
+ def_gen.f(D_arr_like_0p5, D_arr_like_0p5)
323
+ def_gen.f(D_arr_0p5, D_arr_0p5, size=1)
324
+ def_gen.f(D_arr_like_0p5, D_arr_like_0p5, size=1)
325
+
326
+ def_gen.gamma(0.5, 0.5)
327
+ def_gen.gamma(0.5, 0.5, size=None)
328
+ def_gen.gamma(0.5, 0.5, size=1)
329
+ def_gen.gamma(D_arr_0p5, 0.5)
330
+ def_gen.gamma(0.5, D_arr_0p5)
331
+ def_gen.gamma(D_arr_0p5, 0.5, size=1)
332
+ def_gen.gamma(0.5, D_arr_0p5, size=1)
333
+ def_gen.gamma(D_arr_like_0p5, 0.5)
334
+ def_gen.gamma(0.5, D_arr_like_0p5)
335
+ def_gen.gamma(D_arr_0p5, D_arr_0p5)
336
+ def_gen.gamma(D_arr_like_0p5, D_arr_like_0p5)
337
+ def_gen.gamma(D_arr_0p5, D_arr_0p5, size=1)
338
+ def_gen.gamma(D_arr_like_0p5, D_arr_like_0p5, size=1)
339
+
340
+ def_gen.gumbel(0.5, 0.5)
341
+ def_gen.gumbel(0.5, 0.5, size=None)
342
+ def_gen.gumbel(0.5, 0.5, size=1)
343
+ def_gen.gumbel(D_arr_0p5, 0.5)
344
+ def_gen.gumbel(0.5, D_arr_0p5)
345
+ def_gen.gumbel(D_arr_0p5, 0.5, size=1)
346
+ def_gen.gumbel(0.5, D_arr_0p5, size=1)
347
+ def_gen.gumbel(D_arr_like_0p5, 0.5)
348
+ def_gen.gumbel(0.5, D_arr_like_0p5)
349
+ def_gen.gumbel(D_arr_0p5, D_arr_0p5)
350
+ def_gen.gumbel(D_arr_like_0p5, D_arr_like_0p5)
351
+ def_gen.gumbel(D_arr_0p5, D_arr_0p5, size=1)
352
+ def_gen.gumbel(D_arr_like_0p5, D_arr_like_0p5, size=1)
353
+
354
+ def_gen.laplace(0.5, 0.5)
355
+ def_gen.laplace(0.5, 0.5, size=None)
356
+ def_gen.laplace(0.5, 0.5, size=1)
357
+ def_gen.laplace(D_arr_0p5, 0.5)
358
+ def_gen.laplace(0.5, D_arr_0p5)
359
+ def_gen.laplace(D_arr_0p5, 0.5, size=1)
360
+ def_gen.laplace(0.5, D_arr_0p5, size=1)
361
+ def_gen.laplace(D_arr_like_0p5, 0.5)
362
+ def_gen.laplace(0.5, D_arr_like_0p5)
363
+ def_gen.laplace(D_arr_0p5, D_arr_0p5)
364
+ def_gen.laplace(D_arr_like_0p5, D_arr_like_0p5)
365
+ def_gen.laplace(D_arr_0p5, D_arr_0p5, size=1)
366
+ def_gen.laplace(D_arr_like_0p5, D_arr_like_0p5, size=1)
367
+
368
+ def_gen.logistic(0.5, 0.5)
369
+ def_gen.logistic(0.5, 0.5, size=None)
370
+ def_gen.logistic(0.5, 0.5, size=1)
371
+ def_gen.logistic(D_arr_0p5, 0.5)
372
+ def_gen.logistic(0.5, D_arr_0p5)
373
+ def_gen.logistic(D_arr_0p5, 0.5, size=1)
374
+ def_gen.logistic(0.5, D_arr_0p5, size=1)
375
+ def_gen.logistic(D_arr_like_0p5, 0.5)
376
+ def_gen.logistic(0.5, D_arr_like_0p5)
377
+ def_gen.logistic(D_arr_0p5, D_arr_0p5)
378
+ def_gen.logistic(D_arr_like_0p5, D_arr_like_0p5)
379
+ def_gen.logistic(D_arr_0p5, D_arr_0p5, size=1)
380
+ def_gen.logistic(D_arr_like_0p5, D_arr_like_0p5, size=1)
381
+
382
+ def_gen.lognormal(0.5, 0.5)
383
+ def_gen.lognormal(0.5, 0.5, size=None)
384
+ def_gen.lognormal(0.5, 0.5, size=1)
385
+ def_gen.lognormal(D_arr_0p5, 0.5)
386
+ def_gen.lognormal(0.5, D_arr_0p5)
387
+ def_gen.lognormal(D_arr_0p5, 0.5, size=1)
388
+ def_gen.lognormal(0.5, D_arr_0p5, size=1)
389
+ def_gen.lognormal(D_arr_like_0p5, 0.5)
390
+ def_gen.lognormal(0.5, D_arr_like_0p5)
391
+ def_gen.lognormal(D_arr_0p5, D_arr_0p5)
392
+ def_gen.lognormal(D_arr_like_0p5, D_arr_like_0p5)
393
+ def_gen.lognormal(D_arr_0p5, D_arr_0p5, size=1)
394
+ def_gen.lognormal(D_arr_like_0p5, D_arr_like_0p5, size=1)
395
+
396
+ def_gen.noncentral_chisquare(0.5, 0.5)
397
+ def_gen.noncentral_chisquare(0.5, 0.5, size=None)
398
+ def_gen.noncentral_chisquare(0.5, 0.5, size=1)
399
+ def_gen.noncentral_chisquare(D_arr_0p5, 0.5)
400
+ def_gen.noncentral_chisquare(0.5, D_arr_0p5)
401
+ def_gen.noncentral_chisquare(D_arr_0p5, 0.5, size=1)
402
+ def_gen.noncentral_chisquare(0.5, D_arr_0p5, size=1)
403
+ def_gen.noncentral_chisquare(D_arr_like_0p5, 0.5)
404
+ def_gen.noncentral_chisquare(0.5, D_arr_like_0p5)
405
+ def_gen.noncentral_chisquare(D_arr_0p5, D_arr_0p5)
406
+ def_gen.noncentral_chisquare(D_arr_like_0p5, D_arr_like_0p5)
407
+ def_gen.noncentral_chisquare(D_arr_0p5, D_arr_0p5, size=1)
408
+ def_gen.noncentral_chisquare(D_arr_like_0p5, D_arr_like_0p5, size=1)
409
+
410
+ def_gen.normal(0.5, 0.5)
411
+ def_gen.normal(0.5, 0.5, size=None)
412
+ def_gen.normal(0.5, 0.5, size=1)
413
+ def_gen.normal(D_arr_0p5, 0.5)
414
+ def_gen.normal(0.5, D_arr_0p5)
415
+ def_gen.normal(D_arr_0p5, 0.5, size=1)
416
+ def_gen.normal(0.5, D_arr_0p5, size=1)
417
+ def_gen.normal(D_arr_like_0p5, 0.5)
418
+ def_gen.normal(0.5, D_arr_like_0p5)
419
+ def_gen.normal(D_arr_0p5, D_arr_0p5)
420
+ def_gen.normal(D_arr_like_0p5, D_arr_like_0p5)
421
+ def_gen.normal(D_arr_0p5, D_arr_0p5, size=1)
422
+ def_gen.normal(D_arr_like_0p5, D_arr_like_0p5, size=1)
423
+
424
+ def_gen.triangular(0.1, 0.5, 0.9)
425
+ def_gen.triangular(0.1, 0.5, 0.9, size=None)
426
+ def_gen.triangular(0.1, 0.5, 0.9, size=1)
427
+ def_gen.triangular(D_arr_0p1, 0.5, 0.9)
428
+ def_gen.triangular(0.1, D_arr_0p5, 0.9)
429
+ def_gen.triangular(D_arr_0p1, 0.5, D_arr_like_0p9, size=1)
430
+ def_gen.triangular(0.1, D_arr_0p5, 0.9, size=1)
431
+ def_gen.triangular(D_arr_like_0p1, 0.5, D_arr_0p9)
432
+ def_gen.triangular(0.5, D_arr_like_0p5, 0.9)
433
+ def_gen.triangular(D_arr_0p1, D_arr_0p5, 0.9)
434
+ def_gen.triangular(D_arr_like_0p1, D_arr_like_0p5, 0.9)
435
+ def_gen.triangular(D_arr_0p1, D_arr_0p5, D_arr_0p9, size=1)
436
+ def_gen.triangular(D_arr_like_0p1, D_arr_like_0p5, D_arr_like_0p9, size=1)
437
+
438
+ def_gen.noncentral_f(0.1, 0.5, 0.9)
439
+ def_gen.noncentral_f(0.1, 0.5, 0.9, size=None)
440
+ def_gen.noncentral_f(0.1, 0.5, 0.9, size=1)
441
+ def_gen.noncentral_f(D_arr_0p1, 0.5, 0.9)
442
+ def_gen.noncentral_f(0.1, D_arr_0p5, 0.9)
443
+ def_gen.noncentral_f(D_arr_0p1, 0.5, D_arr_like_0p9, size=1)
444
+ def_gen.noncentral_f(0.1, D_arr_0p5, 0.9, size=1)
445
+ def_gen.noncentral_f(D_arr_like_0p1, 0.5, D_arr_0p9)
446
+ def_gen.noncentral_f(0.5, D_arr_like_0p5, 0.9)
447
+ def_gen.noncentral_f(D_arr_0p1, D_arr_0p5, 0.9)
448
+ def_gen.noncentral_f(D_arr_like_0p1, D_arr_like_0p5, 0.9)
449
+ def_gen.noncentral_f(D_arr_0p1, D_arr_0p5, D_arr_0p9, size=1)
450
+ def_gen.noncentral_f(D_arr_like_0p1, D_arr_like_0p5, D_arr_like_0p9, size=1)
451
+
452
+ def_gen.binomial(10, 0.5)
453
+ def_gen.binomial(10, 0.5, size=None)
454
+ def_gen.binomial(10, 0.5, size=1)
455
+ def_gen.binomial(I_arr_10, 0.5)
456
+ def_gen.binomial(10, D_arr_0p5)
457
+ def_gen.binomial(I_arr_10, 0.5, size=1)
458
+ def_gen.binomial(10, D_arr_0p5, size=1)
459
+ def_gen.binomial(I_arr_like_10, 0.5)
460
+ def_gen.binomial(10, D_arr_like_0p5)
461
+ def_gen.binomial(I_arr_10, D_arr_0p5)
462
+ def_gen.binomial(I_arr_like_10, D_arr_like_0p5)
463
+ def_gen.binomial(I_arr_10, D_arr_0p5, size=1)
464
+ def_gen.binomial(I_arr_like_10, D_arr_like_0p5, size=1)
465
+
466
+ def_gen.negative_binomial(10, 0.5)
467
+ def_gen.negative_binomial(10, 0.5, size=None)
468
+ def_gen.negative_binomial(10, 0.5, size=1)
469
+ def_gen.negative_binomial(I_arr_10, 0.5)
470
+ def_gen.negative_binomial(10, D_arr_0p5)
471
+ def_gen.negative_binomial(I_arr_10, 0.5, size=1)
472
+ def_gen.negative_binomial(10, D_arr_0p5, size=1)
473
+ def_gen.negative_binomial(I_arr_like_10, 0.5)
474
+ def_gen.negative_binomial(10, D_arr_like_0p5)
475
+ def_gen.negative_binomial(I_arr_10, D_arr_0p5)
476
+ def_gen.negative_binomial(I_arr_like_10, D_arr_like_0p5)
477
+ def_gen.negative_binomial(I_arr_10, D_arr_0p5, size=1)
478
+ def_gen.negative_binomial(I_arr_like_10, D_arr_like_0p5, size=1)
479
+
480
+ def_gen.hypergeometric(20, 20, 10)
481
+ def_gen.hypergeometric(20, 20, 10, size=None)
482
+ def_gen.hypergeometric(20, 20, 10, size=1)
483
+ def_gen.hypergeometric(I_arr_20, 20, 10)
484
+ def_gen.hypergeometric(20, I_arr_20, 10)
485
+ def_gen.hypergeometric(I_arr_20, 20, I_arr_like_10, size=1)
486
+ def_gen.hypergeometric(20, I_arr_20, 10, size=1)
487
+ def_gen.hypergeometric(I_arr_like_20, 20, I_arr_10)
488
+ def_gen.hypergeometric(20, I_arr_like_20, 10)
489
+ def_gen.hypergeometric(I_arr_20, I_arr_20, 10)
490
+ def_gen.hypergeometric(I_arr_like_20, I_arr_like_20, 10)
491
+ def_gen.hypergeometric(I_arr_20, I_arr_20, I_arr_10, size=1)
492
+ def_gen.hypergeometric(I_arr_like_20, I_arr_like_20, I_arr_like_10, size=1)
493
+
494
+ I_int64_100: np.ndarray[Any, np.dtype[np.int64]] = np.array([100], dtype=np.int64)
495
+
496
+ def_gen.integers(0, 100)
497
+ def_gen.integers(100)
498
+ def_gen.integers([100])
499
+ def_gen.integers(0, [100])
500
+
501
+ I_bool_low: np.ndarray[Any, np.dtype[np.bool]] = np.array([0], dtype=np.bool)
502
+ I_bool_low_like: list[int] = [0]
503
+ I_bool_high_open: np.ndarray[Any, np.dtype[np.bool]] = np.array([1], dtype=np.bool)
504
+ I_bool_high_closed: np.ndarray[Any, np.dtype[np.bool]] = np.array([1], dtype=np.bool)
505
+
506
+ def_gen.integers(2, dtype=bool)
507
+ def_gen.integers(0, 2, dtype=bool)
508
+ def_gen.integers(1, dtype=bool, endpoint=True)
509
+ def_gen.integers(0, 1, dtype=bool, endpoint=True)
510
+ def_gen.integers(I_bool_low_like, 1, dtype=bool, endpoint=True)
511
+ def_gen.integers(I_bool_high_open, dtype=bool)
512
+ def_gen.integers(I_bool_low, I_bool_high_open, dtype=bool)
513
+ def_gen.integers(0, I_bool_high_open, dtype=bool)
514
+ def_gen.integers(I_bool_high_closed, dtype=bool, endpoint=True)
515
+ def_gen.integers(I_bool_low, I_bool_high_closed, dtype=bool, endpoint=True)
516
+ def_gen.integers(0, I_bool_high_closed, dtype=bool, endpoint=True)
517
+
518
+ def_gen.integers(2, dtype=np.bool)
519
+ def_gen.integers(0, 2, dtype=np.bool)
520
+ def_gen.integers(1, dtype=np.bool, endpoint=True)
521
+ def_gen.integers(0, 1, dtype=np.bool, endpoint=True)
522
+ def_gen.integers(I_bool_low_like, 1, dtype=np.bool, endpoint=True)
523
+ def_gen.integers(I_bool_high_open, dtype=np.bool)
524
+ def_gen.integers(I_bool_low, I_bool_high_open, dtype=np.bool)
525
+ def_gen.integers(0, I_bool_high_open, dtype=np.bool)
526
+ def_gen.integers(I_bool_high_closed, dtype=np.bool, endpoint=True)
527
+ def_gen.integers(I_bool_low, I_bool_high_closed, dtype=np.bool, endpoint=True)
528
+ def_gen.integers(0, I_bool_high_closed, dtype=np.bool, endpoint=True)
529
+
530
+ I_u1_low: np.ndarray[Any, np.dtype[np.uint8]] = np.array([0], dtype=np.uint8)
531
+ I_u1_low_like: list[int] = [0]
532
+ I_u1_high_open: np.ndarray[Any, np.dtype[np.uint8]] = np.array([255], dtype=np.uint8)
533
+ I_u1_high_closed: np.ndarray[Any, np.dtype[np.uint8]] = np.array([255], dtype=np.uint8)
534
+
535
+ def_gen.integers(256, dtype="u1")
536
+ def_gen.integers(0, 256, dtype="u1")
537
+ def_gen.integers(255, dtype="u1", endpoint=True)
538
+ def_gen.integers(0, 255, dtype="u1", endpoint=True)
539
+ def_gen.integers(I_u1_low_like, 255, dtype="u1", endpoint=True)
540
+ def_gen.integers(I_u1_high_open, dtype="u1")
541
+ def_gen.integers(I_u1_low, I_u1_high_open, dtype="u1")
542
+ def_gen.integers(0, I_u1_high_open, dtype="u1")
543
+ def_gen.integers(I_u1_high_closed, dtype="u1", endpoint=True)
544
+ def_gen.integers(I_u1_low, I_u1_high_closed, dtype="u1", endpoint=True)
545
+ def_gen.integers(0, I_u1_high_closed, dtype="u1", endpoint=True)
546
+
547
+ def_gen.integers(256, dtype="uint8")
548
+ def_gen.integers(0, 256, dtype="uint8")
549
+ def_gen.integers(255, dtype="uint8", endpoint=True)
550
+ def_gen.integers(0, 255, dtype="uint8", endpoint=True)
551
+ def_gen.integers(I_u1_low_like, 255, dtype="uint8", endpoint=True)
552
+ def_gen.integers(I_u1_high_open, dtype="uint8")
553
+ def_gen.integers(I_u1_low, I_u1_high_open, dtype="uint8")
554
+ def_gen.integers(0, I_u1_high_open, dtype="uint8")
555
+ def_gen.integers(I_u1_high_closed, dtype="uint8", endpoint=True)
556
+ def_gen.integers(I_u1_low, I_u1_high_closed, dtype="uint8", endpoint=True)
557
+ def_gen.integers(0, I_u1_high_closed, dtype="uint8", endpoint=True)
558
+
559
+ def_gen.integers(256, dtype=np.uint8)
560
+ def_gen.integers(0, 256, dtype=np.uint8)
561
+ def_gen.integers(255, dtype=np.uint8, endpoint=True)
562
+ def_gen.integers(0, 255, dtype=np.uint8, endpoint=True)
563
+ def_gen.integers(I_u1_low_like, 255, dtype=np.uint8, endpoint=True)
564
+ def_gen.integers(I_u1_high_open, dtype=np.uint8)
565
+ def_gen.integers(I_u1_low, I_u1_high_open, dtype=np.uint8)
566
+ def_gen.integers(0, I_u1_high_open, dtype=np.uint8)
567
+ def_gen.integers(I_u1_high_closed, dtype=np.uint8, endpoint=True)
568
+ def_gen.integers(I_u1_low, I_u1_high_closed, dtype=np.uint8, endpoint=True)
569
+ def_gen.integers(0, I_u1_high_closed, dtype=np.uint8, endpoint=True)
570
+
571
+ I_u2_low: np.ndarray[Any, np.dtype[np.uint16]] = np.array([0], dtype=np.uint16)
572
+ I_u2_low_like: list[int] = [0]
573
+ I_u2_high_open: np.ndarray[Any, np.dtype[np.uint16]] = np.array([65535], dtype=np.uint16)
574
+ I_u2_high_closed: np.ndarray[Any, np.dtype[np.uint16]] = np.array([65535], dtype=np.uint16)
575
+
576
+ def_gen.integers(65536, dtype="u2")
577
+ def_gen.integers(0, 65536, dtype="u2")
578
+ def_gen.integers(65535, dtype="u2", endpoint=True)
579
+ def_gen.integers(0, 65535, dtype="u2", endpoint=True)
580
+ def_gen.integers(I_u2_low_like, 65535, dtype="u2", endpoint=True)
581
+ def_gen.integers(I_u2_high_open, dtype="u2")
582
+ def_gen.integers(I_u2_low, I_u2_high_open, dtype="u2")
583
+ def_gen.integers(0, I_u2_high_open, dtype="u2")
584
+ def_gen.integers(I_u2_high_closed, dtype="u2", endpoint=True)
585
+ def_gen.integers(I_u2_low, I_u2_high_closed, dtype="u2", endpoint=True)
586
+ def_gen.integers(0, I_u2_high_closed, dtype="u2", endpoint=True)
587
+
588
+ def_gen.integers(65536, dtype="uint16")
589
+ def_gen.integers(0, 65536, dtype="uint16")
590
+ def_gen.integers(65535, dtype="uint16", endpoint=True)
591
+ def_gen.integers(0, 65535, dtype="uint16", endpoint=True)
592
+ def_gen.integers(I_u2_low_like, 65535, dtype="uint16", endpoint=True)
593
+ def_gen.integers(I_u2_high_open, dtype="uint16")
594
+ def_gen.integers(I_u2_low, I_u2_high_open, dtype="uint16")
595
+ def_gen.integers(0, I_u2_high_open, dtype="uint16")
596
+ def_gen.integers(I_u2_high_closed, dtype="uint16", endpoint=True)
597
+ def_gen.integers(I_u2_low, I_u2_high_closed, dtype="uint16", endpoint=True)
598
+ def_gen.integers(0, I_u2_high_closed, dtype="uint16", endpoint=True)
599
+
600
+ def_gen.integers(65536, dtype=np.uint16)
601
+ def_gen.integers(0, 65536, dtype=np.uint16)
602
+ def_gen.integers(65535, dtype=np.uint16, endpoint=True)
603
+ def_gen.integers(0, 65535, dtype=np.uint16, endpoint=True)
604
+ def_gen.integers(I_u2_low_like, 65535, dtype=np.uint16, endpoint=True)
605
+ def_gen.integers(I_u2_high_open, dtype=np.uint16)
606
+ def_gen.integers(I_u2_low, I_u2_high_open, dtype=np.uint16)
607
+ def_gen.integers(0, I_u2_high_open, dtype=np.uint16)
608
+ def_gen.integers(I_u2_high_closed, dtype=np.uint16, endpoint=True)
609
+ def_gen.integers(I_u2_low, I_u2_high_closed, dtype=np.uint16, endpoint=True)
610
+ def_gen.integers(0, I_u2_high_closed, dtype=np.uint16, endpoint=True)
611
+
612
+ I_u4_low: np.ndarray[Any, np.dtype[np.uint32]] = np.array([0], dtype=np.uint32)
613
+ I_u4_low_like: list[int] = [0]
614
+ I_u4_high_open: np.ndarray[Any, np.dtype[np.uint32]] = np.array([4294967295], dtype=np.uint32)
615
+ I_u4_high_closed: np.ndarray[Any, np.dtype[np.uint32]] = np.array([4294967295], dtype=np.uint32)
616
+
617
+ def_gen.integers(4294967296, dtype="u4")
618
+ def_gen.integers(0, 4294967296, dtype="u4")
619
+ def_gen.integers(4294967295, dtype="u4", endpoint=True)
620
+ def_gen.integers(0, 4294967295, dtype="u4", endpoint=True)
621
+ def_gen.integers(I_u4_low_like, 4294967295, dtype="u4", endpoint=True)
622
+ def_gen.integers(I_u4_high_open, dtype="u4")
623
+ def_gen.integers(I_u4_low, I_u4_high_open, dtype="u4")
624
+ def_gen.integers(0, I_u4_high_open, dtype="u4")
625
+ def_gen.integers(I_u4_high_closed, dtype="u4", endpoint=True)
626
+ def_gen.integers(I_u4_low, I_u4_high_closed, dtype="u4", endpoint=True)
627
+ def_gen.integers(0, I_u4_high_closed, dtype="u4", endpoint=True)
628
+
629
+ def_gen.integers(4294967296, dtype="uint32")
630
+ def_gen.integers(0, 4294967296, dtype="uint32")
631
+ def_gen.integers(4294967295, dtype="uint32", endpoint=True)
632
+ def_gen.integers(0, 4294967295, dtype="uint32", endpoint=True)
633
+ def_gen.integers(I_u4_low_like, 4294967295, dtype="uint32", endpoint=True)
634
+ def_gen.integers(I_u4_high_open, dtype="uint32")
635
+ def_gen.integers(I_u4_low, I_u4_high_open, dtype="uint32")
636
+ def_gen.integers(0, I_u4_high_open, dtype="uint32")
637
+ def_gen.integers(I_u4_high_closed, dtype="uint32", endpoint=True)
638
+ def_gen.integers(I_u4_low, I_u4_high_closed, dtype="uint32", endpoint=True)
639
+ def_gen.integers(0, I_u4_high_closed, dtype="uint32", endpoint=True)
640
+
641
+ def_gen.integers(4294967296, dtype=np.uint32)
642
+ def_gen.integers(0, 4294967296, dtype=np.uint32)
643
+ def_gen.integers(4294967295, dtype=np.uint32, endpoint=True)
644
+ def_gen.integers(0, 4294967295, dtype=np.uint32, endpoint=True)
645
+ def_gen.integers(I_u4_low_like, 4294967295, dtype=np.uint32, endpoint=True)
646
+ def_gen.integers(I_u4_high_open, dtype=np.uint32)
647
+ def_gen.integers(I_u4_low, I_u4_high_open, dtype=np.uint32)
648
+ def_gen.integers(0, I_u4_high_open, dtype=np.uint32)
649
+ def_gen.integers(I_u4_high_closed, dtype=np.uint32, endpoint=True)
650
+ def_gen.integers(I_u4_low, I_u4_high_closed, dtype=np.uint32, endpoint=True)
651
+ def_gen.integers(0, I_u4_high_closed, dtype=np.uint32, endpoint=True)
652
+
653
+ I_u8_low: np.ndarray[Any, np.dtype[np.uint64]] = np.array([0], dtype=np.uint64)
654
+ I_u8_low_like: list[int] = [0]
655
+ I_u8_high_open: np.ndarray[Any, np.dtype[np.uint64]] = np.array([18446744073709551615], dtype=np.uint64)
656
+ I_u8_high_closed: np.ndarray[Any, np.dtype[np.uint64]] = np.array([18446744073709551615], dtype=np.uint64)
657
+
658
+ def_gen.integers(18446744073709551616, dtype="u8")
659
+ def_gen.integers(0, 18446744073709551616, dtype="u8")
660
+ def_gen.integers(18446744073709551615, dtype="u8", endpoint=True)
661
+ def_gen.integers(0, 18446744073709551615, dtype="u8", endpoint=True)
662
+ def_gen.integers(I_u8_low_like, 18446744073709551615, dtype="u8", endpoint=True)
663
+ def_gen.integers(I_u8_high_open, dtype="u8")
664
+ def_gen.integers(I_u8_low, I_u8_high_open, dtype="u8")
665
+ def_gen.integers(0, I_u8_high_open, dtype="u8")
666
+ def_gen.integers(I_u8_high_closed, dtype="u8", endpoint=True)
667
+ def_gen.integers(I_u8_low, I_u8_high_closed, dtype="u8", endpoint=True)
668
+ def_gen.integers(0, I_u8_high_closed, dtype="u8", endpoint=True)
669
+
670
+ def_gen.integers(18446744073709551616, dtype="uint64")
671
+ def_gen.integers(0, 18446744073709551616, dtype="uint64")
672
+ def_gen.integers(18446744073709551615, dtype="uint64", endpoint=True)
673
+ def_gen.integers(0, 18446744073709551615, dtype="uint64", endpoint=True)
674
+ def_gen.integers(I_u8_low_like, 18446744073709551615, dtype="uint64", endpoint=True)
675
+ def_gen.integers(I_u8_high_open, dtype="uint64")
676
+ def_gen.integers(I_u8_low, I_u8_high_open, dtype="uint64")
677
+ def_gen.integers(0, I_u8_high_open, dtype="uint64")
678
+ def_gen.integers(I_u8_high_closed, dtype="uint64", endpoint=True)
679
+ def_gen.integers(I_u8_low, I_u8_high_closed, dtype="uint64", endpoint=True)
680
+ def_gen.integers(0, I_u8_high_closed, dtype="uint64", endpoint=True)
681
+
682
+ def_gen.integers(18446744073709551616, dtype=np.uint64)
683
+ def_gen.integers(0, 18446744073709551616, dtype=np.uint64)
684
+ def_gen.integers(18446744073709551615, dtype=np.uint64, endpoint=True)
685
+ def_gen.integers(0, 18446744073709551615, dtype=np.uint64, endpoint=True)
686
+ def_gen.integers(I_u8_low_like, 18446744073709551615, dtype=np.uint64, endpoint=True)
687
+ def_gen.integers(I_u8_high_open, dtype=np.uint64)
688
+ def_gen.integers(I_u8_low, I_u8_high_open, dtype=np.uint64)
689
+ def_gen.integers(0, I_u8_high_open, dtype=np.uint64)
690
+ def_gen.integers(I_u8_high_closed, dtype=np.uint64, endpoint=True)
691
+ def_gen.integers(I_u8_low, I_u8_high_closed, dtype=np.uint64, endpoint=True)
692
+ def_gen.integers(0, I_u8_high_closed, dtype=np.uint64, endpoint=True)
693
+
694
+ I_i1_low: np.ndarray[Any, np.dtype[np.int8]] = np.array([-128], dtype=np.int8)
695
+ I_i1_low_like: list[int] = [-128]
696
+ I_i1_high_open: np.ndarray[Any, np.dtype[np.int8]] = np.array([127], dtype=np.int8)
697
+ I_i1_high_closed: np.ndarray[Any, np.dtype[np.int8]] = np.array([127], dtype=np.int8)
698
+
699
+ def_gen.integers(128, dtype="i1")
700
+ def_gen.integers(-128, 128, dtype="i1")
701
+ def_gen.integers(127, dtype="i1", endpoint=True)
702
+ def_gen.integers(-128, 127, dtype="i1", endpoint=True)
703
+ def_gen.integers(I_i1_low_like, 127, dtype="i1", endpoint=True)
704
+ def_gen.integers(I_i1_high_open, dtype="i1")
705
+ def_gen.integers(I_i1_low, I_i1_high_open, dtype="i1")
706
+ def_gen.integers(-128, I_i1_high_open, dtype="i1")
707
+ def_gen.integers(I_i1_high_closed, dtype="i1", endpoint=True)
708
+ def_gen.integers(I_i1_low, I_i1_high_closed, dtype="i1", endpoint=True)
709
+ def_gen.integers(-128, I_i1_high_closed, dtype="i1", endpoint=True)
710
+
711
+ def_gen.integers(128, dtype="int8")
712
+ def_gen.integers(-128, 128, dtype="int8")
713
+ def_gen.integers(127, dtype="int8", endpoint=True)
714
+ def_gen.integers(-128, 127, dtype="int8", endpoint=True)
715
+ def_gen.integers(I_i1_low_like, 127, dtype="int8", endpoint=True)
716
+ def_gen.integers(I_i1_high_open, dtype="int8")
717
+ def_gen.integers(I_i1_low, I_i1_high_open, dtype="int8")
718
+ def_gen.integers(-128, I_i1_high_open, dtype="int8")
719
+ def_gen.integers(I_i1_high_closed, dtype="int8", endpoint=True)
720
+ def_gen.integers(I_i1_low, I_i1_high_closed, dtype="int8", endpoint=True)
721
+ def_gen.integers(-128, I_i1_high_closed, dtype="int8", endpoint=True)
722
+
723
+ def_gen.integers(128, dtype=np.int8)
724
+ def_gen.integers(-128, 128, dtype=np.int8)
725
+ def_gen.integers(127, dtype=np.int8, endpoint=True)
726
+ def_gen.integers(-128, 127, dtype=np.int8, endpoint=True)
727
+ def_gen.integers(I_i1_low_like, 127, dtype=np.int8, endpoint=True)
728
+ def_gen.integers(I_i1_high_open, dtype=np.int8)
729
+ def_gen.integers(I_i1_low, I_i1_high_open, dtype=np.int8)
730
+ def_gen.integers(-128, I_i1_high_open, dtype=np.int8)
731
+ def_gen.integers(I_i1_high_closed, dtype=np.int8, endpoint=True)
732
+ def_gen.integers(I_i1_low, I_i1_high_closed, dtype=np.int8, endpoint=True)
733
+ def_gen.integers(-128, I_i1_high_closed, dtype=np.int8, endpoint=True)
734
+
735
+ I_i2_low: np.ndarray[Any, np.dtype[np.int16]] = np.array([-32768], dtype=np.int16)
736
+ I_i2_low_like: list[int] = [-32768]
737
+ I_i2_high_open: np.ndarray[Any, np.dtype[np.int16]] = np.array([32767], dtype=np.int16)
738
+ I_i2_high_closed: np.ndarray[Any, np.dtype[np.int16]] = np.array([32767], dtype=np.int16)
739
+
740
+ def_gen.integers(32768, dtype="i2")
741
+ def_gen.integers(-32768, 32768, dtype="i2")
742
+ def_gen.integers(32767, dtype="i2", endpoint=True)
743
+ def_gen.integers(-32768, 32767, dtype="i2", endpoint=True)
744
+ def_gen.integers(I_i2_low_like, 32767, dtype="i2", endpoint=True)
745
+ def_gen.integers(I_i2_high_open, dtype="i2")
746
+ def_gen.integers(I_i2_low, I_i2_high_open, dtype="i2")
747
+ def_gen.integers(-32768, I_i2_high_open, dtype="i2")
748
+ def_gen.integers(I_i2_high_closed, dtype="i2", endpoint=True)
749
+ def_gen.integers(I_i2_low, I_i2_high_closed, dtype="i2", endpoint=True)
750
+ def_gen.integers(-32768, I_i2_high_closed, dtype="i2", endpoint=True)
751
+
752
+ def_gen.integers(32768, dtype="int16")
753
+ def_gen.integers(-32768, 32768, dtype="int16")
754
+ def_gen.integers(32767, dtype="int16", endpoint=True)
755
+ def_gen.integers(-32768, 32767, dtype="int16", endpoint=True)
756
+ def_gen.integers(I_i2_low_like, 32767, dtype="int16", endpoint=True)
757
+ def_gen.integers(I_i2_high_open, dtype="int16")
758
+ def_gen.integers(I_i2_low, I_i2_high_open, dtype="int16")
759
+ def_gen.integers(-32768, I_i2_high_open, dtype="int16")
760
+ def_gen.integers(I_i2_high_closed, dtype="int16", endpoint=True)
761
+ def_gen.integers(I_i2_low, I_i2_high_closed, dtype="int16", endpoint=True)
762
+ def_gen.integers(-32768, I_i2_high_closed, dtype="int16", endpoint=True)
763
+
764
+ def_gen.integers(32768, dtype=np.int16)
765
+ def_gen.integers(-32768, 32768, dtype=np.int16)
766
+ def_gen.integers(32767, dtype=np.int16, endpoint=True)
767
+ def_gen.integers(-32768, 32767, dtype=np.int16, endpoint=True)
768
+ def_gen.integers(I_i2_low_like, 32767, dtype=np.int16, endpoint=True)
769
+ def_gen.integers(I_i2_high_open, dtype=np.int16)
770
+ def_gen.integers(I_i2_low, I_i2_high_open, dtype=np.int16)
771
+ def_gen.integers(-32768, I_i2_high_open, dtype=np.int16)
772
+ def_gen.integers(I_i2_high_closed, dtype=np.int16, endpoint=True)
773
+ def_gen.integers(I_i2_low, I_i2_high_closed, dtype=np.int16, endpoint=True)
774
+ def_gen.integers(-32768, I_i2_high_closed, dtype=np.int16, endpoint=True)
775
+
776
+ I_i4_low: np.ndarray[Any, np.dtype[np.int32]] = np.array([-2147483648], dtype=np.int32)
777
+ I_i4_low_like: list[int] = [-2147483648]
778
+ I_i4_high_open: np.ndarray[Any, np.dtype[np.int32]] = np.array([2147483647], dtype=np.int32)
779
+ I_i4_high_closed: np.ndarray[Any, np.dtype[np.int32]] = np.array([2147483647], dtype=np.int32)
780
+
781
+ def_gen.integers(2147483648, dtype="i4")
782
+ def_gen.integers(-2147483648, 2147483648, dtype="i4")
783
+ def_gen.integers(2147483647, dtype="i4", endpoint=True)
784
+ def_gen.integers(-2147483648, 2147483647, dtype="i4", endpoint=True)
785
+ def_gen.integers(I_i4_low_like, 2147483647, dtype="i4", endpoint=True)
786
+ def_gen.integers(I_i4_high_open, dtype="i4")
787
+ def_gen.integers(I_i4_low, I_i4_high_open, dtype="i4")
788
+ def_gen.integers(-2147483648, I_i4_high_open, dtype="i4")
789
+ def_gen.integers(I_i4_high_closed, dtype="i4", endpoint=True)
790
+ def_gen.integers(I_i4_low, I_i4_high_closed, dtype="i4", endpoint=True)
791
+ def_gen.integers(-2147483648, I_i4_high_closed, dtype="i4", endpoint=True)
792
+
793
+ def_gen.integers(2147483648, dtype="int32")
794
+ def_gen.integers(-2147483648, 2147483648, dtype="int32")
795
+ def_gen.integers(2147483647, dtype="int32", endpoint=True)
796
+ def_gen.integers(-2147483648, 2147483647, dtype="int32", endpoint=True)
797
+ def_gen.integers(I_i4_low_like, 2147483647, dtype="int32", endpoint=True)
798
+ def_gen.integers(I_i4_high_open, dtype="int32")
799
+ def_gen.integers(I_i4_low, I_i4_high_open, dtype="int32")
800
+ def_gen.integers(-2147483648, I_i4_high_open, dtype="int32")
801
+ def_gen.integers(I_i4_high_closed, dtype="int32", endpoint=True)
802
+ def_gen.integers(I_i4_low, I_i4_high_closed, dtype="int32", endpoint=True)
803
+ def_gen.integers(-2147483648, I_i4_high_closed, dtype="int32", endpoint=True)
804
+
805
+ def_gen.integers(2147483648, dtype=np.int32)
806
+ def_gen.integers(-2147483648, 2147483648, dtype=np.int32)
807
+ def_gen.integers(2147483647, dtype=np.int32, endpoint=True)
808
+ def_gen.integers(-2147483648, 2147483647, dtype=np.int32, endpoint=True)
809
+ def_gen.integers(I_i4_low_like, 2147483647, dtype=np.int32, endpoint=True)
810
+ def_gen.integers(I_i4_high_open, dtype=np.int32)
811
+ def_gen.integers(I_i4_low, I_i4_high_open, dtype=np.int32)
812
+ def_gen.integers(-2147483648, I_i4_high_open, dtype=np.int32)
813
+ def_gen.integers(I_i4_high_closed, dtype=np.int32, endpoint=True)
814
+ def_gen.integers(I_i4_low, I_i4_high_closed, dtype=np.int32, endpoint=True)
815
+ def_gen.integers(-2147483648, I_i4_high_closed, dtype=np.int32, endpoint=True)
816
+
817
+ I_i8_low: np.ndarray[Any, np.dtype[np.int64]] = np.array([-9223372036854775808], dtype=np.int64)
818
+ I_i8_low_like: list[int] = [-9223372036854775808]
819
+ I_i8_high_open: np.ndarray[Any, np.dtype[np.int64]] = np.array([9223372036854775807], dtype=np.int64)
820
+ I_i8_high_closed: np.ndarray[Any, np.dtype[np.int64]] = np.array([9223372036854775807], dtype=np.int64)
821
+
822
+ def_gen.integers(9223372036854775808, dtype="i8")
823
+ def_gen.integers(-9223372036854775808, 9223372036854775808, dtype="i8")
824
+ def_gen.integers(9223372036854775807, dtype="i8", endpoint=True)
825
+ def_gen.integers(-9223372036854775808, 9223372036854775807, dtype="i8", endpoint=True)
826
+ def_gen.integers(I_i8_low_like, 9223372036854775807, dtype="i8", endpoint=True)
827
+ def_gen.integers(I_i8_high_open, dtype="i8")
828
+ def_gen.integers(I_i8_low, I_i8_high_open, dtype="i8")
829
+ def_gen.integers(-9223372036854775808, I_i8_high_open, dtype="i8")
830
+ def_gen.integers(I_i8_high_closed, dtype="i8", endpoint=True)
831
+ def_gen.integers(I_i8_low, I_i8_high_closed, dtype="i8", endpoint=True)
832
+ def_gen.integers(-9223372036854775808, I_i8_high_closed, dtype="i8", endpoint=True)
833
+
834
+ def_gen.integers(9223372036854775808, dtype="int64")
835
+ def_gen.integers(-9223372036854775808, 9223372036854775808, dtype="int64")
836
+ def_gen.integers(9223372036854775807, dtype="int64", endpoint=True)
837
+ def_gen.integers(-9223372036854775808, 9223372036854775807, dtype="int64", endpoint=True)
838
+ def_gen.integers(I_i8_low_like, 9223372036854775807, dtype="int64", endpoint=True)
839
+ def_gen.integers(I_i8_high_open, dtype="int64")
840
+ def_gen.integers(I_i8_low, I_i8_high_open, dtype="int64")
841
+ def_gen.integers(-9223372036854775808, I_i8_high_open, dtype="int64")
842
+ def_gen.integers(I_i8_high_closed, dtype="int64", endpoint=True)
843
+ def_gen.integers(I_i8_low, I_i8_high_closed, dtype="int64", endpoint=True)
844
+ def_gen.integers(-9223372036854775808, I_i8_high_closed, dtype="int64", endpoint=True)
845
+
846
+ def_gen.integers(9223372036854775808, dtype=np.int64)
847
+ def_gen.integers(-9223372036854775808, 9223372036854775808, dtype=np.int64)
848
+ def_gen.integers(9223372036854775807, dtype=np.int64, endpoint=True)
849
+ def_gen.integers(-9223372036854775808, 9223372036854775807, dtype=np.int64, endpoint=True)
850
+ def_gen.integers(I_i8_low_like, 9223372036854775807, dtype=np.int64, endpoint=True)
851
+ def_gen.integers(I_i8_high_open, dtype=np.int64)
852
+ def_gen.integers(I_i8_low, I_i8_high_open, dtype=np.int64)
853
+ def_gen.integers(-9223372036854775808, I_i8_high_open, dtype=np.int64)
854
+ def_gen.integers(I_i8_high_closed, dtype=np.int64, endpoint=True)
855
+ def_gen.integers(I_i8_low, I_i8_high_closed, dtype=np.int64, endpoint=True)
856
+ def_gen.integers(-9223372036854775808, I_i8_high_closed, dtype=np.int64, endpoint=True)
857
+
858
+
859
+ def_gen.bit_generator
860
+
861
+ def_gen.bytes(2)
862
+
863
+ def_gen.choice(5)
864
+ def_gen.choice(5, 3)
865
+ def_gen.choice(5, 3, replace=True)
866
+ def_gen.choice(5, 3, p=[1 / 5] * 5)
867
+ def_gen.choice(5, 3, p=[1 / 5] * 5, replace=False)
868
+
869
+ def_gen.choice(["pooh", "rabbit", "piglet", "Christopher"])
870
+ def_gen.choice(["pooh", "rabbit", "piglet", "Christopher"], 3)
871
+ def_gen.choice(["pooh", "rabbit", "piglet", "Christopher"], 3, p=[1 / 4] * 4)
872
+ def_gen.choice(["pooh", "rabbit", "piglet", "Christopher"], 3, replace=True)
873
+ def_gen.choice(["pooh", "rabbit", "piglet", "Christopher"], 3, replace=False, p=np.array([1 / 8, 1 / 8, 1 / 2, 1 / 4]))
874
+
875
+ def_gen.dirichlet([0.5, 0.5])
876
+ def_gen.dirichlet(np.array([0.5, 0.5]))
877
+ def_gen.dirichlet(np.array([0.5, 0.5]), size=3)
878
+
879
+ def_gen.multinomial(20, [1 / 6.0] * 6)
880
+ def_gen.multinomial(20, np.array([0.5, 0.5]))
881
+ def_gen.multinomial(20, [1 / 6.0] * 6, size=2)
882
+ def_gen.multinomial([[10], [20]], [1 / 6.0] * 6, size=(2, 2))
883
+ def_gen.multinomial(np.array([[10], [20]]), np.array([0.5, 0.5]), size=(2, 2))
884
+
885
+ def_gen.multivariate_hypergeometric([3, 5, 7], 2)
886
+ def_gen.multivariate_hypergeometric(np.array([3, 5, 7]), 2)
887
+ def_gen.multivariate_hypergeometric(np.array([3, 5, 7]), 2, size=4)
888
+ def_gen.multivariate_hypergeometric(np.array([3, 5, 7]), 2, size=(4, 7))
889
+ def_gen.multivariate_hypergeometric([3, 5, 7], 2, method="count")
890
+ def_gen.multivariate_hypergeometric(np.array([3, 5, 7]), 2, method="marginals")
891
+
892
+ def_gen.multivariate_normal([0.0], [[1.0]])
893
+ def_gen.multivariate_normal([0.0], np.array([[1.0]]))
894
+ def_gen.multivariate_normal(np.array([0.0]), [[1.0]])
895
+ def_gen.multivariate_normal([0.0], np.array([[1.0]]))
896
+
897
+ def_gen.permutation(10)
898
+ def_gen.permutation([1, 2, 3, 4])
899
+ def_gen.permutation(np.array([1, 2, 3, 4]))
900
+ def_gen.permutation(D_2D, axis=1)
901
+ def_gen.permuted(D_2D)
902
+ def_gen.permuted(D_2D_like)
903
+ def_gen.permuted(D_2D, axis=1)
904
+ def_gen.permuted(D_2D, out=D_2D)
905
+ def_gen.permuted(D_2D_like, out=D_2D)
906
+ def_gen.permuted(D_2D_like, out=D_2D)
907
+ def_gen.permuted(D_2D, axis=1, out=D_2D)
908
+
909
+ def_gen.shuffle(np.arange(10))
910
+ def_gen.shuffle([1, 2, 3, 4, 5])
911
+ def_gen.shuffle(D_2D, axis=1)
912
+
913
+ def_gen.__str__()
914
+ def_gen.__repr__()
915
+ def_gen.__setstate__(dict(def_gen.bit_generator.state))
916
+
917
+ # RandomState
918
+ random_st: np.random.RandomState = np.random.RandomState()
919
+
920
+ random_st.standard_normal()
921
+ random_st.standard_normal(size=None)
922
+ random_st.standard_normal(size=1)
923
+
924
+ random_st.random()
925
+ random_st.random(size=None)
926
+ random_st.random(size=1)
927
+
928
+ random_st.standard_cauchy()
929
+ random_st.standard_cauchy(size=None)
930
+ random_st.standard_cauchy(size=1)
931
+
932
+ random_st.standard_exponential()
933
+ random_st.standard_exponential(size=None)
934
+ random_st.standard_exponential(size=1)
935
+
936
+ random_st.zipf(1.5)
937
+ random_st.zipf(1.5, size=None)
938
+ random_st.zipf(1.5, size=1)
939
+ random_st.zipf(D_arr_1p5)
940
+ random_st.zipf(D_arr_1p5, size=1)
941
+ random_st.zipf(D_arr_like_1p5)
942
+ random_st.zipf(D_arr_like_1p5, size=1)
943
+
944
+ random_st.weibull(0.5)
945
+ random_st.weibull(0.5, size=None)
946
+ random_st.weibull(0.5, size=1)
947
+ random_st.weibull(D_arr_0p5)
948
+ random_st.weibull(D_arr_0p5, size=1)
949
+ random_st.weibull(D_arr_like_0p5)
950
+ random_st.weibull(D_arr_like_0p5, size=1)
951
+
952
+ random_st.standard_t(0.5)
953
+ random_st.standard_t(0.5, size=None)
954
+ random_st.standard_t(0.5, size=1)
955
+ random_st.standard_t(D_arr_0p5)
956
+ random_st.standard_t(D_arr_0p5, size=1)
957
+ random_st.standard_t(D_arr_like_0p5)
958
+ random_st.standard_t(D_arr_like_0p5, size=1)
959
+
960
+ random_st.poisson(0.5)
961
+ random_st.poisson(0.5, size=None)
962
+ random_st.poisson(0.5, size=1)
963
+ random_st.poisson(D_arr_0p5)
964
+ random_st.poisson(D_arr_0p5, size=1)
965
+ random_st.poisson(D_arr_like_0p5)
966
+ random_st.poisson(D_arr_like_0p5, size=1)
967
+
968
+ random_st.power(0.5)
969
+ random_st.power(0.5, size=None)
970
+ random_st.power(0.5, size=1)
971
+ random_st.power(D_arr_0p5)
972
+ random_st.power(D_arr_0p5, size=1)
973
+ random_st.power(D_arr_like_0p5)
974
+ random_st.power(D_arr_like_0p5, size=1)
975
+
976
+ random_st.pareto(0.5)
977
+ random_st.pareto(0.5, size=None)
978
+ random_st.pareto(0.5, size=1)
979
+ random_st.pareto(D_arr_0p5)
980
+ random_st.pareto(D_arr_0p5, size=1)
981
+ random_st.pareto(D_arr_like_0p5)
982
+ random_st.pareto(D_arr_like_0p5, size=1)
983
+
984
+ random_st.chisquare(0.5)
985
+ random_st.chisquare(0.5, size=None)
986
+ random_st.chisquare(0.5, size=1)
987
+ random_st.chisquare(D_arr_0p5)
988
+ random_st.chisquare(D_arr_0p5, size=1)
989
+ random_st.chisquare(D_arr_like_0p5)
990
+ random_st.chisquare(D_arr_like_0p5, size=1)
991
+
992
+ random_st.exponential(0.5)
993
+ random_st.exponential(0.5, size=None)
994
+ random_st.exponential(0.5, size=1)
995
+ random_st.exponential(D_arr_0p5)
996
+ random_st.exponential(D_arr_0p5, size=1)
997
+ random_st.exponential(D_arr_like_0p5)
998
+ random_st.exponential(D_arr_like_0p5, size=1)
999
+
1000
+ random_st.geometric(0.5)
1001
+ random_st.geometric(0.5, size=None)
1002
+ random_st.geometric(0.5, size=1)
1003
+ random_st.geometric(D_arr_0p5)
1004
+ random_st.geometric(D_arr_0p5, size=1)
1005
+ random_st.geometric(D_arr_like_0p5)
1006
+ random_st.geometric(D_arr_like_0p5, size=1)
1007
+
1008
+ random_st.logseries(0.5)
1009
+ random_st.logseries(0.5, size=None)
1010
+ random_st.logseries(0.5, size=1)
1011
+ random_st.logseries(D_arr_0p5)
1012
+ random_st.logseries(D_arr_0p5, size=1)
1013
+ random_st.logseries(D_arr_like_0p5)
1014
+ random_st.logseries(D_arr_like_0p5, size=1)
1015
+
1016
+ random_st.rayleigh(0.5)
1017
+ random_st.rayleigh(0.5, size=None)
1018
+ random_st.rayleigh(0.5, size=1)
1019
+ random_st.rayleigh(D_arr_0p5)
1020
+ random_st.rayleigh(D_arr_0p5, size=1)
1021
+ random_st.rayleigh(D_arr_like_0p5)
1022
+ random_st.rayleigh(D_arr_like_0p5, size=1)
1023
+
1024
+ random_st.standard_gamma(0.5)
1025
+ random_st.standard_gamma(0.5, size=None)
1026
+ random_st.standard_gamma(0.5, size=1)
1027
+ random_st.standard_gamma(D_arr_0p5)
1028
+ random_st.standard_gamma(D_arr_0p5, size=1)
1029
+ random_st.standard_gamma(D_arr_like_0p5)
1030
+ random_st.standard_gamma(D_arr_like_0p5, size=1)
1031
+ random_st.standard_gamma(D_arr_like_0p5, size=1)
1032
+
1033
+ random_st.vonmises(0.5, 0.5)
1034
+ random_st.vonmises(0.5, 0.5, size=None)
1035
+ random_st.vonmises(0.5, 0.5, size=1)
1036
+ random_st.vonmises(D_arr_0p5, 0.5)
1037
+ random_st.vonmises(0.5, D_arr_0p5)
1038
+ random_st.vonmises(D_arr_0p5, 0.5, size=1)
1039
+ random_st.vonmises(0.5, D_arr_0p5, size=1)
1040
+ random_st.vonmises(D_arr_like_0p5, 0.5)
1041
+ random_st.vonmises(0.5, D_arr_like_0p5)
1042
+ random_st.vonmises(D_arr_0p5, D_arr_0p5)
1043
+ random_st.vonmises(D_arr_like_0p5, D_arr_like_0p5)
1044
+ random_st.vonmises(D_arr_0p5, D_arr_0p5, size=1)
1045
+ random_st.vonmises(D_arr_like_0p5, D_arr_like_0p5, size=1)
1046
+
1047
+ random_st.wald(0.5, 0.5)
1048
+ random_st.wald(0.5, 0.5, size=None)
1049
+ random_st.wald(0.5, 0.5, size=1)
1050
+ random_st.wald(D_arr_0p5, 0.5)
1051
+ random_st.wald(0.5, D_arr_0p5)
1052
+ random_st.wald(D_arr_0p5, 0.5, size=1)
1053
+ random_st.wald(0.5, D_arr_0p5, size=1)
1054
+ random_st.wald(D_arr_like_0p5, 0.5)
1055
+ random_st.wald(0.5, D_arr_like_0p5)
1056
+ random_st.wald(D_arr_0p5, D_arr_0p5)
1057
+ random_st.wald(D_arr_like_0p5, D_arr_like_0p5)
1058
+ random_st.wald(D_arr_0p5, D_arr_0p5, size=1)
1059
+ random_st.wald(D_arr_like_0p5, D_arr_like_0p5, size=1)
1060
+
1061
+ random_st.uniform(0.5, 0.5)
1062
+ random_st.uniform(0.5, 0.5, size=None)
1063
+ random_st.uniform(0.5, 0.5, size=1)
1064
+ random_st.uniform(D_arr_0p5, 0.5)
1065
+ random_st.uniform(0.5, D_arr_0p5)
1066
+ random_st.uniform(D_arr_0p5, 0.5, size=1)
1067
+ random_st.uniform(0.5, D_arr_0p5, size=1)
1068
+ random_st.uniform(D_arr_like_0p5, 0.5)
1069
+ random_st.uniform(0.5, D_arr_like_0p5)
1070
+ random_st.uniform(D_arr_0p5, D_arr_0p5)
1071
+ random_st.uniform(D_arr_like_0p5, D_arr_like_0p5)
1072
+ random_st.uniform(D_arr_0p5, D_arr_0p5, size=1)
1073
+ random_st.uniform(D_arr_like_0p5, D_arr_like_0p5, size=1)
1074
+
1075
+ random_st.beta(0.5, 0.5)
1076
+ random_st.beta(0.5, 0.5, size=None)
1077
+ random_st.beta(0.5, 0.5, size=1)
1078
+ random_st.beta(D_arr_0p5, 0.5)
1079
+ random_st.beta(0.5, D_arr_0p5)
1080
+ random_st.beta(D_arr_0p5, 0.5, size=1)
1081
+ random_st.beta(0.5, D_arr_0p5, size=1)
1082
+ random_st.beta(D_arr_like_0p5, 0.5)
1083
+ random_st.beta(0.5, D_arr_like_0p5)
1084
+ random_st.beta(D_arr_0p5, D_arr_0p5)
1085
+ random_st.beta(D_arr_like_0p5, D_arr_like_0p5)
1086
+ random_st.beta(D_arr_0p5, D_arr_0p5, size=1)
1087
+ random_st.beta(D_arr_like_0p5, D_arr_like_0p5, size=1)
1088
+
1089
+ random_st.f(0.5, 0.5)
1090
+ random_st.f(0.5, 0.5, size=None)
1091
+ random_st.f(0.5, 0.5, size=1)
1092
+ random_st.f(D_arr_0p5, 0.5)
1093
+ random_st.f(0.5, D_arr_0p5)
1094
+ random_st.f(D_arr_0p5, 0.5, size=1)
1095
+ random_st.f(0.5, D_arr_0p5, size=1)
1096
+ random_st.f(D_arr_like_0p5, 0.5)
1097
+ random_st.f(0.5, D_arr_like_0p5)
1098
+ random_st.f(D_arr_0p5, D_arr_0p5)
1099
+ random_st.f(D_arr_like_0p5, D_arr_like_0p5)
1100
+ random_st.f(D_arr_0p5, D_arr_0p5, size=1)
1101
+ random_st.f(D_arr_like_0p5, D_arr_like_0p5, size=1)
1102
+
1103
+ random_st.gamma(0.5, 0.5)
1104
+ random_st.gamma(0.5, 0.5, size=None)
1105
+ random_st.gamma(0.5, 0.5, size=1)
1106
+ random_st.gamma(D_arr_0p5, 0.5)
1107
+ random_st.gamma(0.5, D_arr_0p5)
1108
+ random_st.gamma(D_arr_0p5, 0.5, size=1)
1109
+ random_st.gamma(0.5, D_arr_0p5, size=1)
1110
+ random_st.gamma(D_arr_like_0p5, 0.5)
1111
+ random_st.gamma(0.5, D_arr_like_0p5)
1112
+ random_st.gamma(D_arr_0p5, D_arr_0p5)
1113
+ random_st.gamma(D_arr_like_0p5, D_arr_like_0p5)
1114
+ random_st.gamma(D_arr_0p5, D_arr_0p5, size=1)
1115
+ random_st.gamma(D_arr_like_0p5, D_arr_like_0p5, size=1)
1116
+
1117
+ random_st.gumbel(0.5, 0.5)
1118
+ random_st.gumbel(0.5, 0.5, size=None)
1119
+ random_st.gumbel(0.5, 0.5, size=1)
1120
+ random_st.gumbel(D_arr_0p5, 0.5)
1121
+ random_st.gumbel(0.5, D_arr_0p5)
1122
+ random_st.gumbel(D_arr_0p5, 0.5, size=1)
1123
+ random_st.gumbel(0.5, D_arr_0p5, size=1)
1124
+ random_st.gumbel(D_arr_like_0p5, 0.5)
1125
+ random_st.gumbel(0.5, D_arr_like_0p5)
1126
+ random_st.gumbel(D_arr_0p5, D_arr_0p5)
1127
+ random_st.gumbel(D_arr_like_0p5, D_arr_like_0p5)
1128
+ random_st.gumbel(D_arr_0p5, D_arr_0p5, size=1)
1129
+ random_st.gumbel(D_arr_like_0p5, D_arr_like_0p5, size=1)
1130
+
1131
+ random_st.laplace(0.5, 0.5)
1132
+ random_st.laplace(0.5, 0.5, size=None)
1133
+ random_st.laplace(0.5, 0.5, size=1)
1134
+ random_st.laplace(D_arr_0p5, 0.5)
1135
+ random_st.laplace(0.5, D_arr_0p5)
1136
+ random_st.laplace(D_arr_0p5, 0.5, size=1)
1137
+ random_st.laplace(0.5, D_arr_0p5, size=1)
1138
+ random_st.laplace(D_arr_like_0p5, 0.5)
1139
+ random_st.laplace(0.5, D_arr_like_0p5)
1140
+ random_st.laplace(D_arr_0p5, D_arr_0p5)
1141
+ random_st.laplace(D_arr_like_0p5, D_arr_like_0p5)
1142
+ random_st.laplace(D_arr_0p5, D_arr_0p5, size=1)
1143
+ random_st.laplace(D_arr_like_0p5, D_arr_like_0p5, size=1)
1144
+
1145
+ random_st.logistic(0.5, 0.5)
1146
+ random_st.logistic(0.5, 0.5, size=None)
1147
+ random_st.logistic(0.5, 0.5, size=1)
1148
+ random_st.logistic(D_arr_0p5, 0.5)
1149
+ random_st.logistic(0.5, D_arr_0p5)
1150
+ random_st.logistic(D_arr_0p5, 0.5, size=1)
1151
+ random_st.logistic(0.5, D_arr_0p5, size=1)
1152
+ random_st.logistic(D_arr_like_0p5, 0.5)
1153
+ random_st.logistic(0.5, D_arr_like_0p5)
1154
+ random_st.logistic(D_arr_0p5, D_arr_0p5)
1155
+ random_st.logistic(D_arr_like_0p5, D_arr_like_0p5)
1156
+ random_st.logistic(D_arr_0p5, D_arr_0p5, size=1)
1157
+ random_st.logistic(D_arr_like_0p5, D_arr_like_0p5, size=1)
1158
+
1159
+ random_st.lognormal(0.5, 0.5)
1160
+ random_st.lognormal(0.5, 0.5, size=None)
1161
+ random_st.lognormal(0.5, 0.5, size=1)
1162
+ random_st.lognormal(D_arr_0p5, 0.5)
1163
+ random_st.lognormal(0.5, D_arr_0p5)
1164
+ random_st.lognormal(D_arr_0p5, 0.5, size=1)
1165
+ random_st.lognormal(0.5, D_arr_0p5, size=1)
1166
+ random_st.lognormal(D_arr_like_0p5, 0.5)
1167
+ random_st.lognormal(0.5, D_arr_like_0p5)
1168
+ random_st.lognormal(D_arr_0p5, D_arr_0p5)
1169
+ random_st.lognormal(D_arr_like_0p5, D_arr_like_0p5)
1170
+ random_st.lognormal(D_arr_0p5, D_arr_0p5, size=1)
1171
+ random_st.lognormal(D_arr_like_0p5, D_arr_like_0p5, size=1)
1172
+
1173
+ random_st.noncentral_chisquare(0.5, 0.5)
1174
+ random_st.noncentral_chisquare(0.5, 0.5, size=None)
1175
+ random_st.noncentral_chisquare(0.5, 0.5, size=1)
1176
+ random_st.noncentral_chisquare(D_arr_0p5, 0.5)
1177
+ random_st.noncentral_chisquare(0.5, D_arr_0p5)
1178
+ random_st.noncentral_chisquare(D_arr_0p5, 0.5, size=1)
1179
+ random_st.noncentral_chisquare(0.5, D_arr_0p5, size=1)
1180
+ random_st.noncentral_chisquare(D_arr_like_0p5, 0.5)
1181
+ random_st.noncentral_chisquare(0.5, D_arr_like_0p5)
1182
+ random_st.noncentral_chisquare(D_arr_0p5, D_arr_0p5)
1183
+ random_st.noncentral_chisquare(D_arr_like_0p5, D_arr_like_0p5)
1184
+ random_st.noncentral_chisquare(D_arr_0p5, D_arr_0p5, size=1)
1185
+ random_st.noncentral_chisquare(D_arr_like_0p5, D_arr_like_0p5, size=1)
1186
+
1187
+ random_st.normal(0.5, 0.5)
1188
+ random_st.normal(0.5, 0.5, size=None)
1189
+ random_st.normal(0.5, 0.5, size=1)
1190
+ random_st.normal(D_arr_0p5, 0.5)
1191
+ random_st.normal(0.5, D_arr_0p5)
1192
+ random_st.normal(D_arr_0p5, 0.5, size=1)
1193
+ random_st.normal(0.5, D_arr_0p5, size=1)
1194
+ random_st.normal(D_arr_like_0p5, 0.5)
1195
+ random_st.normal(0.5, D_arr_like_0p5)
1196
+ random_st.normal(D_arr_0p5, D_arr_0p5)
1197
+ random_st.normal(D_arr_like_0p5, D_arr_like_0p5)
1198
+ random_st.normal(D_arr_0p5, D_arr_0p5, size=1)
1199
+ random_st.normal(D_arr_like_0p5, D_arr_like_0p5, size=1)
1200
+
1201
+ random_st.triangular(0.1, 0.5, 0.9)
1202
+ random_st.triangular(0.1, 0.5, 0.9, size=None)
1203
+ random_st.triangular(0.1, 0.5, 0.9, size=1)
1204
+ random_st.triangular(D_arr_0p1, 0.5, 0.9)
1205
+ random_st.triangular(0.1, D_arr_0p5, 0.9)
1206
+ random_st.triangular(D_arr_0p1, 0.5, D_arr_like_0p9, size=1)
1207
+ random_st.triangular(0.1, D_arr_0p5, 0.9, size=1)
1208
+ random_st.triangular(D_arr_like_0p1, 0.5, D_arr_0p9)
1209
+ random_st.triangular(0.5, D_arr_like_0p5, 0.9)
1210
+ random_st.triangular(D_arr_0p1, D_arr_0p5, 0.9)
1211
+ random_st.triangular(D_arr_like_0p1, D_arr_like_0p5, 0.9)
1212
+ random_st.triangular(D_arr_0p1, D_arr_0p5, D_arr_0p9, size=1)
1213
+ random_st.triangular(D_arr_like_0p1, D_arr_like_0p5, D_arr_like_0p9, size=1)
1214
+
1215
+ random_st.noncentral_f(0.1, 0.5, 0.9)
1216
+ random_st.noncentral_f(0.1, 0.5, 0.9, size=None)
1217
+ random_st.noncentral_f(0.1, 0.5, 0.9, size=1)
1218
+ random_st.noncentral_f(D_arr_0p1, 0.5, 0.9)
1219
+ random_st.noncentral_f(0.1, D_arr_0p5, 0.9)
1220
+ random_st.noncentral_f(D_arr_0p1, 0.5, D_arr_like_0p9, size=1)
1221
+ random_st.noncentral_f(0.1, D_arr_0p5, 0.9, size=1)
1222
+ random_st.noncentral_f(D_arr_like_0p1, 0.5, D_arr_0p9)
1223
+ random_st.noncentral_f(0.5, D_arr_like_0p5, 0.9)
1224
+ random_st.noncentral_f(D_arr_0p1, D_arr_0p5, 0.9)
1225
+ random_st.noncentral_f(D_arr_like_0p1, D_arr_like_0p5, 0.9)
1226
+ random_st.noncentral_f(D_arr_0p1, D_arr_0p5, D_arr_0p9, size=1)
1227
+ random_st.noncentral_f(D_arr_like_0p1, D_arr_like_0p5, D_arr_like_0p9, size=1)
1228
+
1229
+ random_st.binomial(10, 0.5)
1230
+ random_st.binomial(10, 0.5, size=None)
1231
+ random_st.binomial(10, 0.5, size=1)
1232
+ random_st.binomial(I_arr_10, 0.5)
1233
+ random_st.binomial(10, D_arr_0p5)
1234
+ random_st.binomial(I_arr_10, 0.5, size=1)
1235
+ random_st.binomial(10, D_arr_0p5, size=1)
1236
+ random_st.binomial(I_arr_like_10, 0.5)
1237
+ random_st.binomial(10, D_arr_like_0p5)
1238
+ random_st.binomial(I_arr_10, D_arr_0p5)
1239
+ random_st.binomial(I_arr_like_10, D_arr_like_0p5)
1240
+ random_st.binomial(I_arr_10, D_arr_0p5, size=1)
1241
+ random_st.binomial(I_arr_like_10, D_arr_like_0p5, size=1)
1242
+
1243
+ random_st.negative_binomial(10, 0.5)
1244
+ random_st.negative_binomial(10, 0.5, size=None)
1245
+ random_st.negative_binomial(10, 0.5, size=1)
1246
+ random_st.negative_binomial(I_arr_10, 0.5)
1247
+ random_st.negative_binomial(10, D_arr_0p5)
1248
+ random_st.negative_binomial(I_arr_10, 0.5, size=1)
1249
+ random_st.negative_binomial(10, D_arr_0p5, size=1)
1250
+ random_st.negative_binomial(I_arr_like_10, 0.5)
1251
+ random_st.negative_binomial(10, D_arr_like_0p5)
1252
+ random_st.negative_binomial(I_arr_10, D_arr_0p5)
1253
+ random_st.negative_binomial(I_arr_like_10, D_arr_like_0p5)
1254
+ random_st.negative_binomial(I_arr_10, D_arr_0p5, size=1)
1255
+ random_st.negative_binomial(I_arr_like_10, D_arr_like_0p5, size=1)
1256
+
1257
+ random_st.hypergeometric(20, 20, 10)
1258
+ random_st.hypergeometric(20, 20, 10, size=None)
1259
+ random_st.hypergeometric(20, 20, 10, size=1)
1260
+ random_st.hypergeometric(I_arr_20, 20, 10)
1261
+ random_st.hypergeometric(20, I_arr_20, 10)
1262
+ random_st.hypergeometric(I_arr_20, 20, I_arr_like_10, size=1)
1263
+ random_st.hypergeometric(20, I_arr_20, 10, size=1)
1264
+ random_st.hypergeometric(I_arr_like_20, 20, I_arr_10)
1265
+ random_st.hypergeometric(20, I_arr_like_20, 10)
1266
+ random_st.hypergeometric(I_arr_20, I_arr_20, 10)
1267
+ random_st.hypergeometric(I_arr_like_20, I_arr_like_20, 10)
1268
+ random_st.hypergeometric(I_arr_20, I_arr_20, I_arr_10, size=1)
1269
+ random_st.hypergeometric(I_arr_like_20, I_arr_like_20, I_arr_like_10, size=1)
1270
+
1271
+ random_st.randint(0, 100)
1272
+ random_st.randint(100)
1273
+ random_st.randint([100])
1274
+ random_st.randint(0, [100])
1275
+
1276
+ random_st.randint(2, dtype=bool)
1277
+ random_st.randint(0, 2, dtype=bool)
1278
+ random_st.randint(I_bool_high_open, dtype=bool)
1279
+ random_st.randint(I_bool_low, I_bool_high_open, dtype=bool)
1280
+ random_st.randint(0, I_bool_high_open, dtype=bool)
1281
+
1282
+ random_st.randint(2, dtype=np.bool)
1283
+ random_st.randint(0, 2, dtype=np.bool)
1284
+ random_st.randint(I_bool_high_open, dtype=np.bool)
1285
+ random_st.randint(I_bool_low, I_bool_high_open, dtype=np.bool)
1286
+ random_st.randint(0, I_bool_high_open, dtype=np.bool)
1287
+
1288
+ random_st.randint(256, dtype="u1")
1289
+ random_st.randint(0, 256, dtype="u1")
1290
+ random_st.randint(I_u1_high_open, dtype="u1")
1291
+ random_st.randint(I_u1_low, I_u1_high_open, dtype="u1")
1292
+ random_st.randint(0, I_u1_high_open, dtype="u1")
1293
+
1294
+ random_st.randint(256, dtype="uint8")
1295
+ random_st.randint(0, 256, dtype="uint8")
1296
+ random_st.randint(I_u1_high_open, dtype="uint8")
1297
+ random_st.randint(I_u1_low, I_u1_high_open, dtype="uint8")
1298
+ random_st.randint(0, I_u1_high_open, dtype="uint8")
1299
+
1300
+ random_st.randint(256, dtype=np.uint8)
1301
+ random_st.randint(0, 256, dtype=np.uint8)
1302
+ random_st.randint(I_u1_high_open, dtype=np.uint8)
1303
+ random_st.randint(I_u1_low, I_u1_high_open, dtype=np.uint8)
1304
+ random_st.randint(0, I_u1_high_open, dtype=np.uint8)
1305
+
1306
+ random_st.randint(65536, dtype="u2")
1307
+ random_st.randint(0, 65536, dtype="u2")
1308
+ random_st.randint(I_u2_high_open, dtype="u2")
1309
+ random_st.randint(I_u2_low, I_u2_high_open, dtype="u2")
1310
+ random_st.randint(0, I_u2_high_open, dtype="u2")
1311
+
1312
+ random_st.randint(65536, dtype="uint16")
1313
+ random_st.randint(0, 65536, dtype="uint16")
1314
+ random_st.randint(I_u2_high_open, dtype="uint16")
1315
+ random_st.randint(I_u2_low, I_u2_high_open, dtype="uint16")
1316
+ random_st.randint(0, I_u2_high_open, dtype="uint16")
1317
+
1318
+ random_st.randint(65536, dtype=np.uint16)
1319
+ random_st.randint(0, 65536, dtype=np.uint16)
1320
+ random_st.randint(I_u2_high_open, dtype=np.uint16)
1321
+ random_st.randint(I_u2_low, I_u2_high_open, dtype=np.uint16)
1322
+ random_st.randint(0, I_u2_high_open, dtype=np.uint16)
1323
+
1324
+ random_st.randint(4294967296, dtype="u4")
1325
+ random_st.randint(0, 4294967296, dtype="u4")
1326
+ random_st.randint(I_u4_high_open, dtype="u4")
1327
+ random_st.randint(I_u4_low, I_u4_high_open, dtype="u4")
1328
+ random_st.randint(0, I_u4_high_open, dtype="u4")
1329
+
1330
+ random_st.randint(4294967296, dtype="uint32")
1331
+ random_st.randint(0, 4294967296, dtype="uint32")
1332
+ random_st.randint(I_u4_high_open, dtype="uint32")
1333
+ random_st.randint(I_u4_low, I_u4_high_open, dtype="uint32")
1334
+ random_st.randint(0, I_u4_high_open, dtype="uint32")
1335
+
1336
+ random_st.randint(4294967296, dtype=np.uint32)
1337
+ random_st.randint(0, 4294967296, dtype=np.uint32)
1338
+ random_st.randint(I_u4_high_open, dtype=np.uint32)
1339
+ random_st.randint(I_u4_low, I_u4_high_open, dtype=np.uint32)
1340
+ random_st.randint(0, I_u4_high_open, dtype=np.uint32)
1341
+
1342
+
1343
+ random_st.randint(18446744073709551616, dtype="u8")
1344
+ random_st.randint(0, 18446744073709551616, dtype="u8")
1345
+ random_st.randint(I_u8_high_open, dtype="u8")
1346
+ random_st.randint(I_u8_low, I_u8_high_open, dtype="u8")
1347
+ random_st.randint(0, I_u8_high_open, dtype="u8")
1348
+
1349
+ random_st.randint(18446744073709551616, dtype="uint64")
1350
+ random_st.randint(0, 18446744073709551616, dtype="uint64")
1351
+ random_st.randint(I_u8_high_open, dtype="uint64")
1352
+ random_st.randint(I_u8_low, I_u8_high_open, dtype="uint64")
1353
+ random_st.randint(0, I_u8_high_open, dtype="uint64")
1354
+
1355
+ random_st.randint(18446744073709551616, dtype=np.uint64)
1356
+ random_st.randint(0, 18446744073709551616, dtype=np.uint64)
1357
+ random_st.randint(I_u8_high_open, dtype=np.uint64)
1358
+ random_st.randint(I_u8_low, I_u8_high_open, dtype=np.uint64)
1359
+ random_st.randint(0, I_u8_high_open, dtype=np.uint64)
1360
+
1361
+ random_st.randint(128, dtype="i1")
1362
+ random_st.randint(-128, 128, dtype="i1")
1363
+ random_st.randint(I_i1_high_open, dtype="i1")
1364
+ random_st.randint(I_i1_low, I_i1_high_open, dtype="i1")
1365
+ random_st.randint(-128, I_i1_high_open, dtype="i1")
1366
+
1367
+ random_st.randint(128, dtype="int8")
1368
+ random_st.randint(-128, 128, dtype="int8")
1369
+ random_st.randint(I_i1_high_open, dtype="int8")
1370
+ random_st.randint(I_i1_low, I_i1_high_open, dtype="int8")
1371
+ random_st.randint(-128, I_i1_high_open, dtype="int8")
1372
+
1373
+ random_st.randint(128, dtype=np.int8)
1374
+ random_st.randint(-128, 128, dtype=np.int8)
1375
+ random_st.randint(I_i1_high_open, dtype=np.int8)
1376
+ random_st.randint(I_i1_low, I_i1_high_open, dtype=np.int8)
1377
+ random_st.randint(-128, I_i1_high_open, dtype=np.int8)
1378
+
1379
+ random_st.randint(32768, dtype="i2")
1380
+ random_st.randint(-32768, 32768, dtype="i2")
1381
+ random_st.randint(I_i2_high_open, dtype="i2")
1382
+ random_st.randint(I_i2_low, I_i2_high_open, dtype="i2")
1383
+ random_st.randint(-32768, I_i2_high_open, dtype="i2")
1384
+ random_st.randint(32768, dtype="int16")
1385
+ random_st.randint(-32768, 32768, dtype="int16")
1386
+ random_st.randint(I_i2_high_open, dtype="int16")
1387
+ random_st.randint(I_i2_low, I_i2_high_open, dtype="int16")
1388
+ random_st.randint(-32768, I_i2_high_open, dtype="int16")
1389
+ random_st.randint(32768, dtype=np.int16)
1390
+ random_st.randint(-32768, 32768, dtype=np.int16)
1391
+ random_st.randint(I_i2_high_open, dtype=np.int16)
1392
+ random_st.randint(I_i2_low, I_i2_high_open, dtype=np.int16)
1393
+ random_st.randint(-32768, I_i2_high_open, dtype=np.int16)
1394
+
1395
+ random_st.randint(2147483648, dtype="i4")
1396
+ random_st.randint(-2147483648, 2147483648, dtype="i4")
1397
+ random_st.randint(I_i4_high_open, dtype="i4")
1398
+ random_st.randint(I_i4_low, I_i4_high_open, dtype="i4")
1399
+ random_st.randint(-2147483648, I_i4_high_open, dtype="i4")
1400
+
1401
+ random_st.randint(2147483648, dtype="int32")
1402
+ random_st.randint(-2147483648, 2147483648, dtype="int32")
1403
+ random_st.randint(I_i4_high_open, dtype="int32")
1404
+ random_st.randint(I_i4_low, I_i4_high_open, dtype="int32")
1405
+ random_st.randint(-2147483648, I_i4_high_open, dtype="int32")
1406
+
1407
+ random_st.randint(2147483648, dtype=np.int32)
1408
+ random_st.randint(-2147483648, 2147483648, dtype=np.int32)
1409
+ random_st.randint(I_i4_high_open, dtype=np.int32)
1410
+ random_st.randint(I_i4_low, I_i4_high_open, dtype=np.int32)
1411
+ random_st.randint(-2147483648, I_i4_high_open, dtype=np.int32)
1412
+
1413
+ random_st.randint(9223372036854775808, dtype="i8")
1414
+ random_st.randint(-9223372036854775808, 9223372036854775808, dtype="i8")
1415
+ random_st.randint(I_i8_high_open, dtype="i8")
1416
+ random_st.randint(I_i8_low, I_i8_high_open, dtype="i8")
1417
+ random_st.randint(-9223372036854775808, I_i8_high_open, dtype="i8")
1418
+
1419
+ random_st.randint(9223372036854775808, dtype="int64")
1420
+ random_st.randint(-9223372036854775808, 9223372036854775808, dtype="int64")
1421
+ random_st.randint(I_i8_high_open, dtype="int64")
1422
+ random_st.randint(I_i8_low, I_i8_high_open, dtype="int64")
1423
+ random_st.randint(-9223372036854775808, I_i8_high_open, dtype="int64")
1424
+
1425
+ random_st.randint(9223372036854775808, dtype=np.int64)
1426
+ random_st.randint(-9223372036854775808, 9223372036854775808, dtype=np.int64)
1427
+ random_st.randint(I_i8_high_open, dtype=np.int64)
1428
+ random_st.randint(I_i8_low, I_i8_high_open, dtype=np.int64)
1429
+ random_st.randint(-9223372036854775808, I_i8_high_open, dtype=np.int64)
1430
+
1431
+ bg: np.random.BitGenerator = random_st._bit_generator
1432
+
1433
+ random_st.bytes(2)
1434
+
1435
+ random_st.choice(5)
1436
+ random_st.choice(5, 3)
1437
+ random_st.choice(5, 3, replace=True)
1438
+ random_st.choice(5, 3, p=[1 / 5] * 5)
1439
+ random_st.choice(5, 3, p=[1 / 5] * 5, replace=False)
1440
+
1441
+ random_st.choice(["pooh", "rabbit", "piglet", "Christopher"])
1442
+ random_st.choice(["pooh", "rabbit", "piglet", "Christopher"], 3)
1443
+ random_st.choice(["pooh", "rabbit", "piglet", "Christopher"], 3, p=[1 / 4] * 4)
1444
+ random_st.choice(["pooh", "rabbit", "piglet", "Christopher"], 3, replace=True)
1445
+ random_st.choice(["pooh", "rabbit", "piglet", "Christopher"], 3, replace=False, p=np.array([1 / 8, 1 / 8, 1 / 2, 1 / 4]))
1446
+
1447
+ random_st.dirichlet([0.5, 0.5])
1448
+ random_st.dirichlet(np.array([0.5, 0.5]))
1449
+ random_st.dirichlet(np.array([0.5, 0.5]), size=3)
1450
+
1451
+ random_st.multinomial(20, [1 / 6.0] * 6)
1452
+ random_st.multinomial(20, np.array([0.5, 0.5]))
1453
+ random_st.multinomial(20, [1 / 6.0] * 6, size=2)
1454
+
1455
+ random_st.multivariate_normal([0.0], [[1.0]])
1456
+ random_st.multivariate_normal([0.0], np.array([[1.0]]))
1457
+ random_st.multivariate_normal(np.array([0.0]), [[1.0]])
1458
+ random_st.multivariate_normal([0.0], np.array([[1.0]]))
1459
+
1460
+ random_st.permutation(10)
1461
+ random_st.permutation([1, 2, 3, 4])
1462
+ random_st.permutation(np.array([1, 2, 3, 4]))
1463
+ random_st.permutation(D_2D)
1464
+
1465
+ random_st.shuffle(np.arange(10))
1466
+ random_st.shuffle([1, 2, 3, 4, 5])
1467
+ random_st.shuffle(D_2D)
1468
+
1469
+ np.random.RandomState(SEED_PCG64)
1470
+ np.random.RandomState(0)
1471
+ np.random.RandomState([0, 1, 2])
1472
+ random_st.__str__()
1473
+ random_st.__repr__()
1474
+ random_st_state = random_st.__getstate__()
1475
+ random_st.__setstate__(random_st_state)
1476
+ random_st.seed()
1477
+ random_st.seed(1)
1478
+ random_st.seed([0, 1])
1479
+ random_st_get_state = random_st.get_state()
1480
+ random_st_get_state_legacy = random_st.get_state(legacy=True)
1481
+ random_st.set_state(random_st_get_state)
1482
+
1483
+ random_st.rand()
1484
+ random_st.rand(1)
1485
+ random_st.rand(1, 2)
1486
+ random_st.randn()
1487
+ random_st.randn(1)
1488
+ random_st.randn(1, 2)
1489
+ random_st.random_sample()
1490
+ random_st.random_sample(1)
1491
+ random_st.random_sample(size=(1, 2))
1492
+
1493
+ random_st.tomaxint()
1494
+ random_st.tomaxint(1)
1495
+ random_st.tomaxint((1,))
1496
+
1497
+ np.random.mtrand.set_bit_generator(SEED_PCG64)
1498
+ np.random.mtrand.get_bit_generator()
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/recfunctions.py ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """These tests are based on the doctests from `numpy/lib/recfunctions.py`."""
2
+
3
+ from typing import Any, assert_type
4
+
5
+ import numpy as np
6
+ import numpy.typing as npt
7
+ from numpy.lib import recfunctions as rfn
8
+
9
+
10
+ def test_recursive_fill_fields() -> None:
11
+ a: npt.NDArray[np.void] = np.array(
12
+ [(1, 10.0), (2, 20.0)],
13
+ dtype=[("A", np.int64), ("B", np.float64)],
14
+ )
15
+ b = np.zeros((3,), dtype=a.dtype)
16
+ out = rfn.recursive_fill_fields(a, b)
17
+ assert_type(out, np.ndarray[tuple[int], np.dtype[np.void]])
18
+
19
+
20
+ def test_get_names() -> None:
21
+ names: tuple[str | Any, ...]
22
+ names = rfn.get_names(np.empty((1,), dtype=[("A", int)]).dtype)
23
+ names = rfn.get_names(np.empty((1,), dtype=[("A", int), ("B", float)]).dtype)
24
+
25
+ adtype = np.dtype([("a", int), ("b", [("b_a", int), ("b_b", int)])])
26
+ names = rfn.get_names(adtype)
27
+
28
+
29
+ def test_get_names_flat() -> None:
30
+ names: tuple[str, ...]
31
+ names = rfn.get_names_flat(np.empty((1,), dtype=[("A", int)]).dtype)
32
+ names = rfn.get_names_flat(np.empty((1,), dtype=[("A", int), ("B", float)]).dtype)
33
+
34
+ adtype = np.dtype([("a", int), ("b", [("b_a", int), ("b_b", int)])])
35
+ names = rfn.get_names_flat(adtype)
36
+
37
+
38
+ def test_flatten_descr() -> None:
39
+ ndtype = np.dtype([("a", "<i4"), ("b", [("b_a", "<f8"), ("b_b", "<i4")])])
40
+ assert_type(rfn.flatten_descr(ndtype), tuple[tuple[str, np.dtype]])
41
+
42
+
43
+ def test_get_fieldstructure() -> None:
44
+ ndtype = np.dtype([
45
+ ("A", int),
46
+ ("B", [("B_A", int), ("B_B", [("B_B_A", int), ("B_B_B", int)])]),
47
+ ])
48
+ assert_type(rfn.get_fieldstructure(ndtype), dict[str, list[str]])
49
+
50
+
51
+ def test_merge_arrays() -> None:
52
+ assert_type(
53
+ rfn.merge_arrays((
54
+ np.ones((2,), np.int_),
55
+ np.ones((3,), np.float64),
56
+ )),
57
+ np.recarray[tuple[int], np.dtype[np.void]],
58
+ )
59
+
60
+
61
+ def test_drop_fields() -> None:
62
+ ndtype = [("a", np.int64), ("b", [("b_a", np.double), ("b_b", np.int64)])]
63
+ a = np.ones((3,), dtype=ndtype)
64
+
65
+ assert_type(
66
+ rfn.drop_fields(a, "a"),
67
+ np.ndarray[tuple[int], np.dtype[np.void]],
68
+ )
69
+ assert_type(
70
+ rfn.drop_fields(a, "a", asrecarray=True),
71
+ np.rec.recarray[tuple[int], np.dtype[np.void]],
72
+ )
73
+ assert_type(
74
+ rfn.rec_drop_fields(a, "a"),
75
+ np.rec.recarray[tuple[int], np.dtype[np.void]],
76
+ )
77
+
78
+
79
+ def test_rename_fields() -> None:
80
+ ndtype = [("a", np.int64), ("b", [("b_a", np.double), ("b_b", np.int64)])]
81
+ a = np.ones((3,), dtype=ndtype)
82
+
83
+ assert_type(
84
+ rfn.rename_fields(a, {"a": "A", "b_b": "B_B"}),
85
+ np.ndarray[tuple[int], np.dtype[np.void]],
86
+ )
87
+
88
+
89
+ def test_repack_fields() -> None:
90
+ dt: np.dtype[np.void] = np.dtype("u1, <i8, <f8", align=True)
91
+
92
+ assert_type(rfn.repack_fields(dt), np.dtype[np.void])
93
+ assert_type(rfn.repack_fields(dt.type(0)), np.void)
94
+ assert_type(
95
+ rfn.repack_fields(np.ones((3,), dtype=dt)),
96
+ np.ndarray[tuple[int], np.dtype[np.void]],
97
+ )
98
+
99
+
100
+ def test_structured_to_unstructured() -> None:
101
+ a = np.zeros(4, dtype=[("a", "i4"), ("b", "f4,u2"), ("c", "f4", 2)])
102
+ assert_type(rfn.structured_to_unstructured(a), npt.NDArray[Any])
103
+
104
+
105
+ def unstructured_to_structured() -> None:
106
+ dt: np.dtype[np.void] = np.dtype([("a", "i4"), ("b", "f4,u2"), ("c", "f4", 2)])
107
+ a = np.arange(20, dtype=np.int32).reshape((4, 5))
108
+ assert_type(rfn.unstructured_to_structured(a, dt), npt.NDArray[np.void])
109
+
110
+
111
+ def test_apply_along_fields() -> None:
112
+ b = np.ones(4, dtype=[("x", "i4"), ("y", "f4"), ("z", "f8")])
113
+ assert_type(
114
+ rfn.apply_along_fields(np.mean, b),
115
+ np.ndarray[tuple[int], np.dtype[np.void]],
116
+ )
117
+
118
+
119
+ def test_assign_fields_by_name() -> None:
120
+ b = np.ones(4, dtype=[("x", "i4"), ("y", "f4"), ("z", "f8")])
121
+ assert_type(
122
+ rfn.apply_along_fields(np.mean, b),
123
+ np.ndarray[tuple[int], np.dtype[np.void]],
124
+ )
125
+
126
+
127
+ def test_require_fields() -> None:
128
+ a = np.ones(4, dtype=[("a", "i4"), ("b", "f8"), ("c", "u1")])
129
+ assert_type(
130
+ rfn.require_fields(a, [("b", "f4"), ("c", "u1")]),
131
+ np.ndarray[tuple[int], np.dtype[np.void]],
132
+ )
133
+
134
+
135
+ def test_stack_arrays() -> None:
136
+ x = np.zeros((2,), np.int32)
137
+ assert_type(
138
+ rfn.stack_arrays(x),
139
+ np.ndarray[tuple[int], np.dtype[np.int32]],
140
+ )
141
+
142
+ z = np.ones((2,), [("A", "|S3"), ("B", float)])
143
+ zz = np.ones((2,), [("A", "|S3"), ("B", np.float64), ("C", np.float64)])
144
+ assert_type(
145
+ rfn.stack_arrays((z, zz)),
146
+ np.ma.MaskedArray[tuple[Any, ...], np.dtype[np.void]],
147
+ )
148
+
149
+
150
+ def test_find_duplicates() -> None:
151
+ ndtype = np.dtype([("a", int)])
152
+
153
+ a = np.ma.ones(7).view(ndtype)
154
+ assert_type(
155
+ rfn.find_duplicates(a),
156
+ np.ma.MaskedArray[tuple[int], np.dtype[np.void]],
157
+ )
158
+ assert_type(
159
+ rfn.find_duplicates(a, ignoremask=True, return_index=True),
160
+ tuple[
161
+ np.ma.MaskedArray[tuple[int], np.dtype[np.void]],
162
+ np.ndarray[tuple[int], np.dtype[np.int_]],
163
+ ],
164
+ )
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/scalars.py ADDED
@@ -0,0 +1,249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import datetime as dt
2
+
3
+ import pytest
4
+
5
+ import numpy as np
6
+
7
+ b = np.bool()
8
+ b_ = np.bool_()
9
+ u8 = np.uint64()
10
+ i8 = np.int64()
11
+ f8 = np.float64()
12
+ c16 = np.complex128()
13
+ U = np.str_()
14
+ S = np.bytes_()
15
+
16
+
17
+ # Construction
18
+ class D:
19
+ def __index__(self) -> int:
20
+ return 0
21
+
22
+
23
+ class C:
24
+ def __complex__(self) -> complex:
25
+ return 3j
26
+
27
+
28
+ class B:
29
+ def __int__(self) -> int:
30
+ return 4
31
+
32
+
33
+ class A:
34
+ def __float__(self) -> float:
35
+ return 4.0
36
+
37
+
38
+ np.complex64(3j)
39
+ np.complex64(A())
40
+ np.complex64(C())
41
+ np.complex128(3j)
42
+ np.complex128(C())
43
+ np.complex128(None)
44
+ np.complex64("1.2")
45
+ np.complex128(b"2j")
46
+
47
+ np.int8(4)
48
+ np.int16(3.4)
49
+ np.int32(4)
50
+ np.int64(-1)
51
+ np.uint8(B())
52
+ np.uint32()
53
+ np.int32("1")
54
+ np.int64(b"2")
55
+
56
+ np.float16(A())
57
+ np.float32(16)
58
+ np.float64(3.0)
59
+ np.float64(None)
60
+ np.float32("1")
61
+ np.float16(b"2.5")
62
+
63
+ np.uint64(D())
64
+ np.float32(D())
65
+ np.complex64(D())
66
+
67
+ np.bytes_(b"hello")
68
+ np.bytes_("hello", 'utf-8')
69
+ np.bytes_("hello", encoding='utf-8')
70
+ np.str_("hello")
71
+ np.str_(b"hello", 'utf-8')
72
+ np.str_(b"hello", encoding='utf-8')
73
+
74
+ # Array-ish semantics
75
+ np.int8().real
76
+ np.int16().imag
77
+ np.int32().data
78
+ np.int64().flags
79
+
80
+ np.uint8().itemsize * 2
81
+ np.uint16().ndim + 1
82
+ np.uint32().strides
83
+ np.uint64().shape
84
+
85
+ # Time structures
86
+ np.datetime64()
87
+ np.datetime64(0, "D")
88
+ np.datetime64(0, b"D")
89
+ np.datetime64(0, ('ms', 3))
90
+ np.datetime64("2019")
91
+ np.datetime64(b"2019")
92
+ np.datetime64("2019", "D")
93
+ np.datetime64("2019", "us")
94
+ np.datetime64("2019", "as")
95
+ np.datetime64(np.datetime64())
96
+ np.datetime64(np.datetime64())
97
+ np.datetime64(dt.datetime(2000, 5, 3))
98
+ np.datetime64(dt.datetime(2000, 5, 3), "D")
99
+ np.datetime64(dt.datetime(2000, 5, 3), "us")
100
+ np.datetime64(dt.datetime(2000, 5, 3), "as")
101
+ np.datetime64(dt.date(2000, 5, 3))
102
+ np.datetime64(dt.date(2000, 5, 3), "D")
103
+ np.datetime64(dt.date(2000, 5, 3), "us")
104
+ np.datetime64(dt.date(2000, 5, 3), "as")
105
+ np.datetime64(None)
106
+ np.datetime64(None, "D")
107
+
108
+ np.timedelta64()
109
+ np.timedelta64(0)
110
+ np.timedelta64(0, "D")
111
+ np.timedelta64(0, ('ms', 3))
112
+ np.timedelta64(0, b"D")
113
+ np.timedelta64("3")
114
+ np.timedelta64(b"5")
115
+ np.timedelta64(np.timedelta64(2))
116
+ np.timedelta64(dt.timedelta(2))
117
+ np.timedelta64(None)
118
+ np.timedelta64(None, "D")
119
+
120
+ np.void(1)
121
+ np.void(np.int64(1))
122
+ np.void(True)
123
+ np.void(np.bool(True))
124
+ np.void(b"test")
125
+ np.void(np.bytes_("test"))
126
+ np.void(object(), [("a", "O"), ("b", "O")])
127
+ np.void(object(), dtype=[("a", "O"), ("b", "O")])
128
+
129
+ # Protocols
130
+ i8 = np.int64()
131
+ u8 = np.uint64()
132
+ f8 = np.float64()
133
+ c16 = np.complex128()
134
+ b = np.bool()
135
+ td = np.timedelta64()
136
+ U = np.str_("1")
137
+ S = np.bytes_("1")
138
+ AR = np.array(1, dtype=np.float64)
139
+
140
+ int(i8)
141
+ int(u8)
142
+ int(f8)
143
+ int(b)
144
+ int(td)
145
+ int(U)
146
+ int(S)
147
+ int(AR)
148
+ with pytest.warns(np.exceptions.ComplexWarning):
149
+ int(c16)
150
+
151
+ float(i8)
152
+ float(u8)
153
+ float(f8)
154
+ float(b_)
155
+ float(td)
156
+ float(U)
157
+ float(S)
158
+ float(AR)
159
+ with pytest.warns(np.exceptions.ComplexWarning):
160
+ float(c16)
161
+
162
+ complex(i8)
163
+ complex(u8)
164
+ complex(f8)
165
+ complex(c16)
166
+ complex(b_)
167
+ complex(td)
168
+ complex(U)
169
+ complex(AR)
170
+
171
+
172
+ # Misc
173
+ c16.dtype
174
+ c16.real
175
+ c16.imag
176
+ c16.real.real
177
+ c16.real.imag
178
+ c16.ndim
179
+ c16.size
180
+ c16.itemsize
181
+ c16.shape
182
+ c16.strides
183
+ c16.squeeze()
184
+ c16.byteswap()
185
+ c16.transpose()
186
+
187
+ # Aliases
188
+ np.byte()
189
+ np.short()
190
+ np.intc()
191
+ np.intp()
192
+ np.int_()
193
+ np.longlong()
194
+
195
+ np.ubyte()
196
+ np.ushort()
197
+ np.uintc()
198
+ np.uintp()
199
+ np.uint()
200
+ np.ulonglong()
201
+
202
+ np.half()
203
+ np.single()
204
+ np.double()
205
+ np.longdouble()
206
+
207
+ np.csingle()
208
+ np.cdouble()
209
+ np.clongdouble()
210
+
211
+ b.item()
212
+ i8.item()
213
+ u8.item()
214
+ f8.item()
215
+ c16.item()
216
+ U.item()
217
+ S.item()
218
+
219
+ b.tolist()
220
+ i8.tolist()
221
+ u8.tolist()
222
+ f8.tolist()
223
+ c16.tolist()
224
+ U.tolist()
225
+ S.tolist()
226
+
227
+ b.ravel()
228
+ i8.ravel()
229
+ u8.ravel()
230
+ f8.ravel()
231
+ c16.ravel()
232
+ U.ravel()
233
+ S.ravel()
234
+
235
+ b.flatten()
236
+ i8.flatten()
237
+ u8.flatten()
238
+ f8.flatten()
239
+ c16.flatten()
240
+ U.flatten()
241
+ S.flatten()
242
+
243
+ b.reshape(1)
244
+ i8.reshape(1)
245
+ u8.reshape(1)
246
+ f8.reshape(1)
247
+ c16.reshape(1)
248
+ U.reshape(1)
249
+ S.reshape(1)
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/shape.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, NamedTuple
2
+
3
+ import numpy as np
4
+
5
+
6
+ # Subtype of tuple[int, int]
7
+ class XYGrid(NamedTuple):
8
+ x_axis: int
9
+ y_axis: int
10
+
11
+ # Test variance of _ShapeT_co
12
+ def accepts_2d(a: np.ndarray[tuple[int, int], Any]) -> None:
13
+ return None
14
+
15
+
16
+ accepts_2d(np.empty(XYGrid(2, 2)))
17
+ accepts_2d(np.zeros(XYGrid(2, 2), dtype=int))
18
+ accepts_2d(np.ones(XYGrid(2, 2), dtype=int))
19
+ accepts_2d(np.full(XYGrid(2, 2), fill_value=5, dtype=int))
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/simple.py ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Simple expression that should pass with mypy."""
2
+ import operator
3
+ from collections.abc import Iterable
4
+
5
+ import numpy as np
6
+ import numpy.typing as npt
7
+
8
+ # Basic checks
9
+ array = np.array([1, 2])
10
+
11
+
12
+ def ndarray_func(x: npt.NDArray[np.float64]) -> npt.NDArray[np.float64]:
13
+ return x
14
+
15
+
16
+ ndarray_func(np.array([1, 2], dtype=np.float64))
17
+ array == 1
18
+ array.dtype == float
19
+
20
+ # Dtype construction
21
+ np.dtype(float)
22
+ np.dtype(np.float64)
23
+ np.dtype(None)
24
+ np.dtype("float64")
25
+ np.dtype(np.dtype(float))
26
+ np.dtype(("U", 10))
27
+ np.dtype((np.int32, (2, 2)))
28
+ # Define the arguments on the previous line to prevent bidirectional
29
+ # type inference in mypy from broadening the types.
30
+ two_tuples_dtype = [("R", "u1"), ("G", "u1"), ("B", "u1")]
31
+ np.dtype(two_tuples_dtype)
32
+
33
+ three_tuples_dtype = [("R", "u1", 2)]
34
+ np.dtype(three_tuples_dtype)
35
+
36
+ mixed_tuples_dtype = [("R", "u1"), ("G", np.str_, 1)]
37
+ np.dtype(mixed_tuples_dtype)
38
+
39
+ shape_tuple_dtype = [("R", "u1", (2, 2))]
40
+ np.dtype(shape_tuple_dtype)
41
+
42
+ shape_like_dtype = [("R", "u1", (2, 2)), ("G", np.str_, 1)]
43
+ np.dtype(shape_like_dtype)
44
+
45
+ object_dtype = [("field1", object)]
46
+ np.dtype(object_dtype)
47
+
48
+ np.dtype((np.int32, (np.int8, 4)))
49
+
50
+ # Dtype comparison
51
+ np.dtype(float) == float
52
+ np.dtype(float) != np.float64
53
+ np.dtype(float) < None
54
+ np.dtype(float) <= "float64"
55
+ np.dtype(float) > np.dtype(float)
56
+ np.dtype(float) >= np.dtype(("U", 10))
57
+
58
+ # Iteration and indexing
59
+ def iterable_func(x: Iterable[object]) -> Iterable[object]:
60
+ return x
61
+
62
+
63
+ iterable_func(array)
64
+ list(array)
65
+ iter(array)
66
+ zip(array, array)
67
+ array[1]
68
+ array[:]
69
+ array[...]
70
+ array[:] = 0
71
+
72
+ array_2d = np.ones((3, 3))
73
+ array_2d[:2, :2]
74
+ array_2d[:2, :2] = 0
75
+ array_2d[..., 0]
76
+ array_2d[..., 0] = 2
77
+ array_2d[-1, -1] = None
78
+
79
+ array_obj = np.zeros(1, dtype=np.object_)
80
+ array_obj[0] = slice(None)
81
+
82
+ # Other special methods
83
+ len(array)
84
+ str(array)
85
+ array_scalar = np.array(1)
86
+ int(array_scalar)
87
+ float(array_scalar)
88
+ complex(array_scalar)
89
+ bytes(array_scalar)
90
+ operator.index(array_scalar)
91
+ bool(array_scalar)
92
+
93
+ # comparisons
94
+ array < 1
95
+ array <= 1
96
+ array == 1
97
+ array != 1
98
+ array > 1
99
+ array >= 1
100
+ 1 < array
101
+ 1 <= array
102
+ 1 == array
103
+ 1 != array
104
+ 1 > array
105
+ 1 >= array
106
+
107
+ # binary arithmetic
108
+ array + 1
109
+ 1 + array
110
+ array += 1
111
+
112
+ array - 1
113
+ 1 - array
114
+ array -= 1
115
+
116
+ array * 1
117
+ 1 * array
118
+ array *= 1
119
+
120
+ nonzero_array = np.array([1, 2])
121
+ array / 1
122
+ 1 / nonzero_array
123
+ float_array = np.array([1.0, 2.0])
124
+ float_array /= 1
125
+
126
+ array // 1
127
+ 1 // nonzero_array
128
+ array //= 1
129
+
130
+ array % 1
131
+ 1 % nonzero_array
132
+ array %= 1
133
+
134
+ divmod(array, 1)
135
+ divmod(1, nonzero_array)
136
+
137
+ array ** 1
138
+ 1 ** array
139
+ array **= 1
140
+
141
+ array << 1
142
+ 1 << array
143
+ array <<= 1
144
+
145
+ array >> 1
146
+ 1 >> array
147
+ array >>= 1
148
+
149
+ array & 1
150
+ 1 & array
151
+ array &= 1
152
+
153
+ array ^ 1
154
+ 1 ^ array
155
+ array ^= 1
156
+
157
+ array | 1
158
+ 1 | array
159
+ array |= 1
160
+
161
+ # unary arithmetic
162
+ -array
163
+ +array
164
+ abs(array)
165
+ ~array
166
+
167
+ # Other methods
168
+ array.transpose()
169
+
170
+ array @ array
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/ufunc_config.py ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Typing tests for `numpy._core._ufunc_config`."""
2
+
3
+ import numpy as np
4
+
5
+
6
+ def func1(a: str, b: int) -> None:
7
+ return None
8
+
9
+
10
+ def func2(a: str, b: int, c: float = 1.0) -> None:
11
+ return None
12
+
13
+
14
+ def func3(a: str, b: int) -> int:
15
+ return 0
16
+
17
+
18
+ class Write1:
19
+ def write(self, a: str) -> None:
20
+ return None
21
+
22
+
23
+ class Write2:
24
+ def write(self, a: str, b: int = 1) -> None:
25
+ return None
26
+
27
+
28
+ class Write3:
29
+ def write(self, a: str) -> int:
30
+ return 0
31
+
32
+
33
+ _err_default = np.geterr()
34
+ _bufsize_default = np.getbufsize()
35
+ _errcall_default = np.geterrcall()
36
+
37
+ try:
38
+ np.seterr(all=None)
39
+ np.seterr(divide="ignore")
40
+ np.seterr(over="warn")
41
+ np.seterr(under="call")
42
+ np.seterr(invalid="raise")
43
+ np.geterr()
44
+
45
+ np.setbufsize(4096)
46
+ np.getbufsize()
47
+
48
+ np.seterrcall(func1)
49
+ np.seterrcall(func2)
50
+ np.seterrcall(func3)
51
+ np.seterrcall(Write1())
52
+ np.seterrcall(Write2())
53
+ np.seterrcall(Write3())
54
+ np.geterrcall()
55
+
56
+ with np.errstate(call=func1, all="call"):
57
+ pass
58
+ with np.errstate(call=Write1(), divide="log", over="log"):
59
+ pass
60
+
61
+ finally:
62
+ np.seterr(**_err_default)
63
+ np.setbufsize(_bufsize_default)
64
+ np.seterrcall(_errcall_default)
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/ufunclike.py ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing import Any
4
+
5
+ import numpy as np
6
+
7
+
8
+ class Object:
9
+ def __ceil__(self) -> Object:
10
+ return self
11
+
12
+ def __floor__(self) -> Object:
13
+ return self
14
+
15
+ def __trunc__(self) -> Object:
16
+ return self
17
+
18
+ def __ge__(self, value: object) -> bool:
19
+ return True
20
+
21
+ def __array__(self, dtype: np.typing.DTypeLike | None = None,
22
+ copy: bool | None = None) -> np.ndarray[Any, np.dtype[np.object_]]:
23
+ ret = np.empty((), dtype=object)
24
+ ret[()] = self
25
+ return ret
26
+
27
+
28
+ AR_LIKE_b = [True, True, False]
29
+ AR_LIKE_u = [np.uint32(1), np.uint32(2), np.uint32(3)]
30
+ AR_LIKE_i = [1, 2, 3]
31
+ AR_LIKE_f = [1.0, 2.0, 3.0]
32
+ AR_LIKE_O = [Object(), Object(), Object()]
33
+ AR_U: np.ndarray[Any, np.dtype[np.str_]] = np.zeros(3, dtype="U5")
34
+
35
+ np.fix(AR_LIKE_b) # type: ignore[deprecated]
36
+ np.fix(AR_LIKE_u) # type: ignore[deprecated]
37
+ np.fix(AR_LIKE_i) # type: ignore[deprecated]
38
+ np.fix(AR_LIKE_f) # type: ignore[deprecated]
39
+ np.fix(AR_LIKE_O) # type: ignore[deprecated]
40
+ np.fix(AR_LIKE_f, out=AR_U) # type: ignore[deprecated]
41
+
42
+ np.isposinf(AR_LIKE_b)
43
+ np.isposinf(AR_LIKE_u)
44
+ np.isposinf(AR_LIKE_i)
45
+ np.isposinf(AR_LIKE_f)
46
+ np.isposinf(AR_LIKE_f, out=AR_U)
47
+
48
+ np.isneginf(AR_LIKE_b)
49
+ np.isneginf(AR_LIKE_u)
50
+ np.isneginf(AR_LIKE_i)
51
+ np.isneginf(AR_LIKE_f)
52
+ np.isneginf(AR_LIKE_f, out=AR_U)
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/ufuncs.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+
3
+ np.sin(1)
4
+ np.sin([1, 2, 3])
5
+ np.sin(1, out=np.empty(1))
6
+ np.matmul(np.ones((2, 2, 2)), np.ones((2, 2, 2)), axes=[(0, 1), (0, 1), (0, 1)])
7
+ np.sin(1, signature="D->D")
8
+ # NOTE: `np.generic` subclasses are not guaranteed to support addition;
9
+ # re-enable this we can infer the exact return type of `np.sin(...)`.
10
+ #
11
+ # np.sin(1) + np.sin(1)
12
+ np.sin.types[0]
13
+ np.sin.__name__
14
+ np.sin.__doc__
15
+
16
+ np.abs(np.array([1]))
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/warnings_and_errors.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import numpy.exceptions as ex
2
+
3
+ ex.AxisError("test")
4
+ ex.AxisError(1, ndim=2)
5
+ ex.AxisError(1, ndim=2, msg_prefix="error")
6
+ ex.AxisError(1, ndim=2, msg_prefix=None)
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arithmetic.pyi ADDED
@@ -0,0 +1,719 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import datetime as dt
2
+ from typing import Any, assert_type
3
+
4
+ import numpy as np
5
+ import numpy.typing as npt
6
+ from numpy._typing import _64Bit, _128Bit
7
+
8
+ b: bool
9
+ c: complex
10
+ f: float
11
+ i: int
12
+
13
+ c16: np.complex128
14
+ c8: np.complex64
15
+
16
+ # Can't directly import `np.float128` as it is not available on all platforms
17
+ f16: np.floating[_128Bit]
18
+ f8: np.float64
19
+ f4: np.float32
20
+
21
+ i8: np.int64
22
+ i4: np.int32
23
+
24
+ u8: np.uint64
25
+ u4: np.uint32
26
+
27
+ b_: np.bool
28
+
29
+ M8: np.datetime64
30
+ M8_none: np.datetime64[None]
31
+ M8_date: np.datetime64[dt.date]
32
+ M8_time: np.datetime64[dt.datetime]
33
+ M8_int: np.datetime64[int]
34
+ date: dt.date
35
+ time: dt.datetime
36
+
37
+ m8: np.timedelta64
38
+ m8_none: np.timedelta64[None]
39
+ m8_int: np.timedelta64[int]
40
+ m8_delta: np.timedelta64[dt.timedelta]
41
+ delta: dt.timedelta
42
+
43
+ AR_b: npt.NDArray[np.bool]
44
+ AR_u: npt.NDArray[np.uint32]
45
+ AR_i: npt.NDArray[np.int64]
46
+ AR_f: npt.NDArray[np.float64]
47
+ AR_c: npt.NDArray[np.complex128]
48
+ AR_m: npt.NDArray[np.timedelta64]
49
+ AR_M: npt.NDArray[np.datetime64]
50
+ AR_O: npt.NDArray[np.object_]
51
+ AR_S: npt.NDArray[np.bytes_]
52
+ AR_U: npt.NDArray[np.str_]
53
+ AR_T: np.ndarray[tuple[Any, ...], np.dtypes.StringDType]
54
+ AR_floating: npt.NDArray[np.floating]
55
+ AR_number: npt.NDArray[np.number]
56
+ AR_Any: npt.NDArray[Any]
57
+
58
+ AR_LIKE_b: list[bool]
59
+ AR_LIKE_u: list[np.uint32]
60
+ AR_LIKE_i: list[int]
61
+ AR_LIKE_f: list[float]
62
+ AR_LIKE_c: list[complex]
63
+ AR_LIKE_m: list[np.timedelta64]
64
+ AR_LIKE_M: list[np.datetime64]
65
+ AR_LIKE_O: list[np.object_]
66
+
67
+ # Array subtraction
68
+
69
+ assert_type(AR_number - AR_number, npt.NDArray[np.number])
70
+
71
+ assert_type(AR_b - AR_LIKE_u, npt.NDArray[np.uint32])
72
+ assert_type(AR_b - AR_LIKE_i, npt.NDArray[np.signedinteger])
73
+ assert_type(AR_b - AR_LIKE_f, npt.NDArray[np.floating])
74
+ assert_type(AR_b - AR_LIKE_c, npt.NDArray[np.complexfloating])
75
+ assert_type(AR_b - AR_LIKE_m, npt.NDArray[np.timedelta64])
76
+ assert_type(AR_b - AR_LIKE_O, Any)
77
+
78
+ assert_type(AR_LIKE_u - AR_b, npt.NDArray[np.uint32])
79
+ assert_type(AR_LIKE_i - AR_b, npt.NDArray[np.signedinteger])
80
+ assert_type(AR_LIKE_f - AR_b, npt.NDArray[np.floating])
81
+ assert_type(AR_LIKE_c - AR_b, npt.NDArray[np.complexfloating])
82
+ assert_type(AR_LIKE_m - AR_b, npt.NDArray[np.timedelta64])
83
+ assert_type(AR_LIKE_M - AR_b, npt.NDArray[np.datetime64])
84
+ assert_type(AR_LIKE_O - AR_b, Any)
85
+
86
+ assert_type(AR_u - AR_LIKE_b, npt.NDArray[np.uint32])
87
+ assert_type(AR_u - AR_LIKE_u, npt.NDArray[np.unsignedinteger])
88
+ assert_type(AR_u - AR_LIKE_i, npt.NDArray[np.signedinteger])
89
+ assert_type(AR_u - AR_LIKE_f, npt.NDArray[np.floating])
90
+ assert_type(AR_u - AR_LIKE_c, npt.NDArray[np.complexfloating])
91
+ assert_type(AR_u - AR_LIKE_m, npt.NDArray[np.timedelta64])
92
+ assert_type(AR_u - AR_LIKE_O, Any)
93
+
94
+ assert_type(AR_LIKE_b - AR_u, npt.NDArray[np.uint32])
95
+ assert_type(AR_LIKE_u - AR_u, npt.NDArray[np.unsignedinteger])
96
+ assert_type(AR_LIKE_i - AR_u, npt.NDArray[np.signedinteger])
97
+ assert_type(AR_LIKE_f - AR_u, npt.NDArray[np.floating])
98
+ assert_type(AR_LIKE_c - AR_u, npt.NDArray[np.complexfloating])
99
+ assert_type(AR_LIKE_m - AR_u, npt.NDArray[np.timedelta64])
100
+ assert_type(AR_LIKE_M - AR_u, npt.NDArray[np.datetime64])
101
+ assert_type(AR_LIKE_O - AR_u, Any)
102
+
103
+ assert_type(AR_i - AR_LIKE_b, npt.NDArray[np.int64])
104
+ assert_type(AR_i - AR_LIKE_u, npt.NDArray[np.signedinteger])
105
+ assert_type(AR_i - AR_LIKE_i, npt.NDArray[np.signedinteger])
106
+ assert_type(AR_i - AR_LIKE_f, npt.NDArray[np.floating])
107
+ assert_type(AR_i - AR_LIKE_c, npt.NDArray[np.complexfloating])
108
+ assert_type(AR_i - AR_LIKE_m, npt.NDArray[np.timedelta64])
109
+ assert_type(AR_i - AR_LIKE_O, Any)
110
+
111
+ assert_type(AR_LIKE_b - AR_i, npt.NDArray[np.int64])
112
+ assert_type(AR_LIKE_u - AR_i, npt.NDArray[np.signedinteger])
113
+ assert_type(AR_LIKE_i - AR_i, npt.NDArray[np.signedinteger])
114
+ assert_type(AR_LIKE_f - AR_i, npt.NDArray[np.floating])
115
+ assert_type(AR_LIKE_c - AR_i, npt.NDArray[np.complexfloating])
116
+ assert_type(AR_LIKE_m - AR_i, npt.NDArray[np.timedelta64])
117
+ assert_type(AR_LIKE_M - AR_i, npt.NDArray[np.datetime64])
118
+ assert_type(AR_LIKE_O - AR_i, Any)
119
+
120
+ assert_type(AR_f - AR_LIKE_b, npt.NDArray[np.float64])
121
+ assert_type(AR_f - AR_LIKE_u, npt.NDArray[np.float64])
122
+ assert_type(AR_f - AR_LIKE_i, npt.NDArray[np.float64])
123
+ assert_type(AR_f - AR_LIKE_f, npt.NDArray[np.float64])
124
+ assert_type(AR_f - AR_LIKE_c, npt.NDArray[np.complexfloating])
125
+ assert_type(AR_f - AR_LIKE_O, Any)
126
+
127
+ assert_type(AR_LIKE_b - AR_f, npt.NDArray[np.float64])
128
+ assert_type(AR_LIKE_u - AR_f, npt.NDArray[np.float64])
129
+ assert_type(AR_LIKE_i - AR_f, npt.NDArray[np.float64])
130
+ assert_type(AR_LIKE_f - AR_f, npt.NDArray[np.float64])
131
+ assert_type(AR_LIKE_c - AR_f, npt.NDArray[np.complexfloating])
132
+ assert_type(AR_LIKE_O - AR_f, Any)
133
+
134
+ assert_type(AR_c - AR_LIKE_b, npt.NDArray[np.complex128])
135
+ assert_type(AR_c - AR_LIKE_u, npt.NDArray[np.complex128])
136
+ assert_type(AR_c - AR_LIKE_i, npt.NDArray[np.complex128])
137
+ assert_type(AR_c - AR_LIKE_f, npt.NDArray[np.complex128])
138
+ assert_type(AR_c - AR_LIKE_c, npt.NDArray[np.complex128])
139
+ assert_type(AR_c - AR_LIKE_O, Any)
140
+
141
+ assert_type(AR_LIKE_b - AR_c, npt.NDArray[np.complex128])
142
+ assert_type(AR_LIKE_u - AR_c, npt.NDArray[np.complex128])
143
+ assert_type(AR_LIKE_i - AR_c, npt.NDArray[np.complex128])
144
+ assert_type(AR_LIKE_f - AR_c, npt.NDArray[np.complex128])
145
+ assert_type(AR_LIKE_c - AR_c, npt.NDArray[np.complex128])
146
+ assert_type(AR_LIKE_O - AR_c, Any)
147
+
148
+ assert_type(AR_m - AR_LIKE_b, npt.NDArray[np.timedelta64])
149
+ assert_type(AR_m - AR_LIKE_u, npt.NDArray[np.timedelta64])
150
+ assert_type(AR_m - AR_LIKE_i, npt.NDArray[np.timedelta64])
151
+ assert_type(AR_m - AR_LIKE_m, npt.NDArray[np.timedelta64])
152
+ assert_type(AR_m - AR_LIKE_O, Any)
153
+
154
+ assert_type(AR_LIKE_b - AR_m, npt.NDArray[np.timedelta64])
155
+ assert_type(AR_LIKE_u - AR_m, npt.NDArray[np.timedelta64])
156
+ assert_type(AR_LIKE_i - AR_m, npt.NDArray[np.timedelta64])
157
+ assert_type(AR_LIKE_m - AR_m, npt.NDArray[np.timedelta64])
158
+ assert_type(AR_LIKE_M - AR_m, npt.NDArray[np.datetime64])
159
+ assert_type(AR_LIKE_O - AR_m, Any)
160
+
161
+ assert_type(AR_M - AR_LIKE_b, npt.NDArray[np.datetime64])
162
+ assert_type(AR_M - AR_LIKE_u, npt.NDArray[np.datetime64])
163
+ assert_type(AR_M - AR_LIKE_i, npt.NDArray[np.datetime64])
164
+ assert_type(AR_M - AR_LIKE_m, npt.NDArray[np.datetime64])
165
+ assert_type(AR_M - AR_LIKE_M, npt.NDArray[np.timedelta64])
166
+ assert_type(AR_M - AR_LIKE_O, Any)
167
+
168
+ assert_type(AR_LIKE_M - AR_M, npt.NDArray[np.timedelta64])
169
+ assert_type(AR_LIKE_O - AR_M, Any)
170
+
171
+ assert_type(AR_O - AR_LIKE_b, Any)
172
+ assert_type(AR_O - AR_LIKE_u, Any)
173
+ assert_type(AR_O - AR_LIKE_i, Any)
174
+ assert_type(AR_O - AR_LIKE_f, Any)
175
+ assert_type(AR_O - AR_LIKE_c, Any)
176
+ assert_type(AR_O - AR_LIKE_m, Any)
177
+ assert_type(AR_O - AR_LIKE_M, Any)
178
+ assert_type(AR_O - AR_LIKE_O, Any)
179
+
180
+ assert_type(AR_LIKE_b - AR_O, Any)
181
+ assert_type(AR_LIKE_u - AR_O, Any)
182
+ assert_type(AR_LIKE_i - AR_O, Any)
183
+ assert_type(AR_LIKE_f - AR_O, Any)
184
+ assert_type(AR_LIKE_c - AR_O, Any)
185
+ assert_type(AR_LIKE_m - AR_O, Any)
186
+ assert_type(AR_LIKE_M - AR_O, Any)
187
+ assert_type(AR_LIKE_O - AR_O, Any)
188
+
189
+ # Array "true" division
190
+
191
+ assert_type(AR_f / b, npt.NDArray[np.float64])
192
+ assert_type(AR_f / i, npt.NDArray[np.float64])
193
+ assert_type(AR_f / f, npt.NDArray[np.float64])
194
+
195
+ assert_type(b / AR_f, npt.NDArray[np.float64])
196
+ assert_type(i / AR_f, npt.NDArray[np.float64])
197
+ assert_type(f / AR_f, npt.NDArray[np.float64])
198
+
199
+ assert_type(AR_b / AR_LIKE_b, npt.NDArray[np.float64])
200
+ assert_type(AR_b / AR_LIKE_u, npt.NDArray[np.float64])
201
+ assert_type(AR_b / AR_LIKE_i, npt.NDArray[np.float64])
202
+ assert_type(AR_b / AR_LIKE_f, npt.NDArray[np.float64])
203
+ assert_type(AR_b / AR_LIKE_O, Any)
204
+
205
+ assert_type(AR_LIKE_b / AR_b, npt.NDArray[np.float64])
206
+ assert_type(AR_LIKE_u / AR_b, npt.NDArray[np.float64])
207
+ assert_type(AR_LIKE_i / AR_b, npt.NDArray[np.float64])
208
+ assert_type(AR_LIKE_f / AR_b, npt.NDArray[np.float64])
209
+ assert_type(AR_LIKE_O / AR_b, Any)
210
+
211
+ assert_type(AR_u / AR_LIKE_b, npt.NDArray[np.float64])
212
+ assert_type(AR_u / AR_LIKE_u, npt.NDArray[np.float64])
213
+ assert_type(AR_u / AR_LIKE_i, npt.NDArray[np.float64])
214
+ assert_type(AR_u / AR_LIKE_f, npt.NDArray[np.float64])
215
+ assert_type(AR_u / AR_LIKE_O, Any)
216
+
217
+ assert_type(AR_LIKE_b / AR_u, npt.NDArray[np.float64])
218
+ assert_type(AR_LIKE_u / AR_u, npt.NDArray[np.float64])
219
+ assert_type(AR_LIKE_i / AR_u, npt.NDArray[np.float64])
220
+ assert_type(AR_LIKE_f / AR_u, npt.NDArray[np.float64])
221
+ assert_type(AR_LIKE_m / AR_u, npt.NDArray[np.timedelta64])
222
+ assert_type(AR_LIKE_O / AR_u, Any)
223
+
224
+ assert_type(AR_i / AR_LIKE_b, npt.NDArray[np.float64])
225
+ assert_type(AR_i / AR_LIKE_u, npt.NDArray[np.float64])
226
+ assert_type(AR_i / AR_LIKE_i, npt.NDArray[np.float64])
227
+ assert_type(AR_i / AR_LIKE_f, npt.NDArray[np.float64])
228
+ assert_type(AR_i / AR_LIKE_O, Any)
229
+
230
+ assert_type(AR_LIKE_b / AR_i, npt.NDArray[np.float64])
231
+ assert_type(AR_LIKE_u / AR_i, npt.NDArray[np.float64])
232
+ assert_type(AR_LIKE_i / AR_i, npt.NDArray[np.float64])
233
+ assert_type(AR_LIKE_f / AR_i, npt.NDArray[np.float64])
234
+ assert_type(AR_LIKE_m / AR_i, npt.NDArray[np.timedelta64])
235
+ assert_type(AR_LIKE_O / AR_i, Any)
236
+
237
+ assert_type(AR_f / AR_LIKE_b, npt.NDArray[np.float64])
238
+ assert_type(AR_f / AR_LIKE_u, npt.NDArray[np.float64])
239
+ assert_type(AR_f / AR_LIKE_i, npt.NDArray[np.float64])
240
+ assert_type(AR_f / AR_LIKE_f, npt.NDArray[np.float64])
241
+ assert_type(AR_f / AR_LIKE_O, Any)
242
+
243
+ assert_type(AR_LIKE_b / AR_f, npt.NDArray[np.float64])
244
+ assert_type(AR_LIKE_u / AR_f, npt.NDArray[np.float64])
245
+ assert_type(AR_LIKE_i / AR_f, npt.NDArray[np.float64])
246
+ assert_type(AR_LIKE_f / AR_f, npt.NDArray[np.float64])
247
+ assert_type(AR_LIKE_m / AR_f, npt.NDArray[np.timedelta64])
248
+ assert_type(AR_LIKE_O / AR_f, Any)
249
+
250
+ assert_type(AR_m / AR_LIKE_u, npt.NDArray[np.timedelta64])
251
+ assert_type(AR_m / AR_LIKE_i, npt.NDArray[np.timedelta64])
252
+ assert_type(AR_m / AR_LIKE_f, npt.NDArray[np.timedelta64])
253
+ assert_type(AR_m / AR_LIKE_m, npt.NDArray[np.float64])
254
+ assert_type(AR_m / AR_LIKE_O, Any)
255
+
256
+ assert_type(AR_LIKE_m / AR_m, npt.NDArray[np.float64])
257
+ assert_type(AR_LIKE_O / AR_m, Any)
258
+
259
+ assert_type(AR_O / AR_LIKE_b, Any)
260
+ assert_type(AR_O / AR_LIKE_u, Any)
261
+ assert_type(AR_O / AR_LIKE_i, Any)
262
+ assert_type(AR_O / AR_LIKE_f, Any)
263
+ assert_type(AR_O / AR_LIKE_m, Any)
264
+ assert_type(AR_O / AR_LIKE_M, Any)
265
+ assert_type(AR_O / AR_LIKE_O, Any)
266
+
267
+ assert_type(AR_LIKE_b / AR_O, Any)
268
+ assert_type(AR_LIKE_u / AR_O, Any)
269
+ assert_type(AR_LIKE_i / AR_O, Any)
270
+ assert_type(AR_LIKE_f / AR_O, Any)
271
+ assert_type(AR_LIKE_m / AR_O, Any)
272
+ assert_type(AR_LIKE_M / AR_O, Any)
273
+ assert_type(AR_LIKE_O / AR_O, Any)
274
+
275
+ # Array floor division
276
+
277
+ assert_type(AR_b // AR_LIKE_b, npt.NDArray[np.int8])
278
+ assert_type(AR_b // AR_LIKE_u, npt.NDArray[np.uint32])
279
+ assert_type(AR_b // AR_LIKE_i, npt.NDArray[np.signedinteger])
280
+ assert_type(AR_b // AR_LIKE_f, npt.NDArray[np.floating])
281
+ assert_type(AR_b // AR_LIKE_O, Any)
282
+
283
+ assert_type(AR_LIKE_b // AR_b, npt.NDArray[np.int8])
284
+ assert_type(AR_LIKE_u // AR_b, npt.NDArray[np.uint32])
285
+ assert_type(AR_LIKE_i // AR_b, npt.NDArray[np.signedinteger])
286
+ assert_type(AR_LIKE_f // AR_b, npt.NDArray[np.floating])
287
+ assert_type(AR_LIKE_O // AR_b, Any)
288
+
289
+ assert_type(AR_u // AR_LIKE_b, npt.NDArray[np.uint32])
290
+ assert_type(AR_u // AR_LIKE_u, npt.NDArray[np.unsignedinteger])
291
+ assert_type(AR_u // AR_LIKE_i, npt.NDArray[np.signedinteger])
292
+ assert_type(AR_u // AR_LIKE_f, npt.NDArray[np.floating])
293
+ assert_type(AR_u // AR_LIKE_O, Any)
294
+
295
+ assert_type(AR_LIKE_b // AR_u, npt.NDArray[np.uint32])
296
+ assert_type(AR_LIKE_u // AR_u, npt.NDArray[np.unsignedinteger])
297
+ assert_type(AR_LIKE_i // AR_u, npt.NDArray[np.signedinteger])
298
+ assert_type(AR_LIKE_f // AR_u, npt.NDArray[np.floating])
299
+ assert_type(AR_LIKE_m // AR_u, npt.NDArray[np.timedelta64])
300
+ assert_type(AR_LIKE_O // AR_u, Any)
301
+
302
+ assert_type(AR_i // AR_LIKE_b, npt.NDArray[np.int64])
303
+ assert_type(AR_i // AR_LIKE_u, npt.NDArray[np.signedinteger])
304
+ assert_type(AR_i // AR_LIKE_i, npt.NDArray[np.signedinteger])
305
+ assert_type(AR_i // AR_LIKE_f, npt.NDArray[np.floating])
306
+ assert_type(AR_i // AR_LIKE_O, Any)
307
+
308
+ assert_type(AR_LIKE_b // AR_i, npt.NDArray[np.int64])
309
+ assert_type(AR_LIKE_u // AR_i, npt.NDArray[np.signedinteger])
310
+ assert_type(AR_LIKE_i // AR_i, npt.NDArray[np.signedinteger])
311
+ assert_type(AR_LIKE_f // AR_i, npt.NDArray[np.floating])
312
+ assert_type(AR_LIKE_m // AR_i, npt.NDArray[np.timedelta64])
313
+ assert_type(AR_LIKE_O // AR_i, Any)
314
+
315
+ assert_type(AR_f // AR_LIKE_b, npt.NDArray[np.float64])
316
+ assert_type(AR_f // AR_LIKE_u, npt.NDArray[np.float64])
317
+ assert_type(AR_f // AR_LIKE_i, npt.NDArray[np.float64])
318
+ assert_type(AR_f // AR_LIKE_f, npt.NDArray[np.float64])
319
+ assert_type(AR_f // AR_LIKE_O, Any)
320
+
321
+ assert_type(AR_LIKE_b // AR_f, npt.NDArray[np.float64])
322
+ assert_type(AR_LIKE_u // AR_f, npt.NDArray[np.float64])
323
+ assert_type(AR_LIKE_i // AR_f, npt.NDArray[np.float64])
324
+ assert_type(AR_LIKE_f // AR_f, npt.NDArray[np.float64])
325
+ assert_type(AR_LIKE_m // AR_f, npt.NDArray[np.timedelta64])
326
+ assert_type(AR_LIKE_O // AR_f, Any)
327
+
328
+ assert_type(AR_m // AR_LIKE_u, npt.NDArray[np.timedelta64])
329
+ assert_type(AR_m // AR_LIKE_i, npt.NDArray[np.timedelta64])
330
+ assert_type(AR_m // AR_LIKE_f, npt.NDArray[np.timedelta64])
331
+ assert_type(AR_m // AR_LIKE_m, npt.NDArray[np.int64])
332
+ assert_type(AR_m // AR_LIKE_O, Any)
333
+
334
+ assert_type(AR_LIKE_m // AR_m, npt.NDArray[np.int64])
335
+ assert_type(AR_LIKE_O // AR_m, Any)
336
+
337
+ assert_type(AR_O // AR_LIKE_b, Any)
338
+ assert_type(AR_O // AR_LIKE_u, Any)
339
+ assert_type(AR_O // AR_LIKE_i, Any)
340
+ assert_type(AR_O // AR_LIKE_f, Any)
341
+ assert_type(AR_O // AR_LIKE_m, Any)
342
+ assert_type(AR_O // AR_LIKE_M, Any)
343
+ assert_type(AR_O // AR_LIKE_O, Any)
344
+
345
+ assert_type(AR_LIKE_b // AR_O, Any)
346
+ assert_type(AR_LIKE_u // AR_O, Any)
347
+ assert_type(AR_LIKE_i // AR_O, Any)
348
+ assert_type(AR_LIKE_f // AR_O, Any)
349
+ assert_type(AR_LIKE_m // AR_O, Any)
350
+ assert_type(AR_LIKE_M // AR_O, Any)
351
+ assert_type(AR_LIKE_O // AR_O, Any)
352
+
353
+ # unary ops
354
+
355
+ assert_type(-f16, np.floating[_128Bit])
356
+ assert_type(-c16, np.complex128)
357
+ assert_type(-c8, np.complex64)
358
+ assert_type(-f8, np.float64)
359
+ assert_type(-f4, np.float32)
360
+ assert_type(-i8, np.int64)
361
+ assert_type(-i4, np.int32)
362
+ assert_type(-u8, np.uint64)
363
+ assert_type(-u4, np.uint32)
364
+ assert_type(-m8, np.timedelta64)
365
+ assert_type(-m8_none, np.timedelta64[None])
366
+ assert_type(-m8_int, np.timedelta64[int])
367
+ assert_type(-m8_delta, np.timedelta64[dt.timedelta])
368
+ assert_type(-AR_f, npt.NDArray[np.float64])
369
+
370
+ assert_type(+f16, np.floating[_128Bit])
371
+ assert_type(+c16, np.complex128)
372
+ assert_type(+c8, np.complex64)
373
+ assert_type(+f8, np.float64)
374
+ assert_type(+f4, np.float32)
375
+ assert_type(+i8, np.int64)
376
+ assert_type(+i4, np.int32)
377
+ assert_type(+u8, np.uint64)
378
+ assert_type(+u4, np.uint32)
379
+ assert_type(+m8_none, np.timedelta64[None])
380
+ assert_type(+m8_int, np.timedelta64[int])
381
+ assert_type(+m8_delta, np.timedelta64[dt.timedelta])
382
+ assert_type(+AR_f, npt.NDArray[np.float64])
383
+
384
+ assert_type(abs(f16), np.floating[_128Bit])
385
+ assert_type(abs(c16), np.float64)
386
+ assert_type(abs(c8), np.float32)
387
+ assert_type(abs(f8), np.float64)
388
+ assert_type(abs(f4), np.float32)
389
+ assert_type(abs(i8), np.int64)
390
+ assert_type(abs(i4), np.int32)
391
+ assert_type(abs(u8), np.uint64)
392
+ assert_type(abs(u4), np.uint32)
393
+ assert_type(abs(m8), np.timedelta64)
394
+ assert_type(abs(m8_none), np.timedelta64[None])
395
+ assert_type(abs(m8_int), np.timedelta64[int])
396
+ assert_type(abs(m8_delta), np.timedelta64[dt.timedelta])
397
+ assert_type(abs(b_), np.bool)
398
+ assert_type(abs(AR_O), npt.NDArray[np.object_])
399
+
400
+ # Time structures
401
+
402
+ assert_type(M8 + m8, np.datetime64)
403
+ assert_type(M8 + i, np.datetime64)
404
+ assert_type(M8 + i8, np.datetime64)
405
+ assert_type(M8 - M8, np.timedelta64)
406
+ assert_type(M8 - i, np.datetime64)
407
+ assert_type(M8 - i8, np.datetime64)
408
+
409
+ assert_type(M8_none + m8, np.datetime64[None])
410
+ assert_type(M8_none + i, np.datetime64[None])
411
+ assert_type(M8_none + i8, np.datetime64[None])
412
+ assert_type(M8_none - M8, np.timedelta64[None])
413
+ assert_type(M8_none - m8, np.datetime64[None])
414
+ assert_type(M8_none - i, np.datetime64[None])
415
+ assert_type(M8_none - i8, np.datetime64[None])
416
+
417
+ assert_type(m8 + m8, np.timedelta64)
418
+ assert_type(m8 + i, np.timedelta64)
419
+ assert_type(m8 + i8, np.timedelta64)
420
+ assert_type(m8 - m8, np.timedelta64)
421
+ assert_type(m8 - i, np.timedelta64)
422
+ assert_type(m8 - i8, np.timedelta64)
423
+ assert_type(m8 * f, np.timedelta64)
424
+ assert_type(m8 * f4, np.timedelta64)
425
+ assert_type(m8 * np.True_, np.timedelta64)
426
+ assert_type(m8 / f, np.timedelta64)
427
+ assert_type(m8 / f4, np.timedelta64)
428
+ assert_type(m8 / m8, np.float64)
429
+ assert_type(m8 // m8, np.int64)
430
+ assert_type(m8 % m8, np.timedelta64)
431
+ assert_type(divmod(m8, m8), tuple[np.int64, np.timedelta64])
432
+
433
+ assert_type(m8_none + m8, np.timedelta64[None])
434
+ assert_type(m8_none + i, np.timedelta64[None])
435
+ assert_type(m8_none + i8, np.timedelta64[None])
436
+ assert_type(m8_none - i, np.timedelta64[None])
437
+ assert_type(m8_none - i8, np.timedelta64[None])
438
+
439
+ assert_type(m8_int + i, np.timedelta64[int])
440
+ assert_type(m8_int + m8_delta, np.timedelta64[int])
441
+ assert_type(m8_int + m8, np.timedelta64[int | None])
442
+ assert_type(m8_int - i, np.timedelta64[int])
443
+ assert_type(m8_int - m8_delta, np.timedelta64[int])
444
+ assert_type(m8_int - m8, np.timedelta64[int | None])
445
+
446
+ assert_type(m8_delta + date, dt.date)
447
+ assert_type(m8_delta + time, dt.datetime)
448
+ assert_type(m8_delta + delta, dt.timedelta)
449
+ assert_type(m8_delta - delta, dt.timedelta)
450
+ assert_type(m8_delta / delta, float)
451
+ assert_type(m8_delta // delta, int)
452
+ assert_type(m8_delta % delta, dt.timedelta)
453
+ assert_type(divmod(m8_delta, delta), tuple[int, dt.timedelta])
454
+
455
+ # boolean
456
+
457
+ assert_type(b_ / b, np.float64)
458
+ assert_type(b_ / b_, np.float64)
459
+ assert_type(b_ / i, np.float64)
460
+ assert_type(b_ / i8, np.float64)
461
+ assert_type(b_ / i4, np.float64)
462
+ assert_type(b_ / u8, np.float64)
463
+ assert_type(b_ / u4, np.float64)
464
+ assert_type(b_ / f, np.float64)
465
+ assert_type(b_ / f16, np.floating[_128Bit])
466
+ assert_type(b_ / f8, np.float64)
467
+ assert_type(b_ / f4, np.float32)
468
+ assert_type(b_ / c, np.complex128)
469
+ assert_type(b_ / c16, np.complex128)
470
+ assert_type(b_ / c8, np.complex64)
471
+
472
+ assert_type(b / b_, np.float64)
473
+ assert_type(b_ / b_, np.float64)
474
+ assert_type(i / b_, np.float64)
475
+ assert_type(i8 / b_, np.float64)
476
+ assert_type(i4 / b_, np.float64)
477
+ assert_type(u8 / b_, np.float64)
478
+ assert_type(u4 / b_, np.float64)
479
+ assert_type(f / b_, np.float64)
480
+ assert_type(f16 / b_, np.floating[_128Bit])
481
+ assert_type(f8 / b_, np.float64)
482
+ assert_type(f4 / b_, np.float32)
483
+ assert_type(c / b_, np.complex128)
484
+ assert_type(c16 / b_, np.complex128)
485
+ assert_type(c8 / b_, np.complex64)
486
+
487
+ # Complex
488
+
489
+ assert_type(c16 + f16, np.complexfloating)
490
+ assert_type(c16 + c16, np.complex128)
491
+ assert_type(c16 + f8, np.complex128)
492
+ assert_type(c16 + i8, np.complex128)
493
+ assert_type(c16 + c8, np.complex128)
494
+ assert_type(c16 + f4, np.complex128)
495
+ assert_type(c16 + i4, np.complex128)
496
+ assert_type(c16 + b_, np.complex128)
497
+ assert_type(c16 + b, np.complex128)
498
+ assert_type(c16 + c, np.complex128)
499
+ assert_type(c16 + f, np.complex128)
500
+ assert_type(c16 + AR_f, npt.NDArray[np.complex128])
501
+
502
+ assert_type(f16 + c16, np.complexfloating)
503
+ assert_type(c16 + c16, np.complex128)
504
+ assert_type(f8 + c16, np.complex128)
505
+ assert_type(i8 + c16, np.complex128)
506
+ assert_type(c8 + c16, np.complex128 | np.complex64)
507
+ assert_type(f4 + c16, np.complexfloating)
508
+ assert_type(i4 + c16, np.complex128)
509
+ assert_type(b_ + c16, np.complex128)
510
+ assert_type(b + c16, np.complex128)
511
+ assert_type(c + c16, np.complex128)
512
+ assert_type(f + c16, np.complex128)
513
+ assert_type(AR_f + c16, npt.NDArray[np.complex128])
514
+
515
+ assert_type(c8 + f16, np.complex64 | np.complexfloating[_128Bit, _128Bit])
516
+ assert_type(c8 + c16, np.complex64 | np.complex128)
517
+ assert_type(c8 + f8, np.complex64 | np.complex128)
518
+ assert_type(c8 + i8, np.complex64 | np.complexfloating[_64Bit, _64Bit])
519
+ assert_type(c8 + c8, np.complex64)
520
+ assert_type(c8 + f4, np.complex64)
521
+ assert_type(c8 + i4, np.complex64)
522
+ assert_type(c8 + b_, np.complex64)
523
+ assert_type(c8 + b, np.complex64)
524
+ assert_type(c8 + c, np.complex64 | np.complex128)
525
+ assert_type(c8 + f, np.complex64 | np.complex128)
526
+ assert_type(c8 + AR_f, npt.NDArray[np.complexfloating])
527
+
528
+ assert_type(f16 + c8, np.complexfloating[_128Bit, _128Bit] | np.complex64)
529
+ assert_type(c16 + c8, np.complex128)
530
+ assert_type(f8 + c8, np.complexfloating[_64Bit, _64Bit])
531
+ assert_type(i8 + c8, np.complexfloating[_64Bit, _64Bit] | np.complex64)
532
+ assert_type(c8 + c8, np.complex64)
533
+ assert_type(f4 + c8, np.complex64)
534
+ assert_type(i4 + c8, np.complex64)
535
+ assert_type(b_ + c8, np.complex64)
536
+ assert_type(b + c8, np.complex64)
537
+ assert_type(c + c8, np.complex64 | np.complex128)
538
+ assert_type(f + c8, np.complex64 | np.complex128)
539
+ assert_type(AR_f + c8, npt.NDArray[np.complexfloating])
540
+
541
+ # Float
542
+
543
+ assert_type(f8 + f16, np.floating)
544
+ assert_type(f8 + f8, np.float64)
545
+ assert_type(f8 + i8, np.float64)
546
+ assert_type(f8 + f4, np.float64)
547
+ assert_type(f8 + i4, np.float64)
548
+ assert_type(f8 + b_, np.float64)
549
+ assert_type(f8 + b, np.float64)
550
+ assert_type(f8 + c, np.float64 | np.complex128)
551
+ assert_type(f8 + f, np.float64)
552
+ assert_type(f8 + AR_f, npt.NDArray[np.float64])
553
+
554
+ assert_type(f16 + f8, np.floating)
555
+ assert_type(f8 + f8, np.float64)
556
+ assert_type(i8 + f8, np.float64)
557
+ assert_type(f4 + f8, np.floating)
558
+ assert_type(i4 + f8, np.float64)
559
+ assert_type(b_ + f8, np.float64)
560
+ assert_type(b + f8, np.float64)
561
+ assert_type(c + f8, np.complex128 | np.float64)
562
+ assert_type(f + f8, np.float64)
563
+ assert_type(AR_f + f8, npt.NDArray[np.float64])
564
+
565
+ assert_type(f4 + f16, np.floating)
566
+ assert_type(f4 + f8, np.floating)
567
+ assert_type(f4 + i8, np.floating)
568
+ assert_type(f4 + f4, np.float32)
569
+ assert_type(f4 + i4, np.floating)
570
+ assert_type(f4 + b_, np.float32)
571
+ assert_type(f4 + b, np.float32)
572
+ assert_type(f4 + c, np.complexfloating)
573
+ assert_type(f4 + f, np.float32)
574
+ assert_type(f4 + AR_f, npt.NDArray[np.float64])
575
+
576
+ assert_type(f16 + f4, np.floating)
577
+ assert_type(f8 + f4, np.float64)
578
+ assert_type(i8 + f4, np.floating)
579
+ assert_type(f4 + f4, np.float32)
580
+ assert_type(i4 + f4, np.floating)
581
+ assert_type(b_ + f4, np.float32)
582
+ assert_type(b + f4, np.float32)
583
+ assert_type(c + f4, np.complexfloating)
584
+ assert_type(f + f4, np.float32)
585
+ assert_type(AR_f + f4, npt.NDArray[np.float64])
586
+
587
+ # Int
588
+
589
+ assert_type(i8 + i8, np.int64)
590
+ assert_type(i8 + u8, Any)
591
+ assert_type(i8 + i4, np.signedinteger)
592
+ assert_type(i8 + u4, Any)
593
+ assert_type(i8 + b_, np.int64)
594
+ assert_type(i8 + b, np.int64)
595
+ assert_type(i8 + c, np.complex128)
596
+ assert_type(i8 + f, np.float64)
597
+ assert_type(i8 + AR_f, npt.NDArray[np.float64])
598
+
599
+ assert_type(u8 + u8, np.uint64)
600
+ assert_type(u8 + i4, Any)
601
+ assert_type(u8 + u4, np.unsignedinteger)
602
+ assert_type(u8 + b_, np.uint64)
603
+ assert_type(u8 + b, np.uint64)
604
+ assert_type(u8 + c, np.complex128)
605
+ assert_type(u8 + f, np.float64)
606
+ assert_type(u8 + AR_f, npt.NDArray[np.float64])
607
+
608
+ assert_type(i8 + i8, np.int64)
609
+ assert_type(u8 + i8, Any)
610
+ assert_type(i4 + i8, np.signedinteger)
611
+ assert_type(u4 + i8, Any)
612
+ assert_type(b_ + i8, np.int64)
613
+ assert_type(b + i8, np.int64)
614
+ assert_type(c + i8, np.complex128)
615
+ assert_type(f + i8, np.float64)
616
+ assert_type(AR_f + i8, npt.NDArray[np.float64])
617
+
618
+ assert_type(u8 + u8, np.uint64)
619
+ assert_type(i4 + u8, Any)
620
+ assert_type(u4 + u8, np.unsignedinteger)
621
+ assert_type(b_ + u8, np.uint64)
622
+ assert_type(b + u8, np.uint64)
623
+ assert_type(c + u8, np.complex128)
624
+ assert_type(f + u8, np.float64)
625
+ assert_type(AR_f + u8, npt.NDArray[np.float64])
626
+
627
+ assert_type(i4 + i8, np.signedinteger)
628
+ assert_type(i4 + i4, np.int32)
629
+ assert_type(i4 + b_, np.int32)
630
+ assert_type(i4 + b, np.int32)
631
+ assert_type(i4 + AR_f, npt.NDArray[np.float64])
632
+
633
+ assert_type(u4 + i8, Any)
634
+ assert_type(u4 + i4, Any)
635
+ assert_type(u4 + u8, np.unsignedinteger)
636
+ assert_type(u4 + u4, np.uint32)
637
+ assert_type(u4 + b_, np.uint32)
638
+ assert_type(u4 + b, np.uint32)
639
+ assert_type(u4 + AR_f, npt.NDArray[np.float64])
640
+
641
+ assert_type(i8 + i4, np.signedinteger)
642
+ assert_type(i4 + i4, np.int32)
643
+ assert_type(b_ + i4, np.int32)
644
+ assert_type(b + i4, np.int32)
645
+ assert_type(AR_f + i4, npt.NDArray[np.float64])
646
+
647
+ assert_type(i8 + u4, Any)
648
+ assert_type(i4 + u4, Any)
649
+ assert_type(u8 + u4, np.unsignedinteger)
650
+ assert_type(u4 + u4, np.uint32)
651
+ assert_type(b_ + u4, np.uint32)
652
+ assert_type(b + u4, np.uint32)
653
+ assert_type(AR_f + u4, npt.NDArray[np.float64])
654
+
655
+ # Any
656
+
657
+ assert_type(AR_Any + 2, npt.NDArray[Any])
658
+
659
+ # regression tests for https://github.com/numpy/numpy/issues/28805
660
+
661
+ assert_type(AR_floating + f, npt.NDArray[np.floating])
662
+ assert_type(AR_floating - f, npt.NDArray[np.floating])
663
+ assert_type(AR_floating * f, npt.NDArray[np.floating])
664
+ assert_type(AR_floating ** f, npt.NDArray[np.floating])
665
+ assert_type(AR_floating / f, npt.NDArray[np.floating])
666
+ assert_type(AR_floating // f, npt.NDArray[np.floating])
667
+ assert_type(AR_floating % f, npt.NDArray[np.floating])
668
+ assert_type(divmod(AR_floating, f), tuple[npt.NDArray[np.floating], npt.NDArray[np.floating]])
669
+
670
+ assert_type(f + AR_floating, npt.NDArray[np.floating])
671
+ assert_type(f - AR_floating, npt.NDArray[np.floating])
672
+ assert_type(f * AR_floating, npt.NDArray[np.floating])
673
+ assert_type(f ** AR_floating, npt.NDArray[np.floating])
674
+ assert_type(f / AR_floating, npt.NDArray[np.floating])
675
+ assert_type(f // AR_floating, npt.NDArray[np.floating])
676
+ assert_type(f % AR_floating, npt.NDArray[np.floating])
677
+ assert_type(divmod(f, AR_floating), tuple[npt.NDArray[np.floating], npt.NDArray[np.floating]])
678
+
679
+ # character-like
680
+
681
+ assert_type(AR_S + b"", npt.NDArray[np.bytes_])
682
+ assert_type(AR_S + [b""], npt.NDArray[np.bytes_])
683
+ assert_type([b""] + AR_S, npt.NDArray[np.bytes_])
684
+ assert_type(AR_S + AR_S, npt.NDArray[np.bytes_])
685
+
686
+ assert_type(AR_U + "", npt.NDArray[np.str_])
687
+ assert_type(AR_U + [""], npt.NDArray[np.str_])
688
+ assert_type("" + AR_U, npt.NDArray[np.str_])
689
+ assert_type([""] + AR_U, npt.NDArray[np.str_])
690
+ assert_type(AR_U + AR_U, npt.NDArray[np.str_])
691
+
692
+ assert_type(AR_T + "", np.ndarray[tuple[Any, ...], np.dtypes.StringDType])
693
+ assert_type(AR_T + [""], np.ndarray[tuple[Any, ...], np.dtypes.StringDType])
694
+ assert_type("" + AR_T, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])
695
+ assert_type([""] + AR_T, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])
696
+ assert_type(AR_T + AR_T, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])
697
+ assert_type(AR_T + AR_U, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])
698
+ assert_type(AR_U + AR_T, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])
699
+
700
+ assert_type(AR_S * i, np.ndarray[tuple[Any, ...], np.dtype[np.bytes_]])
701
+ assert_type(AR_S * AR_LIKE_i, np.ndarray[tuple[Any, ...], np.dtype[np.bytes_]])
702
+ assert_type(AR_S * AR_i, np.ndarray[tuple[Any, ...], np.dtype[np.bytes_]])
703
+ assert_type(i * AR_S, np.ndarray[tuple[Any, ...], np.dtype[np.bytes_]])
704
+ # mypy incorrectly infers `AR_LIKE_i * AR_S` as `list[int]`
705
+ assert_type(AR_i * AR_S, np.ndarray[tuple[Any, ...], np.dtype[np.bytes_]])
706
+
707
+ assert_type(AR_U * i, np.ndarray[tuple[Any, ...], np.dtype[np.str_]])
708
+ assert_type(AR_U * AR_LIKE_i, np.ndarray[tuple[Any, ...], np.dtype[np.str_]])
709
+ assert_type(AR_U * AR_i, np.ndarray[tuple[Any, ...], np.dtype[np.str_]])
710
+ assert_type(i * AR_U, np.ndarray[tuple[Any, ...], np.dtype[np.str_]])
711
+ # mypy incorrectly infers `AR_LIKE_i * AR_U` as `list[int]`
712
+ assert_type(AR_i * AR_U, np.ndarray[tuple[Any, ...], np.dtype[np.str_]])
713
+
714
+ assert_type(AR_T * i, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])
715
+ assert_type(AR_T * AR_LIKE_i, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])
716
+ assert_type(AR_T * AR_i, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])
717
+ assert_type(i * AR_T, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])
718
+ # mypy incorrectly infers `AR_LIKE_i * AR_T` as `list[int]`
719
+ assert_type(AR_i * AR_T, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/array_api_info.pyi ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Literal, Never, assert_type
2
+
3
+ import numpy as np
4
+
5
+ info = np.__array_namespace_info__()
6
+
7
+ assert_type(info.__module__, Literal["numpy"])
8
+
9
+ assert_type(info.default_device(), Literal["cpu"])
10
+ assert_type(info.devices()[0], Literal["cpu"])
11
+ assert_type(info.devices()[-1], Literal["cpu"])
12
+
13
+ assert_type(info.capabilities()["boolean indexing"], Literal[True])
14
+ assert_type(info.capabilities()["data-dependent shapes"], Literal[True])
15
+
16
+ assert_type(info.default_dtypes()["real floating"], np.dtype[np.float64])
17
+ assert_type(info.default_dtypes()["complex floating"], np.dtype[np.complex128])
18
+ assert_type(info.default_dtypes()["integral"], np.dtype[np.int_])
19
+ assert_type(info.default_dtypes()["indexing"], np.dtype[np.intp])
20
+
21
+ assert_type(info.dtypes()["bool"], np.dtype[np.bool])
22
+ assert_type(info.dtypes()["int8"], np.dtype[np.int8])
23
+ assert_type(info.dtypes()["uint8"], np.dtype[np.uint8])
24
+ assert_type(info.dtypes()["float32"], np.dtype[np.float32])
25
+ assert_type(info.dtypes()["complex64"], np.dtype[np.complex64])
26
+
27
+ assert_type(info.dtypes(kind="bool")["bool"], np.dtype[np.bool])
28
+ assert_type(info.dtypes(kind="signed integer")["int64"], np.dtype[np.int64])
29
+ assert_type(info.dtypes(kind="unsigned integer")["uint64"], np.dtype[np.uint64])
30
+ assert_type(info.dtypes(kind="integral")["int32"], np.dtype[np.int32])
31
+ assert_type(info.dtypes(kind="integral")["uint32"], np.dtype[np.uint32])
32
+ assert_type(info.dtypes(kind="real floating")["float64"], np.dtype[np.float64])
33
+ assert_type(info.dtypes(kind="complex floating")["complex128"], np.dtype[np.complex128])
34
+ assert_type(info.dtypes(kind="numeric")["int16"], np.dtype[np.int16])
35
+ assert_type(info.dtypes(kind="numeric")["uint16"], np.dtype[np.uint16])
36
+ assert_type(info.dtypes(kind="numeric")["float64"], np.dtype[np.float64])
37
+ assert_type(info.dtypes(kind="numeric")["complex128"], np.dtype[np.complex128])
38
+
39
+ assert_type(info.dtypes(kind=()), dict[Never, Never])
40
+
41
+ assert_type(info.dtypes(kind=("bool",))["bool"], np.dtype[np.bool])
42
+ assert_type(info.dtypes(kind=("signed integer",))["int64"], np.dtype[np.int64])
43
+ assert_type(info.dtypes(kind=("integral",))["uint32"], np.dtype[np.uint32])
44
+ assert_type(info.dtypes(kind=("complex floating",))["complex128"], np.dtype[np.complex128])
45
+ assert_type(info.dtypes(kind=("numeric",))["float64"], np.dtype[np.float64])
46
+
47
+ assert_type(
48
+ info.dtypes(kind=("signed integer", "unsigned integer"))["int8"],
49
+ np.dtype[np.int8],
50
+ )
51
+ assert_type(
52
+ info.dtypes(kind=("signed integer", "unsigned integer"))["uint8"],
53
+ np.dtype[np.uint8],
54
+ )
55
+ assert_type(
56
+ info.dtypes(kind=("integral", "real floating", "complex floating"))["int16"],
57
+ np.dtype[np.int16],
58
+ )
59
+ assert_type(
60
+ info.dtypes(kind=("integral", "real floating", "complex floating"))["uint16"],
61
+ np.dtype[np.uint16],
62
+ )
63
+ assert_type(
64
+ info.dtypes(kind=("integral", "real floating", "complex floating"))["float32"],
65
+ np.dtype[np.float32],
66
+ )
67
+ assert_type(
68
+ info.dtypes(kind=("integral", "real floating", "complex floating"))["complex64"],
69
+ np.dtype[np.complex64],
70
+ )
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/array_constructors.pyi ADDED
@@ -0,0 +1,279 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from collections import deque
3
+ from pathlib import Path
4
+ from typing import Any, Generic, TypeVar, assert_type
5
+
6
+ import numpy as np
7
+ import numpy.typing as npt
8
+
9
+ _ScalarT_co = TypeVar("_ScalarT_co", bound=np.generic, covariant=True)
10
+
11
+ class SubClass(npt.NDArray[_ScalarT_co]): ...
12
+
13
+ class IntoSubClass(Generic[_ScalarT_co]):
14
+ def __array__(self) -> SubClass[_ScalarT_co]: ...
15
+
16
+ i8: np.int64
17
+
18
+ A: npt.NDArray[np.float64]
19
+ B: SubClass[np.float64]
20
+ C: list[int]
21
+ D: SubClass[np.float64 | np.int64]
22
+ E: IntoSubClass[np.float64 | np.int64]
23
+
24
+ mixed_shape: tuple[int, np.int64]
25
+
26
+ def func(i: int, j: int, **kwargs: Any) -> SubClass[np.float64]: ...
27
+
28
+ assert_type(np.empty_like(A), npt.NDArray[np.float64])
29
+ assert_type(np.empty_like(B), SubClass[np.float64])
30
+ assert_type(np.empty_like([1, 1.0]), npt.NDArray[Any])
31
+ assert_type(np.empty_like(A, dtype=np.int64), npt.NDArray[np.int64])
32
+ assert_type(np.empty_like(A, dtype="c16"), npt.NDArray[Any])
33
+
34
+ assert_type(np.array(A), npt.NDArray[np.float64])
35
+ assert_type(np.array(B), npt.NDArray[np.float64])
36
+ assert_type(np.array([1, 1.0]), npt.NDArray[Any])
37
+ assert_type(np.array(deque([1, 2, 3])), npt.NDArray[Any])
38
+ assert_type(np.array(A, dtype=np.int64), npt.NDArray[np.int64])
39
+ assert_type(np.array(A, dtype="c16"), npt.NDArray[Any])
40
+ assert_type(np.array(A, like=A), npt.NDArray[np.float64])
41
+ assert_type(np.array(A, subok=True), npt.NDArray[np.float64])
42
+ assert_type(np.array(B, subok=True), SubClass[np.float64])
43
+ assert_type(np.array(B, subok=True, ndmin=0), SubClass[np.float64])
44
+ assert_type(np.array(B, subok=True, ndmin=1), SubClass[np.float64])
45
+ assert_type(np.array(D), npt.NDArray[np.float64 | np.int64])
46
+ assert_type(np.array(E, subok=True), SubClass[np.float64 | np.int64])
47
+ # https://github.com/numpy/numpy/issues/29245
48
+ assert_type(np.array([], dtype=np.bool), npt.NDArray[np.bool])
49
+
50
+ assert_type(np.zeros([1, 5, 6]), npt.NDArray[np.float64])
51
+ assert_type(np.zeros([1, 5, 6], dtype=np.int64), npt.NDArray[np.int64])
52
+ assert_type(np.zeros([1, 5, 6], dtype="c16"), npt.NDArray[Any])
53
+ assert_type(np.zeros(mixed_shape), npt.NDArray[np.float64])
54
+
55
+ assert_type(np.empty([1, 5, 6]), npt.NDArray[np.float64])
56
+ assert_type(np.empty([1, 5, 6], dtype=np.int64), npt.NDArray[np.int64])
57
+ assert_type(np.empty([1, 5, 6], dtype="c16"), npt.NDArray[Any])
58
+ assert_type(np.empty(mixed_shape), npt.NDArray[np.float64])
59
+
60
+ assert_type(np.concatenate(A), npt.NDArray[np.float64])
61
+ assert_type(np.concatenate([A, A]), npt.NDArray[Any]) # pyright correctly infers this as NDArray[float64]
62
+ assert_type(np.concatenate([[1], A]), npt.NDArray[Any])
63
+ assert_type(np.concatenate([[1], [1]]), npt.NDArray[Any])
64
+ assert_type(np.concatenate((A, A)), npt.NDArray[np.float64])
65
+ assert_type(np.concatenate(([1], [1])), npt.NDArray[Any])
66
+ assert_type(np.concatenate([1, 1.0]), npt.NDArray[Any])
67
+ assert_type(np.concatenate(A, dtype=np.int64), npt.NDArray[np.int64])
68
+ assert_type(np.concatenate(A, dtype="c16"), npt.NDArray[Any])
69
+ assert_type(np.concatenate([1, 1.0], out=A), npt.NDArray[np.float64])
70
+
71
+ assert_type(np.asarray(A), npt.NDArray[np.float64])
72
+ assert_type(np.asarray(B), npt.NDArray[np.float64])
73
+ assert_type(np.asarray([1, 1.0]), npt.NDArray[Any])
74
+ assert_type(np.asarray(A, dtype=np.int64), npt.NDArray[np.int64])
75
+ assert_type(np.asarray(A, dtype="c16"), npt.NDArray[Any])
76
+
77
+ assert_type(np.asanyarray(A), npt.NDArray[np.float64])
78
+ assert_type(np.asanyarray(B), SubClass[np.float64])
79
+ assert_type(np.asanyarray([1, 1.0]), npt.NDArray[Any])
80
+ assert_type(np.asanyarray(A, dtype=np.int64), npt.NDArray[np.int64])
81
+ assert_type(np.asanyarray(A, dtype="c16"), npt.NDArray[Any])
82
+
83
+ assert_type(np.ascontiguousarray(A), npt.NDArray[np.float64])
84
+ assert_type(np.ascontiguousarray(B), npt.NDArray[np.float64])
85
+ assert_type(np.ascontiguousarray([1, 1.0]), npt.NDArray[Any])
86
+ assert_type(np.ascontiguousarray(A, dtype=np.int64), npt.NDArray[np.int64])
87
+ assert_type(np.ascontiguousarray(A, dtype="c16"), npt.NDArray[Any])
88
+
89
+ assert_type(np.asfortranarray(A), npt.NDArray[np.float64])
90
+ assert_type(np.asfortranarray(B), npt.NDArray[np.float64])
91
+ assert_type(np.asfortranarray([1, 1.0]), npt.NDArray[Any])
92
+ assert_type(np.asfortranarray(A, dtype=np.int64), npt.NDArray[np.int64])
93
+ assert_type(np.asfortranarray(A, dtype="c16"), npt.NDArray[Any])
94
+
95
+ assert_type(np.fromstring("1 1 1", sep=" "), npt.NDArray[np.float64])
96
+ assert_type(np.fromstring(b"1 1 1", sep=" "), npt.NDArray[np.float64])
97
+ assert_type(np.fromstring("1 1 1", dtype=np.int64, sep=" "), npt.NDArray[np.int64])
98
+ assert_type(np.fromstring(b"1 1 1", dtype=np.int64, sep=" "), npt.NDArray[np.int64])
99
+ assert_type(np.fromstring("1 1 1", dtype="c16", sep=" "), npt.NDArray[Any])
100
+ assert_type(np.fromstring(b"1 1 1", dtype="c16", sep=" "), npt.NDArray[Any])
101
+
102
+ assert_type(np.fromfile("test.txt", sep=" "), npt.NDArray[np.float64])
103
+ assert_type(np.fromfile("test.txt", dtype=np.int64, sep=" "), npt.NDArray[np.int64])
104
+ assert_type(np.fromfile("test.txt", dtype="c16", sep=" "), npt.NDArray[Any])
105
+ with open("test.txt") as f:
106
+ assert_type(np.fromfile(f, sep=" "), npt.NDArray[np.float64])
107
+ assert_type(np.fromfile(b"test.txt", sep=" "), npt.NDArray[np.float64])
108
+ assert_type(np.fromfile(Path("test.txt"), sep=" "), npt.NDArray[np.float64])
109
+
110
+ assert_type(np.fromiter("12345", np.float64), npt.NDArray[np.float64])
111
+ assert_type(np.fromiter("12345", float), npt.NDArray[Any])
112
+
113
+ assert_type(np.frombuffer(A), npt.NDArray[np.float64])
114
+ assert_type(np.frombuffer(A, dtype=np.int64), npt.NDArray[np.int64])
115
+ assert_type(np.frombuffer(A, dtype="c16"), npt.NDArray[Any])
116
+
117
+ _x_bool: bool
118
+ _x_int: int
119
+ _x_float: float
120
+ _x_timedelta: np.timedelta64
121
+ _x_datetime: np.datetime64
122
+
123
+ assert_type(np.arange(False, True), np.ndarray[tuple[int], np.dtype[np.int_]])
124
+ assert_type(np.arange(10), np.ndarray[tuple[int], np.dtype[np.int_]])
125
+ assert_type(np.arange(0, 10, step=2), np.ndarray[tuple[int], np.dtype[np.int_]])
126
+ assert_type(np.arange(10.0), np.ndarray[tuple[int], np.dtype[np.float64 | Any]])
127
+ assert_type(np.arange(0, stop=10.0), np.ndarray[tuple[int], np.dtype[np.float64 | Any]])
128
+ assert_type(np.arange(_x_timedelta), np.ndarray[tuple[int], np.dtype[np.timedelta64[Any]]])
129
+ assert_type(np.arange(0, _x_timedelta), np.ndarray[tuple[int], np.dtype[np.timedelta64[Any]]])
130
+ assert_type(np.arange(_x_datetime, _x_datetime), np.ndarray[tuple[int], np.dtype[np.datetime64[Any]]])
131
+ assert_type(np.arange(10, dtype=np.float64), np.ndarray[tuple[int], np.dtype[np.float64]])
132
+ assert_type(np.arange(0, 10, step=2, dtype=np.int16), np.ndarray[tuple[int], np.dtype[np.int16]])
133
+ assert_type(np.arange(10, dtype=int), np.ndarray[tuple[int], np.dtype[np.int_]])
134
+ assert_type(np.arange(0, 10, dtype="f8"), np.ndarray[tuple[int], np.dtype])
135
+ # https://github.com/numpy/numpy/issues/30628
136
+ assert_type(np.arange("2025-12-20", "2025-12-23", dtype="datetime64[D]"), np.ndarray[tuple[int], np.dtype[np.datetime64[Any]]])
137
+
138
+ assert_type(np.require(A), npt.NDArray[np.float64])
139
+ assert_type(np.require(B), SubClass[np.float64])
140
+ assert_type(np.require(B, requirements=None), SubClass[np.float64])
141
+ assert_type(np.require(B, dtype=int), npt.NDArray[Any])
142
+ assert_type(np.require(B, requirements="E"), npt.NDArray[Any])
143
+ assert_type(np.require(B, requirements=["ENSUREARRAY"]), npt.NDArray[Any])
144
+ assert_type(np.require(B, requirements={"F", "E"}), npt.NDArray[Any])
145
+ assert_type(np.require(B, requirements=["C", "OWNDATA"]), SubClass[np.float64])
146
+ assert_type(np.require(B, requirements="W"), SubClass[np.float64])
147
+ assert_type(np.require(B, requirements="A"), SubClass[np.float64])
148
+ assert_type(np.require(C), npt.NDArray[Any])
149
+
150
+ assert_type(np.linspace(0, 10), npt.NDArray[np.float64])
151
+ assert_type(np.linspace(0, 10j), npt.NDArray[np.complexfloating])
152
+ assert_type(np.linspace(0, 10, dtype=np.int64), npt.NDArray[np.int64])
153
+ assert_type(np.linspace(0, 10, dtype=int), npt.NDArray[Any])
154
+ assert_type(np.linspace(0, 10, retstep=True), tuple[npt.NDArray[np.float64], np.float64])
155
+ assert_type(np.linspace(0j, 10, retstep=True), tuple[npt.NDArray[np.complexfloating], np.complexfloating])
156
+ assert_type(np.linspace(0, 10, retstep=True, dtype=np.int64), tuple[npt.NDArray[np.int64], np.int64])
157
+ assert_type(np.linspace(0j, 10, retstep=True, dtype=int), tuple[npt.NDArray[Any], Any])
158
+
159
+ assert_type(np.logspace(0, 10), npt.NDArray[np.float64])
160
+ assert_type(np.logspace(0, 10j), npt.NDArray[np.complexfloating])
161
+ assert_type(np.logspace(0, 10, dtype=np.int64), npt.NDArray[np.int64])
162
+ assert_type(np.logspace(0, 10, dtype=int), npt.NDArray[Any])
163
+
164
+ assert_type(np.geomspace(0, 10), npt.NDArray[np.float64])
165
+ assert_type(np.geomspace(0, 10j), npt.NDArray[np.complexfloating])
166
+ assert_type(np.geomspace(0, 10, dtype=np.int64), npt.NDArray[np.int64])
167
+ assert_type(np.geomspace(0, 10, dtype=int), npt.NDArray[Any])
168
+
169
+ assert_type(np.zeros_like(A), npt.NDArray[np.float64])
170
+ assert_type(np.zeros_like(C), npt.NDArray[Any])
171
+ assert_type(np.zeros_like(A, dtype=float), npt.NDArray[Any])
172
+ assert_type(np.zeros_like(B), SubClass[np.float64])
173
+ assert_type(np.zeros_like(B, dtype=np.int64), npt.NDArray[np.int64])
174
+
175
+ assert_type(np.ones_like(A), npt.NDArray[np.float64])
176
+ assert_type(np.ones_like(C), npt.NDArray[Any])
177
+ assert_type(np.ones_like(A, dtype=float), npt.NDArray[Any])
178
+ assert_type(np.ones_like(B), SubClass[np.float64])
179
+ assert_type(np.ones_like(B, dtype=np.int64), npt.NDArray[np.int64])
180
+
181
+ assert_type(np.full_like(A, i8), npt.NDArray[np.float64])
182
+ assert_type(np.full_like(C, i8), npt.NDArray[Any])
183
+ assert_type(np.full_like(A, i8, dtype=int), npt.NDArray[Any])
184
+ assert_type(np.full_like(B, i8), SubClass[np.float64])
185
+ assert_type(np.full_like(B, i8, dtype=np.int64), npt.NDArray[np.int64])
186
+
187
+ _size: int
188
+ _shape_0d: tuple[()]
189
+ _shape_1d: tuple[int]
190
+ _shape_2d: tuple[int, int]
191
+ _shape_nd: tuple[int, ...]
192
+ _shape_like: list[int]
193
+
194
+ assert_type(np.ones(_shape_0d), np.ndarray[tuple[()], np.dtype[np.float64]])
195
+ assert_type(np.ones(_size), np.ndarray[tuple[int], np.dtype[np.float64]])
196
+ assert_type(np.ones(_shape_2d), np.ndarray[tuple[int, int], np.dtype[np.float64]])
197
+ assert_type(np.ones(_shape_nd), np.ndarray[tuple[int, ...], np.dtype[np.float64]])
198
+ assert_type(np.ones(_shape_1d, dtype=np.int64), np.ndarray[tuple[int], np.dtype[np.int64]])
199
+ assert_type(np.ones(_shape_like), npt.NDArray[np.float64])
200
+ assert_type(
201
+ np.ones(_shape_like, dtype=np.dtypes.Int64DType()),
202
+ np.ndarray[tuple[Any, ...], np.dtypes.Int64DType],
203
+ )
204
+ assert_type(np.ones(_shape_like, dtype=int), npt.NDArray[Any])
205
+ assert_type(np.ones(mixed_shape), npt.NDArray[np.float64])
206
+
207
+ assert_type(np.full(_size, i8), np.ndarray[tuple[int], np.dtype[np.int64]])
208
+ assert_type(np.full(_shape_2d, i8), np.ndarray[tuple[int, int], np.dtype[np.int64]])
209
+ assert_type(np.full(_shape_like, i8), npt.NDArray[np.int64])
210
+ assert_type(np.full(_shape_like, 42), npt.NDArray[Any])
211
+ assert_type(np.full(_size, i8, dtype=np.float64), np.ndarray[tuple[int], np.dtype[np.float64]])
212
+ assert_type(np.full(_size, i8, dtype=float), np.ndarray[tuple[int], np.dtype])
213
+ assert_type(np.full(_shape_like, 42, dtype=float), npt.NDArray[Any])
214
+ assert_type(np.full(_shape_0d, i8, dtype=object), np.ndarray[tuple[()], np.dtype])
215
+
216
+ assert_type(np.indices([1, 2, 3]), npt.NDArray[np.int_])
217
+ assert_type(np.indices([1, 2, 3], sparse=True), tuple[npt.NDArray[np.int_], ...])
218
+
219
+ assert_type(np.fromfunction(func, (3, 5)), SubClass[np.float64])
220
+
221
+ assert_type(np.identity(3), np.ndarray[tuple[int, int], np.dtype[np.float64]])
222
+ assert_type(np.identity(3, dtype=np.int8), np.ndarray[tuple[int, int], np.dtype[np.int8]])
223
+ assert_type(np.identity(3, dtype=bool), np.ndarray[tuple[int, int], np.dtype[np.bool]])
224
+ assert_type(np.identity(3, dtype="bool"), np.ndarray[tuple[int, int], np.dtype[np.bool]])
225
+ assert_type(np.identity(3, dtype="b1"), np.ndarray[tuple[int, int], np.dtype[np.bool]])
226
+ assert_type(np.identity(3, dtype="?"), np.ndarray[tuple[int, int], np.dtype[np.bool]])
227
+ assert_type(np.identity(3, dtype=int), np.ndarray[tuple[int, int], np.dtype[np.int_ | Any]])
228
+ assert_type(np.identity(3, dtype="int"), np.ndarray[tuple[int, int], np.dtype[np.int_ | Any]])
229
+ assert_type(np.identity(3, dtype="n"), np.ndarray[tuple[int, int], np.dtype[np.int_ | Any]])
230
+ assert_type(np.identity(3, dtype=float), np.ndarray[tuple[int, int], np.dtype[np.float64 | Any]])
231
+ assert_type(np.identity(3, dtype="float"), np.ndarray[tuple[int, int], np.dtype[np.float64 | Any]])
232
+ assert_type(np.identity(3, dtype="f8"), np.ndarray[tuple[int, int], np.dtype[np.float64 | Any]])
233
+ assert_type(np.identity(3, dtype="d"), np.ndarray[tuple[int, int], np.dtype[np.float64 | Any]])
234
+ assert_type(np.identity(3, dtype=complex), np.ndarray[tuple[int, int], np.dtype[np.complex128 | Any]])
235
+ assert_type(np.identity(3, dtype="complex"), np.ndarray[tuple[int, int], np.dtype[np.complex128 | Any]])
236
+ assert_type(np.identity(3, dtype="c16"), np.ndarray[tuple[int, int], np.dtype[np.complex128 | Any]])
237
+ assert_type(np.identity(3, dtype="D"), np.ndarray[tuple[int, int], np.dtype[np.complex128 | Any]])
238
+
239
+ assert_type(np.atleast_1d(A), npt.NDArray[np.float64])
240
+ assert_type(np.atleast_1d(C), npt.NDArray[Any])
241
+ assert_type(np.atleast_1d(A, A), tuple[npt.NDArray[np.float64], npt.NDArray[np.float64]])
242
+ assert_type(np.atleast_1d(A, C), tuple[npt.NDArray[Any], npt.NDArray[Any]])
243
+ assert_type(np.atleast_1d(C, C), tuple[npt.NDArray[Any], npt.NDArray[Any]])
244
+ assert_type(np.atleast_1d(A, A, A), tuple[npt.NDArray[np.float64], ...])
245
+ assert_type(np.atleast_1d(C, C, C), tuple[npt.NDArray[Any], ...])
246
+
247
+ assert_type(np.atleast_2d(A), npt.NDArray[np.float64])
248
+ assert_type(np.atleast_2d(A, A), tuple[npt.NDArray[np.float64], npt.NDArray[np.float64]])
249
+ assert_type(np.atleast_2d(A, A, A), tuple[npt.NDArray[np.float64], ...])
250
+
251
+ assert_type(np.atleast_3d(A), npt.NDArray[np.float64])
252
+ assert_type(np.atleast_3d(A, A), tuple[npt.NDArray[np.float64], npt.NDArray[np.float64]])
253
+ assert_type(np.atleast_3d(A, A, A), tuple[npt.NDArray[np.float64], ...])
254
+
255
+ assert_type(np.vstack([A, A]), npt.NDArray[np.float64])
256
+ assert_type(np.vstack([A, A], dtype=np.float32), npt.NDArray[np.float32])
257
+ assert_type(np.vstack([A, C]), npt.NDArray[Any])
258
+ assert_type(np.vstack([C, C]), npt.NDArray[Any])
259
+
260
+ assert_type(np.hstack([A, A]), npt.NDArray[np.float64])
261
+ assert_type(np.hstack([A, A], dtype=np.float32), npt.NDArray[np.float32])
262
+
263
+ assert_type(np.stack([A, A]), npt.NDArray[np.float64])
264
+ assert_type(np.stack([A, A], dtype=np.float32), npt.NDArray[np.float32])
265
+ assert_type(np.stack([A, C]), npt.NDArray[Any])
266
+ assert_type(np.stack([C, C]), npt.NDArray[Any])
267
+ assert_type(np.stack([A, A], axis=0), npt.NDArray[np.float64])
268
+ assert_type(np.stack([A, A], out=B), SubClass[np.float64])
269
+
270
+ assert_type(np.block([[A, A], [A, A]]), npt.NDArray[Any]) # pyright correctly infers this as NDArray[float64]
271
+ assert_type(np.block(C), npt.NDArray[Any])
272
+
273
+ if sys.version_info >= (3, 12):
274
+ from collections.abc import Buffer
275
+
276
+ def create_array(obj: npt.ArrayLike) -> npt.NDArray[Any]: ...
277
+
278
+ buffer: Buffer
279
+ assert_type(create_array(buffer), npt.NDArray[Any])
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arraypad.pyi ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from collections.abc import Mapping
2
+ from typing import Any, SupportsIndex, assert_type
3
+
4
+ import numpy as np
5
+ import numpy.typing as npt
6
+
7
+ def mode_func(
8
+ ar: npt.NDArray[np.number],
9
+ width: tuple[int, int],
10
+ iaxis: SupportsIndex,
11
+ kwargs: Mapping[str, Any],
12
+ ) -> None: ...
13
+
14
+ AR_i8: npt.NDArray[np.int64]
15
+ AR_f8: npt.NDArray[np.float64]
16
+ AR_LIKE: list[int]
17
+
18
+ assert_type(np.pad(AR_i8, (2, 3), "constant"), npt.NDArray[np.int64])
19
+ assert_type(np.pad(AR_LIKE, (2, 3), "constant"), npt.NDArray[Any])
20
+
21
+ assert_type(np.pad(AR_f8, (2, 3), mode_func), npt.NDArray[np.float64])
22
+ assert_type(np.pad(AR_f8, (2, 3), mode_func, a=1, b=2), npt.NDArray[np.float64])
23
+
24
+ assert_type(np.pad(AR_i8, {-1: (2, 3)}), npt.NDArray[np.int64])
25
+ assert_type(np.pad(AR_i8, {-2: 4}), npt.NDArray[np.int64])
26
+ pad_width: dict[int, int | tuple[int, int]] = {-1: (2, 3), -2: 4}
27
+ assert_type(np.pad(AR_i8, pad_width), npt.NDArray[np.int64])
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arrayprint.pyi ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import contextlib
2
+ from collections.abc import Callable
3
+ from typing import assert_type
4
+
5
+ import numpy as np
6
+ import numpy.typing as npt
7
+ from numpy._core.arrayprint import _FormatOptions
8
+
9
+ AR: npt.NDArray[np.int64]
10
+ func_float: Callable[[np.floating], str]
11
+ func_int: Callable[[np.integer], str]
12
+
13
+ assert_type(np.get_printoptions(), _FormatOptions)
14
+ assert_type(
15
+ np.array2string(AR, formatter={"float_kind": func_float, "int_kind": func_int}),
16
+ str,
17
+ )
18
+ assert_type(np.format_float_scientific(1.0), str)
19
+ assert_type(np.format_float_positional(1), str)
20
+ assert_type(np.array_repr(AR), str)
21
+ assert_type(np.array_str(AR), str)
22
+
23
+ assert_type(np.printoptions(), contextlib._GeneratorContextManager[_FormatOptions])
24
+ with np.printoptions() as dct:
25
+ assert_type(dct, _FormatOptions)
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arraysetops.pyi ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, assert_type
2
+
3
+ import numpy as np
4
+ import numpy.typing as npt
5
+ from numpy.lib._arraysetops_impl import (
6
+ UniqueAllResult,
7
+ UniqueCountsResult,
8
+ UniqueInverseResult,
9
+ )
10
+
11
+ AR_b: npt.NDArray[np.bool]
12
+ AR_i8: npt.NDArray[np.int64]
13
+ AR_f8: npt.NDArray[np.float64]
14
+ AR_M: npt.NDArray[np.datetime64]
15
+ AR_O: npt.NDArray[np.object_]
16
+
17
+ AR_LIKE_f8: list[float]
18
+
19
+ assert_type(np.ediff1d(AR_b), npt.NDArray[np.int8])
20
+ assert_type(np.ediff1d(AR_i8, to_end=[1, 2, 3]), npt.NDArray[np.int64])
21
+ assert_type(np.ediff1d(AR_M), npt.NDArray[np.timedelta64])
22
+ assert_type(np.ediff1d(AR_O), npt.NDArray[np.object_])
23
+ assert_type(np.ediff1d(AR_LIKE_f8, to_begin=[1, 1.5]), npt.NDArray[Any])
24
+
25
+ assert_type(np.intersect1d(AR_i8, AR_i8), npt.NDArray[np.int64])
26
+ assert_type(np.intersect1d(AR_M, AR_M, assume_unique=True), npt.NDArray[np.datetime64])
27
+ assert_type(np.intersect1d(AR_f8, AR_i8), npt.NDArray[Any])
28
+ assert_type(
29
+ np.intersect1d(AR_f8, AR_f8, return_indices=True),
30
+ tuple[npt.NDArray[np.float64], npt.NDArray[np.intp], npt.NDArray[np.intp]],
31
+ )
32
+
33
+ assert_type(np.setxor1d(AR_i8, AR_i8), npt.NDArray[np.int64])
34
+ assert_type(np.setxor1d(AR_M, AR_M, assume_unique=True), npt.NDArray[np.datetime64])
35
+ assert_type(np.setxor1d(AR_f8, AR_i8), npt.NDArray[Any])
36
+
37
+ assert_type(np.isin(AR_i8, AR_i8), npt.NDArray[np.bool])
38
+ assert_type(np.isin(AR_M, AR_M, assume_unique=True), npt.NDArray[np.bool])
39
+ assert_type(np.isin(AR_f8, AR_i8), npt.NDArray[np.bool])
40
+ assert_type(np.isin(AR_f8, AR_LIKE_f8, invert=True), npt.NDArray[np.bool])
41
+
42
+ assert_type(np.union1d(AR_i8, AR_i8), npt.NDArray[np.int64])
43
+ assert_type(np.union1d(AR_M, AR_M), npt.NDArray[np.datetime64])
44
+ assert_type(np.union1d(AR_f8, AR_i8), npt.NDArray[Any])
45
+
46
+ assert_type(np.setdiff1d(AR_i8, AR_i8), npt.NDArray[np.int64])
47
+ assert_type(np.setdiff1d(AR_M, AR_M, assume_unique=True), npt.NDArray[np.datetime64])
48
+ assert_type(np.setdiff1d(AR_f8, AR_i8), npt.NDArray[Any])
49
+
50
+ assert_type(np.unique(AR_f8), npt.NDArray[np.float64])
51
+ assert_type(np.unique(AR_LIKE_f8, axis=0), npt.NDArray[Any])
52
+ assert_type(np.unique(AR_f8, return_index=True), tuple[npt.NDArray[np.float64], npt.NDArray[np.intp]])
53
+ assert_type(np.unique(AR_LIKE_f8, return_index=True), tuple[npt.NDArray[Any], npt.NDArray[np.intp]])
54
+ assert_type(np.unique(AR_f8, return_inverse=True), tuple[npt.NDArray[np.float64], npt.NDArray[np.intp]])
55
+ assert_type(np.unique(AR_LIKE_f8, return_inverse=True), tuple[npt.NDArray[Any], npt.NDArray[np.intp]])
56
+ assert_type(np.unique(AR_f8, return_counts=True), tuple[npt.NDArray[np.float64], npt.NDArray[np.intp]])
57
+ assert_type(np.unique(AR_LIKE_f8, return_counts=True), tuple[npt.NDArray[Any], npt.NDArray[np.intp]])
58
+ assert_type(np.unique(AR_f8, return_index=True, return_inverse=True), tuple[npt.NDArray[np.float64], npt.NDArray[np.intp], npt.NDArray[np.intp]])
59
+ assert_type(np.unique(AR_LIKE_f8, return_index=True, return_inverse=True), tuple[npt.NDArray[Any], npt.NDArray[np.intp], npt.NDArray[np.intp]])
60
+ assert_type(np.unique(AR_f8, return_index=True, return_counts=True), tuple[npt.NDArray[np.float64], npt.NDArray[np.intp], npt.NDArray[np.intp]])
61
+ assert_type(np.unique(AR_LIKE_f8, return_index=True, return_counts=True), tuple[npt.NDArray[Any], npt.NDArray[np.intp], npt.NDArray[np.intp]])
62
+ assert_type(np.unique(AR_f8, return_inverse=True, return_counts=True), tuple[npt.NDArray[np.float64], npt.NDArray[np.intp], npt.NDArray[np.intp]])
63
+ assert_type(np.unique(AR_LIKE_f8, return_inverse=True, return_counts=True), tuple[npt.NDArray[Any], npt.NDArray[np.intp], npt.NDArray[np.intp]])
64
+ assert_type(np.unique(AR_f8, return_index=True, return_inverse=True, return_counts=True), tuple[npt.NDArray[np.float64], npt.NDArray[np.intp], npt.NDArray[np.intp], npt.NDArray[np.intp]])
65
+ assert_type(np.unique(AR_LIKE_f8, return_index=True, return_inverse=True, return_counts=True), tuple[npt.NDArray[Any], npt.NDArray[np.intp], npt.NDArray[np.intp], npt.NDArray[np.intp]])
66
+
67
+ assert_type(np.unique_all(AR_f8), UniqueAllResult[np.float64])
68
+ assert_type(np.unique_all(AR_LIKE_f8), UniqueAllResult[Any])
69
+ assert_type(np.unique_counts(AR_f8), UniqueCountsResult[np.float64])
70
+ assert_type(np.unique_counts(AR_LIKE_f8), UniqueCountsResult[Any])
71
+ assert_type(np.unique_inverse(AR_f8), UniqueInverseResult[np.float64])
72
+ assert_type(np.unique_inverse(AR_LIKE_f8), UniqueInverseResult[Any])
73
+ assert_type(np.unique_values(AR_f8), npt.NDArray[np.float64])
74
+ assert_type(np.unique_values(AR_LIKE_f8), npt.NDArray[Any])
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arrayterator.pyi ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from collections.abc import Generator
2
+ from typing import Any, assert_type
3
+
4
+ import numpy as np
5
+ import numpy.typing as npt
6
+
7
+ AR_i8: npt.NDArray[np.int64]
8
+ ar_iter = np.lib.Arrayterator(AR_i8)
9
+
10
+ assert_type(ar_iter.var, npt.NDArray[np.int64])
11
+ assert_type(ar_iter.buf_size, int | None)
12
+ assert_type(ar_iter.start, list[int])
13
+ assert_type(ar_iter.stop, list[int])
14
+ assert_type(ar_iter.step, list[int])
15
+ assert_type(ar_iter.shape, tuple[Any, ...])
16
+ assert_type(ar_iter.flat, Generator[np.int64])
17
+
18
+ assert_type(ar_iter.__array__(), npt.NDArray[np.int64])
19
+
20
+ for i in ar_iter:
21
+ assert_type(i, npt.NDArray[np.int64])
22
+
23
+ assert_type(ar_iter[0], np.lib.Arrayterator[tuple[Any, ...], np.dtype[np.int64]])
24
+ assert_type(ar_iter[...], np.lib.Arrayterator[tuple[Any, ...], np.dtype[np.int64]])
25
+ assert_type(ar_iter[:], np.lib.Arrayterator[tuple[Any, ...], np.dtype[np.int64]])
26
+ assert_type(ar_iter[0, 0, 0], np.lib.Arrayterator[tuple[Any, ...], np.dtype[np.int64]])
27
+ assert_type(ar_iter[..., 0, :], np.lib.Arrayterator[tuple[Any, ...], np.dtype[np.int64]])
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/bitwise_ops.pyi ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Literal as L, TypeAlias, assert_type
2
+
3
+ import numpy as np
4
+ import numpy.typing as npt
5
+
6
+ FalseType: TypeAlias = L[False]
7
+ TrueType: TypeAlias = L[True]
8
+
9
+ i4: np.int32
10
+ i8: np.int64
11
+
12
+ u4: np.uint32
13
+ u8: np.uint64
14
+
15
+ b_: np.bool[bool]
16
+ b0_: np.bool[FalseType]
17
+ b1_: np.bool[TrueType]
18
+
19
+ b: bool
20
+ b0: FalseType
21
+ b1: TrueType
22
+
23
+ i: int
24
+
25
+ AR: npt.NDArray[np.int32]
26
+
27
+ assert_type(i8 << i8, np.int64)
28
+ assert_type(i8 >> i8, np.int64)
29
+ assert_type(i8 | i8, np.int64)
30
+ assert_type(i8 ^ i8, np.int64)
31
+ assert_type(i8 & i8, np.int64)
32
+
33
+ assert_type(i8 << AR, npt.NDArray[np.signedinteger])
34
+ assert_type(i8 >> AR, npt.NDArray[np.signedinteger])
35
+ assert_type(i8 | AR, npt.NDArray[np.signedinteger])
36
+ assert_type(i8 ^ AR, npt.NDArray[np.signedinteger])
37
+ assert_type(i8 & AR, npt.NDArray[np.signedinteger])
38
+
39
+ assert_type(i4 << i4, np.int32)
40
+ assert_type(i4 >> i4, np.int32)
41
+ assert_type(i4 | i4, np.int32)
42
+ assert_type(i4 ^ i4, np.int32)
43
+ assert_type(i4 & i4, np.int32)
44
+
45
+ assert_type(i8 << i4, np.signedinteger)
46
+ assert_type(i8 >> i4, np.signedinteger)
47
+ assert_type(i8 | i4, np.signedinteger)
48
+ assert_type(i8 ^ i4, np.signedinteger)
49
+ assert_type(i8 & i4, np.signedinteger)
50
+
51
+ assert_type(i8 << b_, np.int64)
52
+ assert_type(i8 >> b_, np.int64)
53
+ assert_type(i8 | b_, np.int64)
54
+ assert_type(i8 ^ b_, np.int64)
55
+ assert_type(i8 & b_, np.int64)
56
+
57
+ assert_type(i8 << b, np.int64)
58
+ assert_type(i8 >> b, np.int64)
59
+ assert_type(i8 | b, np.int64)
60
+ assert_type(i8 ^ b, np.int64)
61
+ assert_type(i8 & b, np.int64)
62
+
63
+ assert_type(u8 << u8, np.uint64)
64
+ assert_type(u8 >> u8, np.uint64)
65
+ assert_type(u8 | u8, np.uint64)
66
+ assert_type(u8 ^ u8, np.uint64)
67
+ assert_type(u8 & u8, np.uint64)
68
+
69
+ assert_type(u8 << AR, npt.NDArray[np.signedinteger])
70
+ assert_type(u8 >> AR, npt.NDArray[np.signedinteger])
71
+ assert_type(u8 | AR, npt.NDArray[np.signedinteger])
72
+ assert_type(u8 ^ AR, npt.NDArray[np.signedinteger])
73
+ assert_type(u8 & AR, npt.NDArray[np.signedinteger])
74
+
75
+ assert_type(u4 << u4, np.uint32)
76
+ assert_type(u4 >> u4, np.uint32)
77
+ assert_type(u4 | u4, np.uint32)
78
+ assert_type(u4 ^ u4, np.uint32)
79
+ assert_type(u4 & u4, np.uint32)
80
+
81
+ assert_type(u4 << i4, np.signedinteger)
82
+ assert_type(u4 >> i4, np.signedinteger)
83
+ assert_type(u4 | i4, np.signedinteger)
84
+ assert_type(u4 ^ i4, np.signedinteger)
85
+ assert_type(u4 & i4, np.signedinteger)
86
+
87
+ assert_type(u4 << i, np.uint32)
88
+ assert_type(u4 >> i, np.uint32)
89
+ assert_type(u4 | i, np.uint32)
90
+ assert_type(u4 ^ i, np.uint32)
91
+ assert_type(u4 & i, np.uint32)
92
+
93
+ assert_type(u8 << b_, np.uint64)
94
+ assert_type(u8 >> b_, np.uint64)
95
+ assert_type(u8 | b_, np.uint64)
96
+ assert_type(u8 ^ b_, np.uint64)
97
+ assert_type(u8 & b_, np.uint64)
98
+
99
+ assert_type(u8 << b, np.uint64)
100
+ assert_type(u8 >> b, np.uint64)
101
+ assert_type(u8 | b, np.uint64)
102
+ assert_type(u8 ^ b, np.uint64)
103
+ assert_type(u8 & b, np.uint64)
104
+
105
+ assert_type(b_ << b_, np.int8)
106
+ assert_type(b_ >> b_, np.int8)
107
+ assert_type(b_ | b_, np.bool)
108
+ assert_type(b_ ^ b_, np.bool)
109
+ assert_type(b_ & b_, np.bool)
110
+
111
+ assert_type(b_ << AR, npt.NDArray[np.signedinteger])
112
+ assert_type(b_ >> AR, npt.NDArray[np.signedinteger])
113
+ assert_type(b_ | AR, npt.NDArray[np.signedinteger])
114
+ assert_type(b_ ^ AR, npt.NDArray[np.signedinteger])
115
+ assert_type(b_ & AR, npt.NDArray[np.signedinteger])
116
+
117
+ assert_type(b_ << b, np.int8)
118
+ assert_type(b_ >> b, np.int8)
119
+ assert_type(b_ | b, np.bool)
120
+ assert_type(b_ ^ b, np.bool)
121
+ assert_type(b_ & b, np.bool)
122
+
123
+ assert_type(b_ << i, np.int_)
124
+ assert_type(b_ >> i, np.int_)
125
+ assert_type(b_ | i, np.bool | np.int_)
126
+ assert_type(b_ ^ i, np.bool | np.int_)
127
+ assert_type(b_ & i, np.bool | np.int_)
128
+
129
+ assert_type(~i8, np.int64)
130
+ assert_type(~i4, np.int32)
131
+ assert_type(~u8, np.uint64)
132
+ assert_type(~u4, np.uint32)
133
+ assert_type(~b_, np.bool)
134
+ assert_type(~b0_, np.bool[TrueType])
135
+ assert_type(~b1_, np.bool[FalseType])
136
+ assert_type(~AR, npt.NDArray[np.int32])
137
+
138
+ assert_type(b_ | b0_, np.bool)
139
+ assert_type(b0_ | b_, np.bool)
140
+ assert_type(b_ | b1_, np.bool[TrueType])
141
+ assert_type(b1_ | b_, np.bool[TrueType])
142
+
143
+ assert_type(b_ ^ b0_, np.bool)
144
+ assert_type(b0_ ^ b_, np.bool)
145
+ assert_type(b_ ^ b1_, np.bool)
146
+ assert_type(b1_ ^ b_, np.bool)
147
+
148
+ assert_type(b_ & b0_, np.bool[FalseType])
149
+ assert_type(b0_ & b_, np.bool[FalseType])
150
+ assert_type(b_ & b1_, np.bool)
151
+ assert_type(b1_ & b_, np.bool)
152
+
153
+ assert_type(b0_ | b0_, np.bool[FalseType])
154
+ assert_type(b0_ | b1_, np.bool[TrueType])
155
+ assert_type(b1_ | b0_, np.bool[TrueType])
156
+ assert_type(b1_ | b1_, np.bool[TrueType])
157
+
158
+ assert_type(b0_ ^ b0_, np.bool[FalseType])
159
+ assert_type(b0_ ^ b1_, np.bool[TrueType])
160
+ assert_type(b1_ ^ b0_, np.bool[TrueType])
161
+ assert_type(b1_ ^ b1_, np.bool[FalseType])
162
+
163
+ assert_type(b0_ & b0_, np.bool[FalseType])
164
+ assert_type(b0_ & b1_, np.bool[FalseType])
165
+ assert_type(b1_ & b0_, np.bool[FalseType])
166
+ assert_type(b1_ & b1_, np.bool[TrueType])
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/char.pyi ADDED
@@ -0,0 +1,225 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import TypeAlias, assert_type
2
+
3
+ import numpy as np
4
+ import numpy._typing as np_t
5
+ import numpy.typing as npt
6
+
7
+ AR_T_alias: TypeAlias = np.ndarray[np_t._AnyShape, np.dtypes.StringDType]
8
+ AR_TU_alias: TypeAlias = AR_T_alias | npt.NDArray[np.str_]
9
+
10
+ AR_U: npt.NDArray[np.str_]
11
+ AR_S: npt.NDArray[np.bytes_]
12
+ AR_T: AR_T_alias
13
+
14
+ assert_type(np.char.equal(AR_U, AR_U), npt.NDArray[np.bool])
15
+ assert_type(np.char.equal(AR_S, AR_S), npt.NDArray[np.bool])
16
+ assert_type(np.char.equal(AR_T, AR_T), npt.NDArray[np.bool])
17
+
18
+ assert_type(np.char.not_equal(AR_U, AR_U), npt.NDArray[np.bool])
19
+ assert_type(np.char.not_equal(AR_S, AR_S), npt.NDArray[np.bool])
20
+ assert_type(np.char.not_equal(AR_T, AR_T), npt.NDArray[np.bool])
21
+
22
+ assert_type(np.char.greater_equal(AR_U, AR_U), npt.NDArray[np.bool])
23
+ assert_type(np.char.greater_equal(AR_S, AR_S), npt.NDArray[np.bool])
24
+ assert_type(np.char.greater_equal(AR_T, AR_T), npt.NDArray[np.bool])
25
+
26
+ assert_type(np.char.less_equal(AR_U, AR_U), npt.NDArray[np.bool])
27
+ assert_type(np.char.less_equal(AR_S, AR_S), npt.NDArray[np.bool])
28
+ assert_type(np.char.less_equal(AR_T, AR_T), npt.NDArray[np.bool])
29
+
30
+ assert_type(np.char.greater(AR_U, AR_U), npt.NDArray[np.bool])
31
+ assert_type(np.char.greater(AR_S, AR_S), npt.NDArray[np.bool])
32
+ assert_type(np.char.greater(AR_T, AR_T), npt.NDArray[np.bool])
33
+
34
+ assert_type(np.char.less(AR_U, AR_U), npt.NDArray[np.bool])
35
+ assert_type(np.char.less(AR_S, AR_S), npt.NDArray[np.bool])
36
+ assert_type(np.char.less(AR_T, AR_T), npt.NDArray[np.bool])
37
+
38
+ assert_type(np.char.multiply(AR_U, 5), npt.NDArray[np.str_])
39
+ assert_type(np.char.multiply(AR_S, [5, 4, 3]), npt.NDArray[np.bytes_])
40
+ assert_type(np.char.multiply(AR_T, 5), AR_T_alias)
41
+
42
+ assert_type(np.char.mod(AR_U, "test"), npt.NDArray[np.str_])
43
+ assert_type(np.char.mod(AR_S, "test"), npt.NDArray[np.bytes_])
44
+ assert_type(np.char.mod(AR_T, "test"), AR_T_alias)
45
+
46
+ assert_type(np.char.capitalize(AR_U), npt.NDArray[np.str_])
47
+ assert_type(np.char.capitalize(AR_S), npt.NDArray[np.bytes_])
48
+ assert_type(np.char.capitalize(AR_T), AR_T_alias)
49
+
50
+ assert_type(np.char.center(AR_U, 5), npt.NDArray[np.str_])
51
+ assert_type(np.char.center(AR_S, [2, 3, 4], b"a"), npt.NDArray[np.bytes_])
52
+ assert_type(np.char.center(AR_T, 5), AR_T_alias)
53
+
54
+ assert_type(np.char.encode(AR_U), npt.NDArray[np.bytes_])
55
+ assert_type(np.char.encode(AR_T), npt.NDArray[np.bytes_])
56
+ assert_type(np.char.decode(AR_S), npt.NDArray[np.str_])
57
+
58
+ assert_type(np.char.expandtabs(AR_U), npt.NDArray[np.str_])
59
+ assert_type(np.char.expandtabs(AR_S, tabsize=4), npt.NDArray[np.bytes_])
60
+ assert_type(np.char.expandtabs(AR_T), AR_T_alias)
61
+
62
+ assert_type(np.char.join(AR_U, "_"), npt.NDArray[np.str_])
63
+ assert_type(np.char.join(AR_S, [b"_", b""]), npt.NDArray[np.bytes_])
64
+ assert_type(np.char.join(AR_T, "_"), AR_TU_alias)
65
+
66
+ assert_type(np.char.ljust(AR_U, 5), npt.NDArray[np.str_])
67
+ assert_type(np.char.ljust(AR_S, [4, 3, 1], fillchar=[b"a", b"b", b"c"]), npt.NDArray[np.bytes_])
68
+ assert_type(np.char.ljust(AR_S, [4, 3, 1], fillchar="a"), npt.NDArray[np.bytes_])
69
+ assert_type(np.char.ljust(AR_T, 5), AR_T_alias)
70
+ assert_type(np.char.ljust(AR_T, [4, 2, 1], fillchar=["a", "b", "c"]), AR_TU_alias)
71
+
72
+ assert_type(np.char.rjust(AR_U, 5), npt.NDArray[np.str_])
73
+ assert_type(np.char.rjust(AR_S, [4, 3, 1], fillchar=[b"a", b"b", b"c"]), npt.NDArray[np.bytes_])
74
+ assert_type(np.char.rjust(AR_T, 5), AR_T_alias)
75
+ assert_type(np.char.rjust(AR_T, [4, 2, 1], fillchar=["a", "b", "c"]), AR_TU_alias)
76
+
77
+ assert_type(np.char.lstrip(AR_U), npt.NDArray[np.str_])
78
+ assert_type(np.char.lstrip(AR_S, b"_"), npt.NDArray[np.bytes_])
79
+ assert_type(np.char.lstrip(AR_T), AR_T_alias)
80
+ assert_type(np.char.lstrip(AR_T, "_"), AR_TU_alias)
81
+
82
+ assert_type(np.char.rstrip(AR_U), npt.NDArray[np.str_])
83
+ assert_type(np.char.rstrip(AR_S, b"_"), npt.NDArray[np.bytes_])
84
+ assert_type(np.char.rstrip(AR_T), AR_T_alias)
85
+ assert_type(np.char.rstrip(AR_T, "_"), AR_TU_alias)
86
+
87
+ assert_type(np.char.strip(AR_U), npt.NDArray[np.str_])
88
+ assert_type(np.char.strip(AR_S, b"_"), npt.NDArray[np.bytes_])
89
+ assert_type(np.char.strip(AR_T), AR_T_alias)
90
+ assert_type(np.char.strip(AR_T, "_"), AR_TU_alias)
91
+
92
+ assert_type(np.char.count(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.int_])
93
+ assert_type(np.char.count(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])
94
+ assert_type(np.char.count(AR_T, AR_T, start=[1, 2, 3]), npt.NDArray[np.int_])
95
+ assert_type(np.char.count(AR_T, ["a", "b", "c"], end=9), npt.NDArray[np.int_])
96
+
97
+ assert_type(np.char.partition(AR_U, "\n"), npt.NDArray[np.str_])
98
+ assert_type(np.char.partition(AR_S, [b"a", b"b", b"c"]), npt.NDArray[np.bytes_])
99
+ assert_type(np.char.partition(AR_T, "\n"), AR_TU_alias)
100
+
101
+ assert_type(np.char.rpartition(AR_U, "\n"), npt.NDArray[np.str_])
102
+ assert_type(np.char.rpartition(AR_S, [b"a", b"b", b"c"]), npt.NDArray[np.bytes_])
103
+ assert_type(np.char.rpartition(AR_T, "\n"), AR_TU_alias)
104
+
105
+ assert_type(np.char.replace(AR_U, "_", "-"), npt.NDArray[np.str_])
106
+ assert_type(np.char.replace(AR_S, [b"_", b""], [b"a", b"b"]), npt.NDArray[np.bytes_])
107
+ assert_type(np.char.replace(AR_T, "_", "_"), AR_TU_alias)
108
+
109
+ assert_type(np.char.split(AR_U, "_"), npt.NDArray[np.object_])
110
+ assert_type(np.char.split(AR_S, maxsplit=[1, 2, 3]), npt.NDArray[np.object_])
111
+ assert_type(np.char.split(AR_T, "_"), npt.NDArray[np.object_])
112
+
113
+ assert_type(np.char.rsplit(AR_U, "_"), npt.NDArray[np.object_])
114
+ assert_type(np.char.rsplit(AR_S, maxsplit=[1, 2, 3]), npt.NDArray[np.object_])
115
+ assert_type(np.char.rsplit(AR_T, "_"), npt.NDArray[np.object_])
116
+
117
+ assert_type(np.char.splitlines(AR_U), npt.NDArray[np.object_])
118
+ assert_type(np.char.splitlines(AR_S, keepends=[True, True, False]), npt.NDArray[np.object_])
119
+ assert_type(np.char.splitlines(AR_T), npt.NDArray[np.object_])
120
+
121
+ assert_type(np.char.lower(AR_U), npt.NDArray[np.str_])
122
+ assert_type(np.char.lower(AR_S), npt.NDArray[np.bytes_])
123
+ assert_type(np.char.lower(AR_T), AR_T_alias)
124
+
125
+ assert_type(np.char.upper(AR_U), npt.NDArray[np.str_])
126
+ assert_type(np.char.upper(AR_S), npt.NDArray[np.bytes_])
127
+ assert_type(np.char.upper(AR_T), AR_T_alias)
128
+
129
+ assert_type(np.char.swapcase(AR_U), npt.NDArray[np.str_])
130
+ assert_type(np.char.swapcase(AR_S), npt.NDArray[np.bytes_])
131
+ assert_type(np.char.swapcase(AR_T), AR_T_alias)
132
+
133
+ assert_type(np.char.title(AR_U), npt.NDArray[np.str_])
134
+ assert_type(np.char.title(AR_S), npt.NDArray[np.bytes_])
135
+ assert_type(np.char.title(AR_T), AR_T_alias)
136
+
137
+ assert_type(np.char.zfill(AR_U, 5), npt.NDArray[np.str_])
138
+ assert_type(np.char.zfill(AR_S, [2, 3, 4]), npt.NDArray[np.bytes_])
139
+ assert_type(np.char.zfill(AR_T, 5), AR_T_alias)
140
+
141
+ assert_type(np.char.endswith(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.bool])
142
+ assert_type(np.char.endswith(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.bool])
143
+ assert_type(np.char.endswith(AR_T, "a", start=[1, 2, 3]), npt.NDArray[np.bool])
144
+
145
+ assert_type(np.char.startswith(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.bool])
146
+ assert_type(np.char.startswith(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.bool])
147
+ assert_type(np.char.startswith(AR_T, "a", start=[1, 2, 3]), npt.NDArray[np.bool])
148
+
149
+ assert_type(np.char.find(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.int_])
150
+ assert_type(np.char.find(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])
151
+ assert_type(np.char.find(AR_T, "a", start=[1, 2, 3]), npt.NDArray[np.int_])
152
+
153
+ assert_type(np.char.rfind(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.int_])
154
+ assert_type(np.char.rfind(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])
155
+ assert_type(np.char.rfind(AR_T, "a", start=[1, 2, 3]), npt.NDArray[np.int_])
156
+
157
+ assert_type(np.char.index(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.int_])
158
+ assert_type(np.char.index(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])
159
+ assert_type(np.char.index(AR_T, "a", start=[1, 2, 3]), npt.NDArray[np.int_])
160
+
161
+ assert_type(np.char.rindex(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.int_])
162
+ assert_type(np.char.rindex(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])
163
+ assert_type(np.char.rindex(AR_T, "a", start=[1, 2, 3]), npt.NDArray[np.int_])
164
+
165
+ assert_type(np.char.isalpha(AR_U), npt.NDArray[np.bool])
166
+ assert_type(np.char.isalpha(AR_S), npt.NDArray[np.bool])
167
+ assert_type(np.char.isalpha(AR_T), npt.NDArray[np.bool])
168
+
169
+ assert_type(np.char.isalnum(AR_U), npt.NDArray[np.bool])
170
+ assert_type(np.char.isalnum(AR_S), npt.NDArray[np.bool])
171
+ assert_type(np.char.isalnum(AR_T), npt.NDArray[np.bool])
172
+
173
+ assert_type(np.char.isdecimal(AR_U), npt.NDArray[np.bool])
174
+ assert_type(np.char.isdecimal(AR_T), npt.NDArray[np.bool])
175
+
176
+ assert_type(np.char.isdigit(AR_U), npt.NDArray[np.bool])
177
+ assert_type(np.char.isdigit(AR_S), npt.NDArray[np.bool])
178
+ assert_type(np.char.isdigit(AR_T), npt.NDArray[np.bool])
179
+
180
+ assert_type(np.char.islower(AR_U), npt.NDArray[np.bool])
181
+ assert_type(np.char.islower(AR_S), npt.NDArray[np.bool])
182
+ assert_type(np.char.islower(AR_T), npt.NDArray[np.bool])
183
+
184
+ assert_type(np.char.isnumeric(AR_U), npt.NDArray[np.bool])
185
+ assert_type(np.char.isnumeric(AR_T), npt.NDArray[np.bool])
186
+
187
+ assert_type(np.char.isspace(AR_U), npt.NDArray[np.bool])
188
+ assert_type(np.char.isspace(AR_S), npt.NDArray[np.bool])
189
+ assert_type(np.char.isspace(AR_T), npt.NDArray[np.bool])
190
+
191
+ assert_type(np.char.istitle(AR_U), npt.NDArray[np.bool])
192
+ assert_type(np.char.istitle(AR_S), npt.NDArray[np.bool])
193
+ assert_type(np.char.istitle(AR_T), npt.NDArray[np.bool])
194
+
195
+ assert_type(np.char.isupper(AR_U), npt.NDArray[np.bool])
196
+ assert_type(np.char.isupper(AR_S), npt.NDArray[np.bool])
197
+ assert_type(np.char.isupper(AR_T), npt.NDArray[np.bool])
198
+
199
+ assert_type(np.char.str_len(AR_U), npt.NDArray[np.int_])
200
+ assert_type(np.char.str_len(AR_S), npt.NDArray[np.int_])
201
+ assert_type(np.char.str_len(AR_T), npt.NDArray[np.int_])
202
+
203
+ assert_type(np.char.translate(AR_U, ""), npt.NDArray[np.str_])
204
+ assert_type(np.char.translate(AR_S, ""), npt.NDArray[np.bytes_])
205
+ assert_type(np.char.translate(AR_T, ""), AR_T_alias)
206
+
207
+ assert_type(np.char.array(AR_U), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]])
208
+ assert_type(np.char.array(AR_S, order="K"), np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])
209
+ assert_type(np.char.array("bob", copy=True), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]])
210
+ assert_type(np.char.array(b"bob", itemsize=5), np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])
211
+ assert_type(np.char.array(1, unicode=False), np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])
212
+ assert_type(np.char.array(1, unicode=True), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]])
213
+ assert_type(np.char.array(1), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]] | np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])
214
+ assert_type(np.char.array(AR_U, unicode=False), np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])
215
+ assert_type(np.char.array(AR_S, unicode=True), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]])
216
+
217
+ assert_type(np.char.asarray(AR_U), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]])
218
+ assert_type(np.char.asarray(AR_S, order="K"), np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])
219
+ assert_type(np.char.asarray("bob"), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]])
220
+ assert_type(np.char.asarray(b"bob", itemsize=5), np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])
221
+ assert_type(np.char.asarray(1, unicode=False), np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])
222
+ assert_type(np.char.asarray(1, unicode=True), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]])
223
+ assert_type(np.char.asarray(1), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]] | np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])
224
+ assert_type(np.char.asarray(AR_U, unicode=False), np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])
225
+ assert_type(np.char.asarray(AR_S, unicode=True), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]])
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/chararray.pyi ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, TypeAlias, assert_type
2
+
3
+ import numpy as np
4
+ import numpy.typing as npt
5
+
6
+ _BytesCharArray: TypeAlias = np.char.chararray[tuple[Any, ...], np.dtype[np.bytes_]]
7
+ _StrCharArray: TypeAlias = np.char.chararray[tuple[Any, ...], np.dtype[np.str_]]
8
+
9
+ AR_U: _StrCharArray
10
+ AR_S: _BytesCharArray
11
+
12
+ assert_type(AR_U == AR_U, npt.NDArray[np.bool])
13
+ assert_type(AR_S == AR_S, npt.NDArray[np.bool])
14
+
15
+ assert_type(AR_U != AR_U, npt.NDArray[np.bool])
16
+ assert_type(AR_S != AR_S, npt.NDArray[np.bool])
17
+
18
+ assert_type(AR_U >= AR_U, npt.NDArray[np.bool])
19
+ assert_type(AR_S >= AR_S, npt.NDArray[np.bool])
20
+
21
+ assert_type(AR_U <= AR_U, npt.NDArray[np.bool])
22
+ assert_type(AR_S <= AR_S, npt.NDArray[np.bool])
23
+
24
+ assert_type(AR_U > AR_U, npt.NDArray[np.bool])
25
+ assert_type(AR_S > AR_S, npt.NDArray[np.bool])
26
+
27
+ assert_type(AR_U < AR_U, npt.NDArray[np.bool])
28
+ assert_type(AR_S < AR_S, npt.NDArray[np.bool])
29
+
30
+ assert_type(AR_U * 5, _StrCharArray)
31
+ assert_type(AR_S * [5], _BytesCharArray)
32
+
33
+ assert_type(AR_U % "test", _StrCharArray)
34
+ assert_type(AR_S % b"test", _BytesCharArray)
35
+
36
+ assert_type(AR_U.capitalize(), _StrCharArray)
37
+ assert_type(AR_S.capitalize(), _BytesCharArray)
38
+
39
+ assert_type(AR_U.center(5), _StrCharArray)
40
+ assert_type(AR_S.center([2, 3, 4], b"a"), _BytesCharArray)
41
+
42
+ assert_type(AR_U.encode(), _BytesCharArray)
43
+ assert_type(AR_S.decode(), _StrCharArray)
44
+
45
+ assert_type(AR_U.expandtabs(), _StrCharArray)
46
+ assert_type(AR_S.expandtabs(tabsize=4), _BytesCharArray)
47
+
48
+ assert_type(AR_U.join("_"), _StrCharArray)
49
+ assert_type(AR_S.join([b"_", b""]), _BytesCharArray)
50
+
51
+ assert_type(AR_U.ljust(5), _StrCharArray)
52
+ assert_type(AR_S.ljust([4, 3, 1], fillchar=[b"a", b"b", b"c"]), _BytesCharArray)
53
+ assert_type(AR_S.ljust([4, 3, 1], fillchar="a"), _BytesCharArray)
54
+ assert_type(AR_U.rjust(5), _StrCharArray)
55
+ assert_type(AR_S.rjust([4, 3, 1], fillchar=[b"a", b"b", b"c"]), _BytesCharArray)
56
+
57
+ assert_type(AR_U.lstrip(), _StrCharArray)
58
+ assert_type(AR_S.lstrip(chars=b"_"), _BytesCharArray)
59
+ assert_type(AR_U.rstrip(), _StrCharArray)
60
+ assert_type(AR_S.rstrip(chars=b"_"), _BytesCharArray)
61
+ assert_type(AR_U.strip(), _StrCharArray)
62
+ assert_type(AR_S.strip(chars=b"_"), _BytesCharArray)
63
+
64
+ assert_type(AR_U.partition("\n"), _StrCharArray)
65
+ assert_type(AR_S.partition([b"a", b"b", b"c"]), _BytesCharArray)
66
+ assert_type(AR_U.rpartition("\n"), _StrCharArray)
67
+ assert_type(AR_S.rpartition([b"a", b"b", b"c"]), _BytesCharArray)
68
+
69
+ assert_type(AR_U.replace("_", "-"), _StrCharArray)
70
+ assert_type(AR_S.replace([b"_", b""], [b"a", b"b"]), _BytesCharArray)
71
+
72
+ assert_type(AR_U.split("_"), npt.NDArray[np.object_])
73
+ assert_type(AR_S.split(maxsplit=[1, 2, 3]), npt.NDArray[np.object_])
74
+ assert_type(AR_U.rsplit("_"), npt.NDArray[np.object_])
75
+ assert_type(AR_S.rsplit(maxsplit=[1, 2, 3]), npt.NDArray[np.object_])
76
+
77
+ assert_type(AR_U.splitlines(), npt.NDArray[np.object_])
78
+ assert_type(AR_S.splitlines(keepends=[True, True, False]), npt.NDArray[np.object_])
79
+
80
+ assert_type(AR_U.swapcase(), _StrCharArray)
81
+ assert_type(AR_S.swapcase(), _BytesCharArray)
82
+
83
+ assert_type(AR_U.title(), _StrCharArray)
84
+ assert_type(AR_S.title(), _BytesCharArray)
85
+
86
+ assert_type(AR_U.upper(), _StrCharArray)
87
+ assert_type(AR_S.upper(), _BytesCharArray)
88
+
89
+ assert_type(AR_U.zfill(5), _StrCharArray)
90
+ assert_type(AR_S.zfill([2, 3, 4]), _BytesCharArray)
91
+
92
+ assert_type(AR_U.count("a", start=[1, 2, 3]), npt.NDArray[np.int_])
93
+ assert_type(AR_S.count([b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])
94
+
95
+ assert_type(AR_U.endswith("a", start=[1, 2, 3]), npt.NDArray[np.bool])
96
+ assert_type(AR_S.endswith([b"a", b"b", b"c"], end=9), npt.NDArray[np.bool])
97
+ assert_type(AR_U.startswith("a", start=[1, 2, 3]), npt.NDArray[np.bool])
98
+ assert_type(AR_S.startswith([b"a", b"b", b"c"], end=9), npt.NDArray[np.bool])
99
+
100
+ assert_type(AR_U.find("a", start=[1, 2, 3]), npt.NDArray[np.int_])
101
+ assert_type(AR_S.find([b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])
102
+ assert_type(AR_U.rfind("a", start=[1, 2, 3]), npt.NDArray[np.int_])
103
+ assert_type(AR_S.rfind([b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])
104
+
105
+ assert_type(AR_U.index("a", start=[1, 2, 3]), npt.NDArray[np.int_])
106
+ assert_type(AR_S.index([b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])
107
+ assert_type(AR_U.rindex("a", start=[1, 2, 3]), npt.NDArray[np.int_])
108
+ assert_type(AR_S.rindex([b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])
109
+
110
+ assert_type(AR_U.isalpha(), npt.NDArray[np.bool])
111
+ assert_type(AR_S.isalpha(), npt.NDArray[np.bool])
112
+
113
+ assert_type(AR_U.isalnum(), npt.NDArray[np.bool])
114
+ assert_type(AR_S.isalnum(), npt.NDArray[np.bool])
115
+
116
+ assert_type(AR_U.isdecimal(), npt.NDArray[np.bool])
117
+ assert_type(AR_S.isdecimal(), npt.NDArray[np.bool])
118
+
119
+ assert_type(AR_U.isdigit(), npt.NDArray[np.bool])
120
+ assert_type(AR_S.isdigit(), npt.NDArray[np.bool])
121
+
122
+ assert_type(AR_U.islower(), npt.NDArray[np.bool])
123
+ assert_type(AR_S.islower(), npt.NDArray[np.bool])
124
+
125
+ assert_type(AR_U.isnumeric(), npt.NDArray[np.bool])
126
+ assert_type(AR_S.isnumeric(), npt.NDArray[np.bool])
127
+
128
+ assert_type(AR_U.isspace(), npt.NDArray[np.bool])
129
+ assert_type(AR_S.isspace(), npt.NDArray[np.bool])
130
+
131
+ assert_type(AR_U.istitle(), npt.NDArray[np.bool])
132
+ assert_type(AR_S.istitle(), npt.NDArray[np.bool])
133
+
134
+ assert_type(AR_U.isupper(), npt.NDArray[np.bool])
135
+ assert_type(AR_S.isupper(), npt.NDArray[np.bool])
136
+
137
+ assert_type(AR_U.__array_finalize__(object()), None)
138
+ assert_type(AR_S.__array_finalize__(object()), None)
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/comparisons.pyi ADDED
@@ -0,0 +1,264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import decimal
2
+ import fractions
3
+ from typing import assert_type
4
+
5
+ import numpy as np
6
+ import numpy.typing as npt
7
+
8
+ c16 = np.complex128()
9
+ f8 = np.float64()
10
+ i8 = np.int64()
11
+ u8 = np.uint64()
12
+
13
+ c8 = np.complex64()
14
+ f4 = np.float32()
15
+ i4 = np.int32()
16
+ u4 = np.uint32()
17
+
18
+ dt = np.datetime64(0, "D")
19
+ td = np.timedelta64(0, "D")
20
+
21
+ b_ = np.bool()
22
+
23
+ b = False
24
+ c = complex()
25
+ f = 0.0
26
+ i = 0
27
+
28
+ AR = np.array([0], dtype=np.int64)
29
+ AR.setflags(write=False)
30
+
31
+ SEQ = (0, 1, 2, 3, 4)
32
+
33
+ # object-like comparisons
34
+
35
+ assert_type(i8 > fractions.Fraction(1, 5), np.bool)
36
+ assert_type(i8 > [fractions.Fraction(1, 5)], npt.NDArray[np.bool])
37
+ assert_type(i8 > decimal.Decimal("1.5"), np.bool)
38
+ assert_type(i8 > [decimal.Decimal("1.5")], npt.NDArray[np.bool])
39
+
40
+ # Time structures
41
+
42
+ assert_type(dt > dt, np.bool)
43
+
44
+ assert_type(td > td, np.bool)
45
+ assert_type(td > i, np.bool)
46
+ assert_type(td > i4, np.bool)
47
+ assert_type(td > i8, np.bool)
48
+
49
+ assert_type(td > AR, npt.NDArray[np.bool])
50
+ assert_type(td > SEQ, npt.NDArray[np.bool])
51
+ assert_type(AR > SEQ, npt.NDArray[np.bool])
52
+ assert_type(AR > td, npt.NDArray[np.bool])
53
+ assert_type(SEQ > td, npt.NDArray[np.bool])
54
+ assert_type(SEQ > AR, npt.NDArray[np.bool])
55
+
56
+ # boolean
57
+
58
+ assert_type(b_ > b, np.bool)
59
+ assert_type(b_ > b_, np.bool)
60
+ assert_type(b_ > i, np.bool)
61
+ assert_type(b_ > i8, np.bool)
62
+ assert_type(b_ > i4, np.bool)
63
+ assert_type(b_ > u8, np.bool)
64
+ assert_type(b_ > u4, np.bool)
65
+ assert_type(b_ > f, np.bool)
66
+ assert_type(b_ > f8, np.bool)
67
+ assert_type(b_ > f4, np.bool)
68
+ assert_type(b_ > c, np.bool)
69
+ assert_type(b_ > c16, np.bool)
70
+ assert_type(b_ > c8, np.bool)
71
+ assert_type(b_ > AR, npt.NDArray[np.bool])
72
+ assert_type(b_ > SEQ, npt.NDArray[np.bool])
73
+
74
+ # Complex
75
+
76
+ assert_type(c16 > c16, np.bool)
77
+ assert_type(c16 > f8, np.bool)
78
+ assert_type(c16 > i8, np.bool)
79
+ assert_type(c16 > c8, np.bool)
80
+ assert_type(c16 > f4, np.bool)
81
+ assert_type(c16 > i4, np.bool)
82
+ assert_type(c16 > b_, np.bool)
83
+ assert_type(c16 > b, np.bool)
84
+ assert_type(c16 > c, np.bool)
85
+ assert_type(c16 > f, np.bool)
86
+ assert_type(c16 > i, np.bool)
87
+ assert_type(c16 > AR, npt.NDArray[np.bool])
88
+ assert_type(c16 > SEQ, npt.NDArray[np.bool])
89
+
90
+ assert_type(c16 > c16, np.bool)
91
+ assert_type(f8 > c16, np.bool)
92
+ assert_type(i8 > c16, np.bool)
93
+ assert_type(c8 > c16, np.bool)
94
+ assert_type(f4 > c16, np.bool)
95
+ assert_type(i4 > c16, np.bool)
96
+ assert_type(b_ > c16, np.bool)
97
+ assert_type(b > c16, np.bool)
98
+ assert_type(c > c16, np.bool)
99
+ assert_type(f > c16, np.bool)
100
+ assert_type(i > c16, np.bool)
101
+ assert_type(AR > c16, npt.NDArray[np.bool])
102
+ assert_type(SEQ > c16, npt.NDArray[np.bool])
103
+
104
+ assert_type(c8 > c16, np.bool)
105
+ assert_type(c8 > f8, np.bool)
106
+ assert_type(c8 > i8, np.bool)
107
+ assert_type(c8 > c8, np.bool)
108
+ assert_type(c8 > f4, np.bool)
109
+ assert_type(c8 > i4, np.bool)
110
+ assert_type(c8 > b_, np.bool)
111
+ assert_type(c8 > b, np.bool)
112
+ assert_type(c8 > c, np.bool)
113
+ assert_type(c8 > f, np.bool)
114
+ assert_type(c8 > i, np.bool)
115
+ assert_type(c8 > AR, npt.NDArray[np.bool])
116
+ assert_type(c8 > SEQ, npt.NDArray[np.bool])
117
+
118
+ assert_type(c16 > c8, np.bool)
119
+ assert_type(f8 > c8, np.bool)
120
+ assert_type(i8 > c8, np.bool)
121
+ assert_type(c8 > c8, np.bool)
122
+ assert_type(f4 > c8, np.bool)
123
+ assert_type(i4 > c8, np.bool)
124
+ assert_type(b_ > c8, np.bool)
125
+ assert_type(b > c8, np.bool)
126
+ assert_type(c > c8, np.bool)
127
+ assert_type(f > c8, np.bool)
128
+ assert_type(i > c8, np.bool)
129
+ assert_type(AR > c8, npt.NDArray[np.bool])
130
+ assert_type(SEQ > c8, npt.NDArray[np.bool])
131
+
132
+ # Float
133
+
134
+ assert_type(f8 > f8, np.bool)
135
+ assert_type(f8 > i8, np.bool)
136
+ assert_type(f8 > f4, np.bool)
137
+ assert_type(f8 > i4, np.bool)
138
+ assert_type(f8 > b_, np.bool)
139
+ assert_type(f8 > b, np.bool)
140
+ assert_type(f8 > c, np.bool)
141
+ assert_type(f8 > f, np.bool)
142
+ assert_type(f8 > i, np.bool)
143
+ assert_type(f8 > AR, npt.NDArray[np.bool])
144
+ assert_type(f8 > SEQ, npt.NDArray[np.bool])
145
+
146
+ assert_type(f8 > f8, np.bool)
147
+ assert_type(i8 > f8, np.bool)
148
+ assert_type(f4 > f8, np.bool)
149
+ assert_type(i4 > f8, np.bool)
150
+ assert_type(b_ > f8, np.bool)
151
+ assert_type(b > f8, np.bool)
152
+ assert_type(c > f8, np.bool)
153
+ assert_type(f > f8, np.bool)
154
+ assert_type(i > f8, np.bool)
155
+ assert_type(AR > f8, npt.NDArray[np.bool])
156
+ assert_type(SEQ > f8, npt.NDArray[np.bool])
157
+
158
+ assert_type(f4 > f8, np.bool)
159
+ assert_type(f4 > i8, np.bool)
160
+ assert_type(f4 > f4, np.bool)
161
+ assert_type(f4 > i4, np.bool)
162
+ assert_type(f4 > b_, np.bool)
163
+ assert_type(f4 > b, np.bool)
164
+ assert_type(f4 > c, np.bool)
165
+ assert_type(f4 > f, np.bool)
166
+ assert_type(f4 > i, np.bool)
167
+ assert_type(f4 > AR, npt.NDArray[np.bool])
168
+ assert_type(f4 > SEQ, npt.NDArray[np.bool])
169
+
170
+ assert_type(f8 > f4, np.bool)
171
+ assert_type(i8 > f4, np.bool)
172
+ assert_type(f4 > f4, np.bool)
173
+ assert_type(i4 > f4, np.bool)
174
+ assert_type(b_ > f4, np.bool)
175
+ assert_type(b > f4, np.bool)
176
+ assert_type(c > f4, np.bool)
177
+ assert_type(f > f4, np.bool)
178
+ assert_type(i > f4, np.bool)
179
+ assert_type(AR > f4, npt.NDArray[np.bool])
180
+ assert_type(SEQ > f4, npt.NDArray[np.bool])
181
+
182
+ # Int
183
+
184
+ assert_type(i8 > i8, np.bool)
185
+ assert_type(i8 > u8, np.bool)
186
+ assert_type(i8 > i4, np.bool)
187
+ assert_type(i8 > u4, np.bool)
188
+ assert_type(i8 > b_, np.bool)
189
+ assert_type(i8 > b, np.bool)
190
+ assert_type(i8 > c, np.bool)
191
+ assert_type(i8 > f, np.bool)
192
+ assert_type(i8 > i, np.bool)
193
+ assert_type(i8 > AR, npt.NDArray[np.bool])
194
+ assert_type(i8 > SEQ, npt.NDArray[np.bool])
195
+
196
+ assert_type(u8 > u8, np.bool)
197
+ assert_type(u8 > i4, np.bool)
198
+ assert_type(u8 > u4, np.bool)
199
+ assert_type(u8 > b_, np.bool)
200
+ assert_type(u8 > b, np.bool)
201
+ assert_type(u8 > c, np.bool)
202
+ assert_type(u8 > f, np.bool)
203
+ assert_type(u8 > i, np.bool)
204
+ assert_type(u8 > AR, npt.NDArray[np.bool])
205
+ assert_type(u8 > SEQ, npt.NDArray[np.bool])
206
+
207
+ assert_type(i8 > i8, np.bool)
208
+ assert_type(u8 > i8, np.bool)
209
+ assert_type(i4 > i8, np.bool)
210
+ assert_type(u4 > i8, np.bool)
211
+ assert_type(b_ > i8, np.bool)
212
+ assert_type(b > i8, np.bool)
213
+ assert_type(c > i8, np.bool)
214
+ assert_type(f > i8, np.bool)
215
+ assert_type(i > i8, np.bool)
216
+ assert_type(AR > i8, npt.NDArray[np.bool])
217
+ assert_type(SEQ > i8, npt.NDArray[np.bool])
218
+
219
+ assert_type(u8 > u8, np.bool)
220
+ assert_type(i4 > u8, np.bool)
221
+ assert_type(u4 > u8, np.bool)
222
+ assert_type(b_ > u8, np.bool)
223
+ assert_type(b > u8, np.bool)
224
+ assert_type(c > u8, np.bool)
225
+ assert_type(f > u8, np.bool)
226
+ assert_type(i > u8, np.bool)
227
+ assert_type(AR > u8, npt.NDArray[np.bool])
228
+ assert_type(SEQ > u8, npt.NDArray[np.bool])
229
+
230
+ assert_type(i4 > i8, np.bool)
231
+ assert_type(i4 > i4, np.bool)
232
+ assert_type(i4 > i, np.bool)
233
+ assert_type(i4 > b_, np.bool)
234
+ assert_type(i4 > b, np.bool)
235
+ assert_type(i4 > AR, npt.NDArray[np.bool])
236
+ assert_type(i4 > SEQ, npt.NDArray[np.bool])
237
+
238
+ assert_type(u4 > i8, np.bool)
239
+ assert_type(u4 > i4, np.bool)
240
+ assert_type(u4 > u8, np.bool)
241
+ assert_type(u4 > u4, np.bool)
242
+ assert_type(u4 > i, np.bool)
243
+ assert_type(u4 > b_, np.bool)
244
+ assert_type(u4 > b, np.bool)
245
+ assert_type(u4 > AR, npt.NDArray[np.bool])
246
+ assert_type(u4 > SEQ, npt.NDArray[np.bool])
247
+
248
+ assert_type(i8 > i4, np.bool)
249
+ assert_type(i4 > i4, np.bool)
250
+ assert_type(i > i4, np.bool)
251
+ assert_type(b_ > i4, np.bool)
252
+ assert_type(b > i4, np.bool)
253
+ assert_type(AR > i4, npt.NDArray[np.bool])
254
+ assert_type(SEQ > i4, npt.NDArray[np.bool])
255
+
256
+ assert_type(i8 > u4, np.bool)
257
+ assert_type(i4 > u4, np.bool)
258
+ assert_type(u8 > u4, np.bool)
259
+ assert_type(u4 > u4, np.bool)
260
+ assert_type(b_ > u4, np.bool)
261
+ assert_type(b > u4, np.bool)
262
+ assert_type(i > u4, np.bool)
263
+ assert_type(AR > u4, npt.NDArray[np.bool])
264
+ assert_type(SEQ > u4, npt.NDArray[np.bool])
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/constants.pyi ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Literal, assert_type
2
+
3
+ import numpy as np
4
+
5
+ assert_type(np.e, float)
6
+ assert_type(np.euler_gamma, float)
7
+ assert_type(np.inf, float)
8
+ assert_type(np.nan, float)
9
+ assert_type(np.pi, float)
10
+
11
+ assert_type(np.little_endian, bool)
12
+
13
+ assert_type(np.True_, np.bool[Literal[True]])
14
+ assert_type(np.False_, np.bool[Literal[False]])
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/ctypeslib.pyi ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import ctypes as ct
2
+ from typing import Any, assert_type
3
+
4
+ import numpy as np
5
+ import numpy.typing as npt
6
+ from numpy import ctypeslib
7
+
8
+ AR_bool: npt.NDArray[np.bool]
9
+ AR_ubyte: npt.NDArray[np.ubyte]
10
+ AR_ushort: npt.NDArray[np.ushort]
11
+ AR_uintc: npt.NDArray[np.uintc]
12
+ AR_ulong: npt.NDArray[np.ulong]
13
+ AR_ulonglong: npt.NDArray[np.ulonglong]
14
+ AR_byte: npt.NDArray[np.byte]
15
+ AR_short: npt.NDArray[np.short]
16
+ AR_intc: npt.NDArray[np.intc]
17
+ AR_long: npt.NDArray[np.long]
18
+ AR_longlong: npt.NDArray[np.longlong]
19
+ AR_single: npt.NDArray[np.single]
20
+ AR_double: npt.NDArray[np.double]
21
+ AR_longdouble: npt.NDArray[np.longdouble]
22
+ AR_void: npt.NDArray[np.void]
23
+
24
+ pointer: ct._Pointer[Any]
25
+
26
+ assert_type(np.ctypeslib.c_intp(), ctypeslib.c_intp)
27
+
28
+ assert_type(np.ctypeslib.ndpointer(), type[ctypeslib._ndptr[None]])
29
+ assert_type(np.ctypeslib.ndpointer(dtype=np.float64), type[ctypeslib._ndptr[np.dtype[np.float64]]])
30
+ assert_type(np.ctypeslib.ndpointer(dtype=float), type[ctypeslib._ndptr[np.dtype]])
31
+ assert_type(np.ctypeslib.ndpointer(shape=(10, 3)), type[ctypeslib._ndptr[None]])
32
+ assert_type(np.ctypeslib.ndpointer(np.int64, shape=(10, 3)), type[ctypeslib._concrete_ndptr[np.dtype[np.int64]]])
33
+ assert_type(np.ctypeslib.ndpointer(int, shape=(1,)), type[np.ctypeslib._concrete_ndptr[np.dtype]])
34
+
35
+ assert_type(np.ctypeslib.as_ctypes_type(np.bool), type[ct.c_bool])
36
+ assert_type(np.ctypeslib.as_ctypes_type(np.ubyte), type[ct.c_ubyte])
37
+ assert_type(np.ctypeslib.as_ctypes_type(np.ushort), type[ct.c_ushort])
38
+ assert_type(np.ctypeslib.as_ctypes_type(np.uintc), type[ct.c_uint])
39
+ assert_type(np.ctypeslib.as_ctypes_type(np.byte), type[ct.c_byte])
40
+ assert_type(np.ctypeslib.as_ctypes_type(np.short), type[ct.c_short])
41
+ assert_type(np.ctypeslib.as_ctypes_type(np.intc), type[ct.c_int])
42
+ assert_type(np.ctypeslib.as_ctypes_type(np.single), type[ct.c_float])
43
+ assert_type(np.ctypeslib.as_ctypes_type(np.double), type[ct.c_double])
44
+ assert_type(np.ctypeslib.as_ctypes_type(ct.c_double), type[ct.c_double])
45
+ assert_type(np.ctypeslib.as_ctypes_type("q"), type[ct.c_longlong])
46
+ assert_type(np.ctypeslib.as_ctypes_type([("i8", np.int64), ("f8", np.float64)]), type[Any])
47
+ assert_type(np.ctypeslib.as_ctypes_type("i8"), type[Any])
48
+ assert_type(np.ctypeslib.as_ctypes_type("f8"), type[Any])
49
+
50
+ assert_type(np.ctypeslib.as_ctypes(AR_bool.take(0)), ct.c_bool)
51
+ assert_type(np.ctypeslib.as_ctypes(AR_ubyte.take(0)), ct.c_ubyte)
52
+ assert_type(np.ctypeslib.as_ctypes(AR_ushort.take(0)), ct.c_ushort)
53
+ assert_type(np.ctypeslib.as_ctypes(AR_uintc.take(0)), ct.c_uint)
54
+
55
+ assert_type(np.ctypeslib.as_ctypes(AR_byte.take(0)), ct.c_byte)
56
+ assert_type(np.ctypeslib.as_ctypes(AR_short.take(0)), ct.c_short)
57
+ assert_type(np.ctypeslib.as_ctypes(AR_intc.take(0)), ct.c_int)
58
+ assert_type(np.ctypeslib.as_ctypes(AR_single.take(0)), ct.c_float)
59
+ assert_type(np.ctypeslib.as_ctypes(AR_double.take(0)), ct.c_double)
60
+ assert_type(np.ctypeslib.as_ctypes(AR_void.take(0)), Any)
61
+ assert_type(np.ctypeslib.as_ctypes(AR_bool), ct.Array[ct.c_bool])
62
+ assert_type(np.ctypeslib.as_ctypes(AR_ubyte), ct.Array[ct.c_ubyte])
63
+ assert_type(np.ctypeslib.as_ctypes(AR_ushort), ct.Array[ct.c_ushort])
64
+ assert_type(np.ctypeslib.as_ctypes(AR_uintc), ct.Array[ct.c_uint])
65
+ assert_type(np.ctypeslib.as_ctypes(AR_byte), ct.Array[ct.c_byte])
66
+ assert_type(np.ctypeslib.as_ctypes(AR_short), ct.Array[ct.c_short])
67
+ assert_type(np.ctypeslib.as_ctypes(AR_intc), ct.Array[ct.c_int])
68
+ assert_type(np.ctypeslib.as_ctypes(AR_single), ct.Array[ct.c_float])
69
+ assert_type(np.ctypeslib.as_ctypes(AR_double), ct.Array[ct.c_double])
70
+ assert_type(np.ctypeslib.as_ctypes(AR_void), ct.Array[Any])
71
+
72
+ assert_type(np.ctypeslib.as_array(AR_ubyte), npt.NDArray[np.ubyte])
73
+ assert_type(np.ctypeslib.as_array(1), npt.NDArray[Any])
74
+ assert_type(np.ctypeslib.as_array(pointer), npt.NDArray[Any])
75
+
76
+ assert_type(np.ctypeslib.as_ctypes_type(np.long), type[ct.c_long])
77
+ assert_type(np.ctypeslib.as_ctypes_type(np.ulong), type[ct.c_ulong])
78
+ assert_type(np.ctypeslib.as_ctypes(AR_ulong), ct.Array[ct.c_ulong])
79
+ assert_type(np.ctypeslib.as_ctypes(AR_long), ct.Array[ct.c_long])
80
+ assert_type(np.ctypeslib.as_ctypes(AR_long.take(0)), ct.c_long)
81
+ assert_type(np.ctypeslib.as_ctypes(AR_ulong.take(0)), ct.c_ulong)
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/datasource.pyi ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pathlib import Path
2
+ from typing import IO, Any, assert_type
3
+
4
+ import numpy as np
5
+
6
+ path1: Path
7
+ path2: str
8
+
9
+ d1 = np.lib.npyio.DataSource(path1)
10
+ d2 = np.lib.npyio.DataSource(path2)
11
+ d3 = np.lib.npyio.DataSource(None)
12
+
13
+ assert_type(d1.abspath("..."), str)
14
+ assert_type(d2.abspath("..."), str)
15
+ assert_type(d3.abspath("..."), str)
16
+
17
+ assert_type(d1.exists("..."), bool)
18
+ assert_type(d2.exists("..."), bool)
19
+ assert_type(d3.exists("..."), bool)
20
+
21
+ assert_type(d1.open("...", "r"), IO[Any])
22
+ assert_type(d2.open("...", encoding="utf8"), IO[Any])
23
+ assert_type(d3.open("...", newline="/n"), IO[Any])
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/dtype.pyi ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import ctypes as ct
2
+ import datetime as dt
3
+ from decimal import Decimal
4
+ from fractions import Fraction
5
+ from typing import Any, Literal, LiteralString, TypeAlias, assert_type
6
+
7
+ import numpy as np
8
+ from numpy.dtypes import StringDType
9
+
10
+ # a combination of likely `object` dtype-like candidates (no `_co`)
11
+ _PyObjectLike: TypeAlias = Decimal | Fraction | dt.datetime | dt.timedelta
12
+
13
+ dtype_U: np.dtype[np.str_]
14
+ dtype_V: np.dtype[np.void]
15
+ dtype_i8: np.dtype[np.int64]
16
+
17
+ py_object: type[_PyObjectLike]
18
+ py_character: type[str | bytes]
19
+
20
+ ct_floating: type[ct.c_float | ct.c_double | ct.c_longdouble]
21
+ ct_number: type[ct.c_uint8 | ct.c_float]
22
+ ct_generic: type[ct.c_bool | ct.c_char]
23
+
24
+ cs_integer: Literal["u1", "<i2", "L"]
25
+ cs_number: Literal["=L", "i", "c16"]
26
+ cs_flex: Literal[">V", "S"]
27
+ cs_generic: Literal["H", "U", "h", "|M8[Y]", "?"]
28
+
29
+ dt_inexact: np.dtype[np.inexact]
30
+ dt_string: StringDType
31
+
32
+ assert_type(np.dtype(np.float64), np.dtype[np.float64])
33
+ assert_type(np.dtype(np.float64, metadata={"test": "test"}), np.dtype[np.float64])
34
+ assert_type(np.dtype(np.int64), np.dtype[np.int64])
35
+
36
+ # String aliases
37
+ assert_type(np.dtype("float64"), np.dtype[np.float64])
38
+ assert_type(np.dtype("float32"), np.dtype[np.float32])
39
+ assert_type(np.dtype("int64"), np.dtype[np.int64])
40
+ assert_type(np.dtype("int32"), np.dtype[np.int32])
41
+ assert_type(np.dtype("bool"), np.dtype[np.bool])
42
+ assert_type(np.dtype("bytes"), np.dtype[np.bytes_])
43
+ assert_type(np.dtype("str"), np.dtype[np.str_])
44
+
45
+ # Python types
46
+ assert_type(np.dtype(bool), np.dtype[np.bool])
47
+ assert_type(np.dtype(int), np.dtype[np.int_ | np.bool])
48
+ assert_type(np.dtype(float), np.dtype[np.float64 | np.int_ | np.bool])
49
+ assert_type(np.dtype(complex), np.dtype[np.complex128 | np.float64 | np.int_ | np.bool])
50
+ assert_type(np.dtype(py_object), np.dtype[np.object_])
51
+ assert_type(np.dtype(str), np.dtype[np.str_])
52
+ assert_type(np.dtype(bytes), np.dtype[np.bytes_])
53
+ assert_type(np.dtype(memoryview), np.dtype[np.void])
54
+ assert_type(np.dtype(py_character), np.dtype[np.character])
55
+
56
+ # object types
57
+ assert_type(np.dtype(list), np.dtype[np.object_])
58
+ assert_type(np.dtype(dt.datetime), np.dtype[np.object_])
59
+ assert_type(np.dtype(dt.timedelta), np.dtype[np.object_])
60
+ assert_type(np.dtype(Decimal), np.dtype[np.object_])
61
+ assert_type(np.dtype(Fraction), np.dtype[np.object_])
62
+
63
+ # char-codes
64
+ assert_type(np.dtype("?"), np.dtype[np.bool])
65
+ assert_type(np.dtype("|b1"), np.dtype[np.bool])
66
+ assert_type(np.dtype("u1"), np.dtype[np.uint8])
67
+ assert_type(np.dtype("l"), np.dtype[np.long])
68
+ assert_type(np.dtype("longlong"), np.dtype[np.longlong])
69
+ assert_type(np.dtype(">g"), np.dtype[np.longdouble])
70
+ assert_type(np.dtype(cs_integer), np.dtype[np.integer])
71
+
72
+ # ctypes
73
+ assert_type(np.dtype(ct.c_double), np.dtype[np.float64]) # see numpy/numpy#29155
74
+ assert_type(np.dtype(ct.c_longlong), np.dtype[np.longlong])
75
+ assert_type(np.dtype(ct.c_uint32), np.dtype[np.uint32])
76
+ assert_type(np.dtype(ct.c_bool), np.dtype[np.bool])
77
+ assert_type(np.dtype(ct.c_char), np.dtype[np.bytes_])
78
+ assert_type(np.dtype(ct.py_object), np.dtype[np.object_])
79
+
80
+ # Special case for None
81
+ assert_type(np.dtype(None), np.dtype[np.float64])
82
+
83
+ # dtypes of dtypes
84
+ assert_type(np.dtype(np.dtype(np.float64)), np.dtype[np.float64])
85
+ assert_type(np.dtype(dt_inexact), np.dtype[np.inexact])
86
+
87
+ # Parameterized dtypes
88
+ assert_type(np.dtype("S8"), np.dtype)
89
+
90
+ # Void
91
+ assert_type(np.dtype(("U", 10)), np.dtype[np.void])
92
+ assert_type(np.dtype({"formats": (int, "u8"), "names": ("n", "B")}), np.dtype[np.void])
93
+
94
+ # StringDType
95
+ assert_type(np.dtype(dt_string), StringDType)
96
+ assert_type(np.dtype("T"), StringDType)
97
+ assert_type(np.dtype("=T"), StringDType)
98
+ assert_type(np.dtype("|T"), StringDType)
99
+
100
+ # Methods and attributes
101
+ assert_type(dtype_U.base, np.dtype)
102
+ assert_type(dtype_U.subdtype, tuple[np.dtype, tuple[Any, ...]] | None)
103
+ assert_type(dtype_U.newbyteorder(), np.dtype[np.str_])
104
+ assert_type(dtype_U.type, type[np.str_])
105
+ assert_type(dtype_U.name, LiteralString)
106
+ assert_type(dtype_U.names, tuple[str, ...] | None)
107
+
108
+ assert_type(dtype_U * 0, np.dtype[np.str_])
109
+ assert_type(dtype_U * 1, np.dtype[np.str_])
110
+ assert_type(dtype_U * 2, np.dtype[np.str_])
111
+
112
+ assert_type(dtype_i8 * 0, np.dtype[np.void])
113
+ assert_type(dtype_i8 * 1, np.dtype[np.int64])
114
+ assert_type(dtype_i8 * 2, np.dtype[np.void])
115
+
116
+ assert_type(0 * dtype_U, np.dtype[np.str_])
117
+ assert_type(1 * dtype_U, np.dtype[np.str_])
118
+ assert_type(2 * dtype_U, np.dtype[np.str_])
119
+
120
+ assert_type(0 * dtype_i8, np.dtype)
121
+ assert_type(1 * dtype_i8, np.dtype)
122
+ assert_type(2 * dtype_i8, np.dtype)
123
+
124
+ assert_type(dtype_V["f0"], np.dtype)
125
+ assert_type(dtype_V[0], np.dtype)
126
+ assert_type(dtype_V[["f0", "f1"]], np.dtype[np.void])
127
+ assert_type(dtype_V[["f0"]], np.dtype[np.void])
128
+
129
+ class _D:
130
+ __numpy_dtype__: np.dtype[np.int8]
131
+
132
+ assert_type(np.dtype(_D()), np.dtype[np.int8])
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/einsumfunc.pyi ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, assert_type
2
+
3
+ import numpy as np
4
+ import numpy.typing as npt
5
+
6
+ AR_LIKE_b: list[bool]
7
+ AR_LIKE_u: list[np.uint32]
8
+ AR_LIKE_i: list[int]
9
+ AR_LIKE_f: list[float]
10
+ AR_LIKE_c: list[complex]
11
+ AR_LIKE_U: list[str]
12
+ AR_o: npt.NDArray[np.object_]
13
+
14
+ OUT_f: npt.NDArray[np.float64]
15
+
16
+ assert_type(np.einsum("i,i->i", AR_LIKE_b, AR_LIKE_b), Any)
17
+ assert_type(np.einsum("i,i->i", AR_o, AR_o), Any)
18
+ assert_type(np.einsum("i,i->i", AR_LIKE_u, AR_LIKE_u), Any)
19
+ assert_type(np.einsum("i,i->i", AR_LIKE_i, AR_LIKE_i), Any)
20
+ assert_type(np.einsum("i,i->i", AR_LIKE_f, AR_LIKE_f), Any)
21
+ assert_type(np.einsum("i,i->i", AR_LIKE_c, AR_LIKE_c), Any)
22
+ assert_type(np.einsum("i,i->i", AR_LIKE_b, AR_LIKE_i), Any)
23
+ assert_type(np.einsum("i,i,i,i->i", AR_LIKE_b, AR_LIKE_u, AR_LIKE_i, AR_LIKE_c), Any)
24
+
25
+ assert_type(np.einsum("i,i->i", AR_LIKE_c, AR_LIKE_c, out=OUT_f), npt.NDArray[np.float64])
26
+ assert_type(np.einsum("i,i->i", AR_LIKE_U, AR_LIKE_U, dtype=bool, casting="unsafe", out=OUT_f), npt.NDArray[np.float64])
27
+ assert_type(np.einsum("i,i->i", AR_LIKE_f, AR_LIKE_f, dtype="c16"), Any)
28
+ assert_type(np.einsum("i,i->i", AR_LIKE_U, AR_LIKE_U, dtype=bool, casting="unsafe"), Any)
29
+
30
+ assert_type(np.einsum_path("i,i->i", AR_LIKE_b, AR_LIKE_b), tuple[list[Any], str])
31
+ assert_type(np.einsum_path("i,i->i", AR_LIKE_u, AR_LIKE_u), tuple[list[Any], str])
32
+ assert_type(np.einsum_path("i,i->i", AR_LIKE_i, AR_LIKE_i), tuple[list[Any], str])
33
+ assert_type(np.einsum_path("i,i->i", AR_LIKE_f, AR_LIKE_f), tuple[list[Any], str])
34
+ assert_type(np.einsum_path("i,i->i", AR_LIKE_c, AR_LIKE_c), tuple[list[Any], str])
35
+ assert_type(np.einsum_path("i,i->i", AR_LIKE_b, AR_LIKE_i), tuple[list[Any], str])
36
+ assert_type(np.einsum_path("i,i,i,i->i", AR_LIKE_b, AR_LIKE_u, AR_LIKE_i, AR_LIKE_c), tuple[list[Any], str])
37
+
38
+ assert_type(np.einsum([[1, 1], [1, 1]], AR_LIKE_i, AR_LIKE_i), Any)
39
+ assert_type(np.einsum_path([[1, 1], [1, 1]], AR_LIKE_i, AR_LIKE_i), tuple[list[Any], str])