Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TYP: np.lib.stride_tricks is not marked as being public #21183

Closed
twoertwein opened this issue Mar 12, 2022 · 2 comments · Fixed by #21185
Closed

TYP: np.lib.stride_tricks is not marked as being public #21183

twoertwein opened this issue Mar 12, 2022 · 2 comments · Fixed by #21185

Comments

@twoertwein
Copy link

Describe the issue:

sliding_window_view is a public function, but it is inaccessible to type checkers.

Reproduce the code example:

import numpy as np

np.lib.stride_tricks.sliding_window_view

Error message:

pyright: "stride_tricks" is not a known member of module (reportGeneralTypeIssues)

NumPy/Python version information:

1.22.3 3.10.2 (v3.10.2:a58ebcc, Mar 10 2022, 19:36:59) [GCC 9.4.0]

@BvB93
Copy link
Member

BvB93 commented Mar 12, 2022

Ah, found the problem: there is a typo in the re-exporting statement.
The issue should be fixed as of #21185.

@twoertwein
Copy link
Author

Great, thank you very much @BvB93!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants