Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

guan404ming
Copy link
Member

@guan404ming guan404ming commented Mar 8, 2025

@guan404ming guan404ming changed the title TYPE: add random._pickle.pyi TYPE: Add random._pickle.pyi Mar 8, 2025
@jorenham jorenham changed the title TYPE: Add random._pickle.pyi TYP: Add random._pickle.pyi Mar 8, 2025
@jorenham
Copy link
Member

jorenham commented Mar 8, 2025

I believe the new .pyi needs to be included here:

# Install Python sources, stub files, tests, examples and license
# ---------------------------------------------------------------
py.install_sources(
[
'__init__.pxd',
'__init__.py',
'__init__.pyi',
'_common.pxd',
'_generator.pyi',
'_mt19937.pyi',
'_pcg64.pyi',
'_pickle.py',
'_philox.pyi',
'_sfc64.pyi',
'bit_generator.pxd',
'bit_generator.pyi',
'c_distributions.pxd',
'LICENSE.md',
'mtrand.pyi',
],
subdir: 'numpy/random'
)

@jorenham jorenham added the numtype Isssue/PR related to numpy/numtype label Mar 8, 2025
@guan404ming
Copy link
Member Author

guan404ming commented Mar 8, 2025

Updated, thanks @jorenham~

@guan404ming guan404ming changed the title TYP: Add random._pickle.pyi TYP: stub random._pickle Mar 8, 2025
@jorenham jorenham changed the title TYP: stub random._pickle TYP: stub random._pickle Mar 8, 2025
@jorenham jorenham merged commit ede4009 into numpy:main Mar 8, 2025
71 checks passed
@jorenham
Copy link
Member

jorenham commented Mar 8, 2025

Thanks, Guan-Ming!

@charris charris added 09 - Backport-Candidate PRs tagged should be backported and removed 09 - Backport-Candidate PRs tagged should be backported labels Mar 8, 2025
charris pushed a commit to charris/numpy that referenced this pull request Mar 14, 2025
* Add random._pickle.pyi

* Add new file in meson.build

* Align style in numpy/random/meson.build
charris added a commit that referenced this pull request Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
41 - Static typing numtype Isssue/PR related to numpy/numtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants